diff options
Diffstat (limited to 'Source/WebCore/page/EventSource.idl')
| -rw-r--r-- | Source/WebCore/page/EventSource.idl | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Source/WebCore/page/EventSource.idl b/Source/WebCore/page/EventSource.idl index 36f8d8999..1c8adc977 100644 --- a/Source/WebCore/page/EventSource.idl +++ b/Source/WebCore/page/EventSource.idl @@ -35,7 +35,9 @@ Constructor(DOMString url, optional Dictionary eventSourceInit), ConstructorCallWith=ScriptExecutionContext, ConstructorRaisesException, -] interface EventSource : EventTarget { + 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; @@ -48,8 +50,18 @@ readonly attribute unsigned short readyState; // networking - attribute EventHandler onopen; - attribute EventHandler onmessage; - attribute EventHandler onerror; + attribute EventListener onopen; + attribute EventListener onmessage; + attribute EventListener 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); + }; |
