mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibWeb: Port {set,clear}{Timeout,Interval} to IDL
This commit is contained in:
parent
6c5e79ce3a
commit
0aa4466ce9
3 changed files with 11 additions and 93 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue