diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/MessageEvent.idl')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/MessageEvent.idl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/MessageEvent.idl b/Userland/Libraries/LibWeb/HTML/MessageEvent.idl index 5eadf05c26..7f5970ddf3 100644 --- a/Userland/Libraries/LibWeb/HTML/MessageEvent.idl +++ b/Userland/Libraries/LibWeb/HTML/MessageEvent.idl @@ -1,4 +1,7 @@ +#import <DOM/Event.idl> + interface MessageEvent : Event { + constructor(DOMString type, optional MessageEventInit eventInitDict = {}); readonly attribute any data; readonly attribute USVString origin; @@ -6,3 +9,11 @@ interface MessageEvent : Event { // FIXME: readonly attribute MessageEventSource? source; // FIXME: readonly attribute FrozenArray<MessagePort> ports; }; + +dictionary MessageEventInit : EventInit { + any data = null; + USVString origin = ""; + DOMString lastEventId = ""; + // FIXME: MessageEventSource? source = null; + // FIXME: sequence<MessagePort> ports = []; +}; |