summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML
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/HTML
parent1c4f128fd126ea70c557114fe80d54ee4a7f8757 (diff)
downloadserenity-f45d361f037509edc653e29c88ce591678e562fa.zip
LibWeb: Replace ad-hoc EventHandler type with callback function typedef
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLElement.idl1
-rw-r--r--Userland/Libraries/LibWeb/HTML/MessagePort.idl1
-rw-r--r--Userland/Libraries/LibWeb/HTML/Worker.idl3
-rw-r--r--Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.idl1
4 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
index 8b5518ef1e..fb81dffd01 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
+++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
@@ -1,4 +1,5 @@
#import <HTML/DOMStringMap.idl>
+#import <DOM/EventHandler.idl>
interface HTMLElement : Element {
diff --git a/Userland/Libraries/LibWeb/HTML/MessagePort.idl b/Userland/Libraries/LibWeb/HTML/MessagePort.idl
index af03a2ce83..3a8a92fc7b 100644
--- a/Userland/Libraries/LibWeb/HTML/MessagePort.idl
+++ b/Userland/Libraries/LibWeb/HTML/MessagePort.idl
@@ -1,4 +1,5 @@
#import <DOM/EventTarget.idl>
+#import <DOM/EventHandler.idl>
interface MessagePort : EventTarget {
diff --git a/Userland/Libraries/LibWeb/HTML/Worker.idl b/Userland/Libraries/LibWeb/HTML/Worker.idl
index 73687379a1..4f92053381 100644
--- a/Userland/Libraries/LibWeb/HTML/Worker.idl
+++ b/Userland/Libraries/LibWeb/HTML/Worker.idl
@@ -1,3 +1,6 @@
+#import <DOM/EventTarget.idl>
+#import <DOM/EventHandler.idl>
+
[Exposed=(Window)]
interface Worker : EventTarget {
constructor(DOMString scriptURL, optional WorkerOptions options = {});
diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.idl b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.idl
index 04117e1d4c..28d1c1581f 100644
--- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.idl
+++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.idl
@@ -1,4 +1,5 @@
#import <DOM/EventTarget.idl>
+#import <DOM/EventHandler.idl>
#import <HTML/WorkerLocation.idl>
#import <HTML/WorkerNavigator.idl>