| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://w3c.github.io/screen-wake-lock/#the-wakelocksentinel-interface |
| |
| [ |
| ActiveScriptWrappable, |
| Exposed(DedicatedWorker SystemWakeLock, Window WakeLock), |
| SecureContext |
| ] interface WakeLockSentinel : EventTarget { |
| attribute EventHandler onrelease; |
| |
| readonly attribute boolean released; |
| readonly attribute WakeLockType type; |
| |
| [CallWith=ScriptState] Promise<undefined> release(); |
| }; |