Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsIDOMEventTarget.idl" |
michael@0 | 6 | |
michael@0 | 7 | %{C++ |
michael@0 | 8 | #ifdef GetBinaryType |
michael@0 | 9 | // Windows apparently has a #define for GetBinaryType... |
michael@0 | 10 | #undef GetBinaryType |
michael@0 | 11 | #endif |
michael@0 | 12 | %} |
michael@0 | 13 | |
michael@0 | 14 | interface nsIVariant; |
michael@0 | 15 | |
michael@0 | 16 | [scriptable, builtinclass, uuid(af7077ac-0f9f-44e1-815f-9b1a94618531)] |
michael@0 | 17 | interface nsIDOMDataChannel : nsIDOMEventTarget |
michael@0 | 18 | { |
michael@0 | 19 | readonly attribute DOMString label; |
michael@0 | 20 | readonly attribute DOMString protocol; |
michael@0 | 21 | readonly attribute boolean reliable; |
michael@0 | 22 | readonly attribute boolean ordered; |
michael@0 | 23 | |
michael@0 | 24 | readonly attribute DOMString readyState; |
michael@0 | 25 | readonly attribute unsigned long bufferedAmount; |
michael@0 | 26 | |
michael@0 | 27 | readonly attribute unsigned short id; |
michael@0 | 28 | readonly attribute unsigned short stream; /* deprecated name for 'id' */ |
michael@0 | 29 | |
michael@0 | 30 | [implicit_jscontext] attribute jsval onopen; |
michael@0 | 31 | [implicit_jscontext] attribute jsval onerror; |
michael@0 | 32 | [implicit_jscontext] attribute jsval onclose; |
michael@0 | 33 | [implicit_jscontext] attribute jsval onmessage; |
michael@0 | 34 | |
michael@0 | 35 | attribute DOMString binaryType; |
michael@0 | 36 | |
michael@0 | 37 | void close(); |
michael@0 | 38 | }; |