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

Unified Diff: device/battery/battery_status.mojom

Issue 457933002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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_monitor_impl.cc ('k') | device/battery/battery_status_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status.mojom
diff --git a/content/test/data/web_ui_test_mojo_bindings.mojom b/device/battery/battery_status.mojom
similarity index 51%
copy from content/test/data/web_ui_test_mojo_bindings.mojom
copy to device/battery/battery_status.mojom
index 45f291fdb4fc614cd291a5eb3be324c292fe4083..6e9ba4654933864c9f8f2d231fd2da6f0ecb1dbb 100644
--- a/content/test/data/web_ui_test_mojo_bindings.mojom
+++ b/device/battery/battery_status.mojom
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module content {
+module device {
-[Client=RendererTarget]
-interface BrowserTarget {
- PingResponse();
-};
-
-interface RendererTarget {
- Ping();
+struct BatteryStatus {
+ bool charging = true;
+ double charging_time = 0.0;
+ double discharging_time = double.INFINITY;
+ double level = 1.0;
};
}
« no previous file with comments | « device/battery/battery_monitor_impl.cc ('k') | device/battery/battery_status_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698