mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-26 05:48:46 +03:00
16 lines
622 B
Plaintext
16 lines
622 B
Plaintext
|
// Copyright 2014 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 device.mojom;
|
||
|
|
||
|
import "services/device/public/interfaces/battery_status.mojom";
|
||
|
|
||
|
interface BatteryMonitor {
|
||
|
// Battery status is reported once it changes or immediately if this is the
|
||
|
// first call to QueryNextStatus on this instance. QueryNextStatus calls may
|
||
|
// be throttled by the service. Overlapping calls to QueryNextStatus are
|
||
|
// prohibited and will be treated as a connection error.
|
||
|
QueryNextStatus() => (BatteryStatus status);
|
||
|
};
|