mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-tests Update interfaces/requestidlecallback.idl (#20975) Source: https://github.com/tidoust/reffy-reports/blob/3157f96/ed/idl/requestidlecallback.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/633413944 -- wpt-commits: afe8566cf6ca643944577ccd9d73381286838b46 wpt-pr: 20975
20 lines
685 B
Text
20 lines
685 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into reffy-reports
|
|
// (https://github.com/tidoust/reffy-reports)
|
|
// Source: Cooperative Scheduling of Background Tasks (https://w3c.github.io/requestidlecallback/)
|
|
|
|
partial interface Window {
|
|
unsigned long requestIdleCallback(IdleRequestCallback callback, optional IdleRequestOptions options = {});
|
|
void cancelIdleCallback(unsigned long handle);
|
|
};
|
|
|
|
dictionary IdleRequestOptions {
|
|
unsigned long timeout;
|
|
};
|
|
|
|
[Exposed=Window] interface IdleDeadline {
|
|
DOMHighResTimeStamp timeRemaining();
|
|
readonly attribute boolean didTimeout;
|
|
};
|
|
|
|
callback IdleRequestCallback = void (IdleDeadline deadline);
|