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

Unified Diff: Source/modules/battery/NavigatorBattery.idl

Issue 182613002: Add support to Battery Status API in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add NeedsRebaseline for 4 tests for Mac. Created 6 years, 9 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: Source/modules/battery/NavigatorBattery.idl
diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.idl b/Source/modules/battery/NavigatorBattery.idl
similarity index 68%
copy from Source/modules/serviceworkers/NavigatorServiceWorker.idl
copy to Source/modules/battery/NavigatorBattery.idl
index 1f5335479cf79598fd1ce37f85c492eca124fe71..524bf238c12fc3d0cae9056d4e0dd9df8ce44c81 100644
--- a/Source/modules/serviceworkers/NavigatorServiceWorker.idl
+++ b/Source/modules/battery/NavigatorBattery.idl
@@ -3,7 +3,8 @@
// found in the LICENSE file.
[
- RuntimeEnabled=ServiceWorker,
+ RuntimeEnabled=BatteryStatus,
] partial interface Navigator {
- readonly attribute ServiceWorkerContainer serviceWorker;
+ readonly attribute BatteryManager battery;
};
+

Powered by Google App Engine
This is Rietveld 408576698