diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-14 07:28:08 -0400 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-03-14 09:07:40 -0400 |
commit | 0aa4466ce9cde72df8140c647a2d3ea58b01731a (patch) | |
tree | eaf7132aee7a2755d1c221b9899500c8c8b050b2 /Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl | |
parent | 6c5e79ce3aad05d03c403bb2826c3d555e27b2c9 (diff) | |
download | serenity-0aa4466ce9cde72df8140c647a2d3ea58b01731a.zip |
LibWeb: Port {set,clear}{Timeout,Interval} to IDL
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl b/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl index dc734395af..fda12c65dd 100644 --- a/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl +++ b/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.idl @@ -5,6 +5,9 @@ // FIXME: Support VoidFunction in the IDL parser callback VoidFunction = undefined (); +// https://html.spec.whatwg.org/#timerhandler +typedef (DOMString or Function) TimerHandler; + // https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope interface mixin WindowOrWorkerGlobalScope { [Replaceable] readonly attribute USVString origin; @@ -18,10 +21,10 @@ interface mixin WindowOrWorkerGlobalScope { ByteString atob(DOMString data); // timers - // FIXME: long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments); - // FIXME: undefined clearTimeout(optional long id = 0); - // FIXME: long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments); - // FIXME: undefined clearInterval(optional long id = 0); + long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments); + undefined clearTimeout(optional long id = 0); + long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments); + undefined clearInterval(optional long id = 0); // microtask queuing undefined queueMicrotask(VoidFunction callback); |