2013-05-20 00:19:45 -07: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 16:51:47 -07:00
|
|
|
#include "nsIDOMEventTarget.idl"
|
|
|
|
|
2013-05-20 00:10:59 -07:00
|
|
|
%{C++
|
|
|
|
#ifdef GetBinaryType
|
|
|
|
// Windows apparently has a #define for GetBinaryType...
|
|
|
|
#undef GetBinaryType
|
|
|
|
#endif
|
|
|
|
%}
|
|
|
|
|
2012-10-03 16:51:47 -07:00
|
|
|
interface nsIVariant;
|
|
|
|
|
2014-08-13 15:38:29 -07:00
|
|
|
[builtinclass, uuid(b00a4ca7-312e-4926-84f6-8ebb43e53d83)]
|
2012-10-03 16:51:47 -07:00
|
|
|
interface nsIDOMDataChannel : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
readonly attribute DOMString label;
|
2013-03-31 18:09:25 -07:00
|
|
|
readonly attribute DOMString protocol;
|
2012-10-03 16:51:47 -07:00
|
|
|
readonly attribute boolean reliable;
|
|
|
|
readonly attribute boolean ordered;
|
|
|
|
|
|
|
|
readonly attribute DOMString readyState;
|
|
|
|
readonly attribute unsigned long bufferedAmount;
|
|
|
|
|
2013-06-03 14:34:42 -07:00
|
|
|
readonly attribute unsigned short id;
|
|
|
|
readonly attribute unsigned short stream; /* deprecated name for 'id' */
|
2013-03-31 18:09:25 -07:00
|
|
|
|
2012-10-03 16:51:47 -07: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();
|
|
|
|
};
|