mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update web-platform-tests to revision 4688078c2cc6e81651b220f3c1944d956f63046b
This commit is contained in:
parent
e7b65c42c4
commit
ce9f8f32f1
53 changed files with 1900 additions and 88 deletions
|
@ -11,13 +11,19 @@ enum WakeLockType { "screen", "system" };
|
|||
|
||||
[Constructor(WakeLockType type), SecureContext, Exposed=(DedicatedWorker,Window)]
|
||||
interface WakeLock : EventTarget {
|
||||
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
|
||||
readonly attribute WakeLockType type;
|
||||
readonly attribute boolean active;
|
||||
attribute EventHandler onactivechange;
|
||||
Promise<void> request(optional WakeLockRequestOptions options);
|
||||
static sequence<WakeLock> query(optional WakeLockQueryFilter filter);
|
||||
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
|
||||
};
|
||||
|
||||
dictionary WakeLockRequestOptions {
|
||||
AbortSignal? signal;
|
||||
};
|
||||
|
||||
dictionary WakeLockQueryFilter {
|
||||
WakeLockType? type;
|
||||
boolean? active;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue