summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.idl')
-rw-r--r--chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.idl16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.idl b/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.idl
new file mode 100644
index 00000000000..f747650f99a
--- /dev/null
+++ b/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.idl
@@ -0,0 +1,16 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ ActiveScriptWrappable,
+ Exposed=(DedicatedWorker,Window),
+ RuntimeEnabled=WakeLock,
+ SecureContext
+] interface WakeLockSentinel : EventTarget {
+ attribute EventHandler onrelease;
+
+ readonly attribute WakeLockType type;
+
+ [CallWith=ScriptState] Promise<void> release();
+};