diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/mediastream/RTCDataChannel.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCDataChannel.idl')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCDataChannel.idl | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannel.idl b/Source/WebCore/Modules/mediastream/RTCDataChannel.idl index 19c24fa1b..e778c0f96 100644 --- a/Source/WebCore/Modules/mediastream/RTCDataChannel.idl +++ b/Source/WebCore/Modules/mediastream/RTCDataChannel.idl @@ -23,10 +23,9 @@ */ [ + Conditional=WEB_RTC, NoInterfaceObject, - Conditional=MEDIA_STREAM, - EventTarget, -] interface RTCDataChannel { +] interface RTCDataChannel : EventTarget { readonly attribute DOMString label; readonly attribute boolean ordered; readonly attribute unsigned short maxRetransmitTime; @@ -37,26 +36,17 @@ readonly attribute DOMString readyState; readonly attribute unsigned long bufferedAmount; - [SetterRaisesException] attribute DOMString binaryType; + [SetterMayThrowException] attribute DOMString binaryType; - [RaisesException] void send(ArrayBuffer data); - [RaisesException] void send(ArrayBufferView data); - [RaisesException] void send(Blob data); - [RaisesException] void send(DOMString data); + [MayThrowException] void send(ArrayBuffer data); + [MayThrowException] void send(ArrayBufferView data); + [MayThrowException] void send(Blob data); + [MayThrowException] void send(DOMString data); void close(); - attribute EventListener onopen; - attribute EventListener onerror; - attribute EventListener onclose; - attribute EventListener onmessage; - - // EventTarget interface - void addEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - void removeEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - [RaisesException] boolean dispatchEvent(Event event); + attribute EventHandler onopen; + attribute EventHandler onerror; + attribute EventHandler onclose; + attribute EventHandler onmessage; }; |