diff options
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; }; |