blob: ac8b70c157a2b42876b55b8ab67873d4a483c54d [file] [log] [blame]
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Wake Lock API (https://w3c.github.io/wake-lock/)
enum WakeLockType { "screen", "system" };
partial interface Navigator {
[SecureContext] Promise<WakeLock> getWakeLock(WakeLockType type);
};
[SecureContext, Exposed=Window] interface WakeLock : EventTarget {
readonly attribute WakeLockType type;
readonly attribute boolean active;
attribute EventHandler onactivechange;
WakeLockRequest createRequest();
};
[SecureContext, Exposed=Window] interface WakeLockRequest {
void cancel();
};