mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Use TimerHandler IDL union type
This commit is contained in:
parent
2aca5c82e4
commit
1b22c10483
5 changed files with 54 additions and 97 deletions
|
@ -4,8 +4,7 @@
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#windoworworkerglobalscope
|
||||
|
||||
// FIXME(nox): https://github.com/servo/servo/issues/20700
|
||||
// typedef (DOMString or Function) TimerHandler;
|
||||
typedef (DOMString or Function) TimerHandler;
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface mixin WindowOrWorkerGlobalScope {
|
||||
|
@ -16,13 +15,9 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||
[Throws] DOMString atob(DOMString data);
|
||||
|
||||
// timers
|
||||
// FIXME(nox): https://github.com/servo/servo/issues/20700
|
||||
long setTimeout(Function handler, optional long timeout = 0, any... arguments);
|
||||
long setTimeout(DOMString handler, optional long timeout = 0, any... arguments);
|
||||
long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
|
||||
void clearTimeout(optional long handle = 0);
|
||||
// FIXME(nox): https://github.com/servo/servo/issues/20700
|
||||
long setInterval(Function handler, optional long timeout = 0, any... arguments);
|
||||
long setInterval(DOMString handler, optional long timeout = 0, any... arguments);
|
||||
long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
|
||||
void clearInterval(optional long handle = 0);
|
||||
|
||||
// ImageBitmap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue