Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1594)

Unified Diff: device/battery/battery_monitor.mojom

Issue 685703002: Reland "Replace Chrome IPC with Mojo IPC for querying BatteryStatus service" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tim's comments. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/battery/battery_export.h ('k') | device/battery/battery_monitor_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3648a745e3b29a69606367ed31ed97e9bff60951
--- /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=BatteryStatusObserver]
+interface BatteryMonitor {
+};
+
+interface BatteryStatusObserver {
+ DidChange(BatteryStatus status);
+};
+
+}
« no previous file with comments | « device/battery/battery_export.h ('k') | device/battery/battery_monitor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698