diff options
Diffstat (limited to 'Source/WebCore/page/EventSource.idl')
-rw-r--r-- | Source/WebCore/page/EventSource.idl | 33 |
1 files changed, 12 insertions, 21 deletions
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; }; |