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

Unified Diff: device/battery/battery_status.mojom

Issue 592153002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN Android fixes. 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
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;
};
}

Powered by Google App Engine
This is Rietveld 408576698