From f45d361f037509edc653e29c88ce591678e562fa Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Wed, 30 Mar 2022 23:35:42 +0300 Subject: LibWeb: Replace ad-hoc EventHandler type with callback function typedef --- Userland/Libraries/LibWeb/HTML/HTMLElement.idl | 1 + Userland/Libraries/LibWeb/HTML/MessagePort.idl | 1 + Userland/Libraries/LibWeb/HTML/Worker.idl | 3 +++ Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.idl | 1 + 4 files changed, 6 insertions(+) (limited to 'Userland/Libraries/LibWeb/HTML') 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 +#import 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 +#import 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 +#import + [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 +#import #import #import -- cgit v1.2.3