1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/public/nsIDOMDataChannel.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsIDOMEventTarget.idl" 1.9 + 1.10 +%{C++ 1.11 +#ifdef GetBinaryType 1.12 +// Windows apparently has a #define for GetBinaryType... 1.13 +#undef GetBinaryType 1.14 +#endif 1.15 +%} 1.16 + 1.17 +interface nsIVariant; 1.18 + 1.19 +[scriptable, builtinclass, uuid(af7077ac-0f9f-44e1-815f-9b1a94618531)] 1.20 +interface nsIDOMDataChannel : nsIDOMEventTarget 1.21 +{ 1.22 + readonly attribute DOMString label; 1.23 + readonly attribute DOMString protocol; 1.24 + readonly attribute boolean reliable; 1.25 + readonly attribute boolean ordered; 1.26 + 1.27 + readonly attribute DOMString readyState; 1.28 + readonly attribute unsigned long bufferedAmount; 1.29 + 1.30 + readonly attribute unsigned short id; 1.31 + readonly attribute unsigned short stream; /* deprecated name for 'id' */ 1.32 + 1.33 + [implicit_jscontext] attribute jsval onopen; 1.34 + [implicit_jscontext] attribute jsval onerror; 1.35 + [implicit_jscontext] attribute jsval onclose; 1.36 + [implicit_jscontext] attribute jsval onmessage; 1.37 + 1.38 + attribute DOMString binaryType; 1.39 + 1.40 + void close(); 1.41 +};