mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
21 lines
612 B
Text
21 lines
612 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the
|
|
// "Wake Lock API" spec.
|
|
// See: 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();
|
|
};
|