summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/CloseEvent.idl
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-01 18:16:12 +0300
committerAndreas Kling <kling@serenityos.org>2021-10-01 20:14:45 +0200
commitded8e84f32cf937bf1115f2a8dd0d19db55e212a (patch)
tree5067aa93b2245fa30da73a8d37870078c7cc6d16 /Userland/Libraries/LibWeb/HTML/CloseEvent.idl
parent7f551d7f6a7afc7496cece31126464813fb1aa28 (diff)
downloadserenity-ded8e84f32cf937bf1115f2a8dd0d19db55e212a.zip
LibWeb: Add the missing CloseEvent IDL constructor
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/CloseEvent.idl')
-rw-r--r--Userland/Libraries/LibWeb/HTML/CloseEvent.idl8
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CloseEvent.idl b/Userland/Libraries/LibWeb/HTML/CloseEvent.idl
index bc2df5c1f8..7abf0cb6a4 100644
--- a/Userland/Libraries/LibWeb/HTML/CloseEvent.idl
+++ b/Userland/Libraries/LibWeb/HTML/CloseEvent.idl
@@ -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 = "";
};