mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Add the missing CloseEvent IDL constructor
This commit is contained in:
parent
7f551d7f6a
commit
ded8e84f32
Notes:
sideshowbarker
2024-07-18 03:14:29 +09:00
Author: https://github.com/IdanHo
Commit: ded8e84f32
Pull-request: https://github.com/SerenityOS/serenity/pull/10299
3 changed files with 32 additions and 10 deletions
|
@ -1,7 +1,15 @@
|
|||
#import <DOM/Event.idl>
|
||||
|
||||
interface CloseEvent : Event {
|
||||
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
|
||||
|
||||
readonly attribute boolean wasClean;
|
||||
readonly attribute unsigned short code;
|
||||
readonly attribute USVString reason;
|
||||
|
||||
};
|
||||
|
||||
dictionary CloseEventInit : EventInit {
|
||||
boolean wasClean = false;
|
||||
unsigned short code = 0;
|
||||
USVString reason = "";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue