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 --- Source/WebCore/page/EventSource.idl | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'Source/WebCore/page/EventSource.idl') diff --git a/Source/WebCore/page/EventSource.idl b/Source/WebCore/page/EventSource.idl index 1c8adc977..96243609a 100644 --- a/Source/WebCore/page/EventSource.idl +++ b/Source/WebCore/page/EventSource.idl @@ -30,17 +30,14 @@ */ [ - GlobalContext=DOMWindow&WorkerGlobalScope, + Exposed=(Window,Worker), ActiveDOMObject, - Constructor(DOMString url, optional Dictionary eventSourceInit), + Constructor(USVString url, optional EventSourceInit eventSourceInitDict), ConstructorCallWith=ScriptExecutionContext, - ConstructorRaisesException, - EventTarget, - JSNoStaticTables, -] interface EventSource { - - readonly attribute DOMString URL; // Lowercased .url is the one in the spec, but leaving .URL for compatibility reasons. - readonly attribute DOMString url; + ConstructorMayThrowException, +] interface EventSource : EventTarget { + readonly attribute USVString URL; // Lowercased .url is the one in the spec, but leaving .URL for compatibility reasons. + readonly attribute USVString url; readonly attribute boolean withCredentials; // ready state @@ -50,18 +47,12 @@ readonly attribute unsigned short readyState; // networking - attribute EventListener onopen; - attribute EventListener onmessage; - attribute EventListener onerror; + attribute EventHandler onopen; + attribute EventHandler onmessage; + attribute EventHandler onerror; void close(); +}; - // EventTarget interface - void addEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - void removeEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - [RaisesException] boolean dispatchEvent(Event evt); - +dictionary EventSourceInit { + boolean withCredentials = false; }; -- cgit v1.2.1