gecko-dev/testing/web-platform/tests/interfaces/requestidlecallback.idl
autofoolip b7c99e2693 Bug 1606479 [wpt PR 20975] - Update interfaces/requestidlecallback.idl, a=testonly
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
2020-01-09 10:49:17 +00:00

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);