mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-testsUpdate interfaces/*.idl boilerplate from reffy-reports (#12403) The boilerplate has changed: https://github.com/tidoust/reffy/pull/114 This change updates the files where *only* the boilerplate would differ, files with other differences are left untouched. -- wpt-commits: 9444c46e506b6231888b9b21613a8eceb4dac525 wpt-pr: 12403
20 lines
680 B
Text
20 lines
680 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);
|