Files
tubestation/testing/web-platform/tests/interfaces/requestidlecallback.idl
wpt-pr-bot f32d68e7e8 Bug 1764898 [wpt PR 33651] - Sync interfaces/ with @webref/idl 3.7.1, a=testonly
Automatic update from web-platform-tests
Sync interfaces/ with @webref/idl 3.7.1

--

wpt-commits: 7941760c2dd7b9d8750ed12e5422867212bdaec9
wpt-pr: 33651
2022-05-15 20:20:51 +00:00

21 lines
656 B
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: requestIdleCallback() (https://w3c.github.io/requestidlecallback/)
partial interface Window {
unsigned long requestIdleCallback(IdleRequestCallback callback, optional IdleRequestOptions options = {});
undefined cancelIdleCallback(unsigned long handle);
};
dictionary IdleRequestOptions {
unsigned long timeout;
};
[Exposed=Window] interface IdleDeadline {
DOMHighResTimeStamp timeRemaining();
readonly attribute boolean didTimeout;
};
callback IdleRequestCallback = undefined (IdleDeadline deadline);