From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../WebCore/Modules/mediastream/RTCDataChannel.idl | 32 ++++++++-------------- 1 file changed, 11 insertions(+), 21 deletions(-) (limited to 'Source/WebCore/Modules/mediastream/RTCDataChannel.idl') 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; }; -- cgit v1.2.1