diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-01 18:39:03 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-01 20:14:45 +0200 |
commit | d44857d34d0aebef52374297b846304321d355ac (patch) | |
tree | 5b5b1a69fe7215479c37157490b4da079c01b664 /Userland/Libraries/LibWeb/HTML/MessageEvent.idl | |
parent | 9863de4609d81a0c6b97556e13f2bc19c2c8c449 (diff) | |
download | serenity-d44857d34d0aebef52374297b846304321d355ac.zip |
LibWeb: Add the missing MessageEvent IDL constructor
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 = []; +}; |