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

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

Issue 329723005: Battery Status API: blink promise implementation and layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert to a single resolver at a time Created 6 years, 6 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 | « Source/modules/battery/NavigatorBattery.cpp ('k') | Source/modules/battery/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/NavigatorBattery.idl
diff --git a/Source/modules/battery/NavigatorBattery.idl b/Source/modules/battery/NavigatorBattery.idl
index 524bf238c12fc3d0cae9056d4e0dd9df8ce44c81..c5bff09da1473e835b8de2b1f59997117385b2c6 100644
--- a/Source/modules/battery/NavigatorBattery.idl
+++ b/Source/modules/battery/NavigatorBattery.idl
@@ -5,6 +5,6 @@
[
RuntimeEnabled=BatteryStatus,
] partial interface Navigator {
- readonly attribute BatteryManager battery;
+ [CallWith=ScriptState] Promise getBattery();
};
« no previous file with comments | « Source/modules/battery/NavigatorBattery.cpp ('k') | Source/modules/battery/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698