1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
content / shell / common / power_monitor_test.mojom [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module content.mojom;
import "mojo/public/mojom/base/battery_power_status.mojom";
import "sandbox/policy/mojom/sandbox.mojom";
// This interface is only for the sake of browser test to query current power
// state observed in remote child processes.
[ServiceSandbox=sandbox.mojom.Sandbox.kGpu]
interface PowerMonitorTest {
// The power state is reported immediatelly if there is already a change
// available to notify, otherwise wait until a change happen. Overlapping
// calls to QueryNextState are prohibited.
QueryNextState()
=> (mojo_base.mojom.BatteryPowerStatus battery_power_status);
};