chromium/third_party/blink/public/mojom/wake_lock/wake_lock.mojom

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module blink.mojom;

import "services/device/public/mojom/wake_lock.mojom";

// The Blink WakeLock service allows the creation of WakeLocks without using a
// WakeLockContext or a WakeLockProvider, instead using the associated frame's
// context. This allows Blink to create WakeLocks using the context id
// associated with the window the frame is running in.
interface WakeLockService {
  GetWakeLock(device.mojom.WakeLockType type,
              device.mojom.WakeLockReason reason,
              string description,
              pending_receiver<device.mojom.WakeLock> wake_lock);
};