File's structured serialization should serialize lastModified attribute
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / interfaces / wake-lock.idl
1 enum WakeLockType {
2     "screen",
3     "system"
4 };
5
6 partial interface Navigator {
7     [SecureContext] Promise<WakeLock> getWakeLock(WakeLockType type);
8 };
9
10 [SecureContext,
11  Exposed=Window]
12 interface WakeLock : EventTarget {
13     readonly attribute WakeLockType type;
14     readonly attribute boolean      active;
15              attribute EventHandler onactivechange;
16     WakeLockRequest createRequest();
17 };
18
19 [SecureContext,
20  Exposed=Window]
21 interface WakeLockRequest {
22     void cancel();
23 };