michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDOMEventTarget.idl" michael@0: michael@0: %{C++ michael@0: #ifdef GetBinaryType michael@0: // Windows apparently has a #define for GetBinaryType... michael@0: #undef GetBinaryType michael@0: #endif michael@0: %} michael@0: michael@0: interface nsIVariant; michael@0: michael@0: [scriptable, builtinclass, uuid(af7077ac-0f9f-44e1-815f-9b1a94618531)] michael@0: interface nsIDOMDataChannel : nsIDOMEventTarget michael@0: { michael@0: readonly attribute DOMString label; michael@0: readonly attribute DOMString protocol; michael@0: readonly attribute boolean reliable; michael@0: readonly attribute boolean ordered; michael@0: michael@0: readonly attribute DOMString readyState; michael@0: readonly attribute unsigned long bufferedAmount; michael@0: michael@0: readonly attribute unsigned short id; michael@0: readonly attribute unsigned short stream; /* deprecated name for 'id' */ michael@0: michael@0: [implicit_jscontext] attribute jsval onopen; michael@0: [implicit_jscontext] attribute jsval onerror; michael@0: [implicit_jscontext] attribute jsval onclose; michael@0: [implicit_jscontext] attribute jsval onmessage; michael@0: michael@0: attribute DOMString binaryType; michael@0: michael@0: void close(); michael@0: };