summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/EventHandler.idl
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-03-30 23:35:42 +0300
committerAndreas Kling <kling@serenityos.org>2022-03-31 01:10:47 +0200
commitf45d361f037509edc653e29c88ce591678e562fa (patch)
treebdfda1412ebd9db0a93a7021decdef10edbf4d7f /Userland/Libraries/LibWeb/DOM/EventHandler.idl
parent1c4f128fd126ea70c557114fe80d54ee4a7f8757 (diff)
downloadserenity-f45d361f037509edc653e29c88ce591678e562fa.zip
LibWeb: Replace ad-hoc EventHandler type with callback function typedef
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/EventHandler.idl')
-rw-r--r--Userland/Libraries/LibWeb/DOM/EventHandler.idl3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/EventHandler.idl b/Userland/Libraries/LibWeb/DOM/EventHandler.idl
new file mode 100644
index 0000000000..afb8503383
--- /dev/null
+++ b/Userland/Libraries/LibWeb/DOM/EventHandler.idl
@@ -0,0 +1,3 @@
+[LegacyTreatNonObjectAsNull]
+callback EventHandlerNonNull = any (Event event);
+typedef EventHandlerNonNull? EventHandler;