Chromium Code Reviews| Index: device/battery/battery_monitor.mojom |
| diff --git a/device/battery/battery_monitor.mojom b/device/battery/battery_monitor.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a2bd33368d3f77af9a01e5400ce50e69e9636e97 |
| --- /dev/null |
| +++ b/device/battery/battery_monitor.mojom |
| @@ -0,0 +1,18 @@ |
| +// 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. |
| + |
| +import "device/battery/battery_status.mojom" |
| + |
| +module device { |
| + |
| +// A BatteryMonitor will periodically call its client's DidChange method. |
| +[Client=BatteryMonitorClient] |
| +interface BatteryMonitor { |
|
viettrungluu
2014/10/22 22:05:31
I guess this interface would work, but there's som
ppi
2014/10/23 15:42:40
As for the observation frequency, I think that in
|
| +}; |
| + |
| +interface BatteryMonitorClient { |
| + DidChange(BatteryStatus status); |
| +}; |
| + |
| +} |