From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- dom/base/nsIDOMDataChannel.idl | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 dom/base/nsIDOMDataChannel.idl (limited to 'dom/base/nsIDOMDataChannel.idl') diff --git a/dom/base/nsIDOMDataChannel.idl b/dom/base/nsIDOMDataChannel.idl new file mode 100644 index 000000000..5836b2186 --- /dev/null +++ b/dom/base/nsIDOMDataChannel.idl @@ -0,0 +1,37 @@ +/* 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/. */ + +#include "nsIDOMEventTarget.idl" + +%{C++ +#ifdef GetBinaryType +// Windows apparently has a #define for GetBinaryType... +#undef GetBinaryType +#endif +%} + +interface nsIVariant; + +[builtinclass, uuid(b00a4ca7-312e-4926-84f6-8ebb43e53d83)] +interface nsIDOMDataChannel : nsIDOMEventTarget +{ + readonly attribute DOMString label; + readonly attribute DOMString protocol; + readonly attribute boolean reliable; + readonly attribute boolean ordered; + + readonly attribute DOMString readyState; + readonly attribute unsigned long bufferedAmount; + + readonly attribute unsigned short id; + + [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(); +}; -- cgit v1.2.3