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/page/EventSource.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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; }; |