2013-05-20 07:19:45 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2012-10-03 23:51:47 +00:00
|
|
|
#include "nsIDOMEventTarget.idl"
|
|
|
|
|
2013-05-20 07:10:59 +00:00
|
|
|
%{C++
|
|
|
|
#ifdef GetBinaryType
|
|
|
|
// Windows apparently has a #define for GetBinaryType...
|
|
|
|
#undef GetBinaryType
|
|
|
|
#endif
|
|
|
|
%}
|
|
|
|
|
2012-10-03 23:51:47 +00:00
|
|
|
interface nsIVariant;
|
|
|
|
|
2014-08-13 22:38:29 +00:00
|
|
|
[builtinclass, uuid(b00a4ca7-312e-4926-84f6-8ebb43e53d83)]
|
2012-10-03 23:51:47 +00:00
|
|
|
interface nsIDOMDataChannel : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
readonly attribute DOMString label;
|
2013-04-01 01:09:25 +00:00
|
|
|
readonly attribute DOMString protocol;
|
2012-10-03 23:51:47 +00:00
|
|
|
readonly attribute boolean reliable;
|
|
|
|
readonly attribute boolean ordered;
|
|
|
|
|
|
|
|
readonly attribute DOMString readyState;
|
|
|
|
readonly attribute unsigned long bufferedAmount;
|
|
|
|
|
2013-06-03 21:34:42 +00:00
|
|
|
readonly attribute unsigned short id;
|
|
|
|
readonly attribute unsigned short stream; /* deprecated name for 'id' */
|
2013-04-01 01:09:25 +00:00
|
|
|
|
2012-10-03 23:51:47 +00:00
|
|
|
[implicit_jscontext] attribute jsval onopen;
|
|
|
|
[implicit_jscontext] attribute jsval onerror;
|
|
|
|
[implicit_jscontext] attribute jsval onclose;
|
|
|
|
[implicit_jscontext] attribute jsval onmessage;
|
|
|
|
|
|
|
|
attribute DOMString binaryType;
|
|
|
|
|
|
|
|
void close();
|
|
|
|
};
|