blob: 3063bdf22420ce38d6f037bcf15e8f155fcee40b [file] [log] [blame]
// Copyright 2018 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.
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);
};