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

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

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/BatteryManager.cpp ('k') | Source/modules/battery/NavigatorBattery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/NavigatorBattery.h
diff --git a/Source/modules/battery/NavigatorBattery.h b/Source/modules/battery/NavigatorBattery.h
index a96b08e1c157fa099f8f3ecdef30379e66b5c100..d5319e08cda5c647f3c388955a2fc330a69f375d 100644
--- a/Source/modules/battery/NavigatorBattery.h
+++ b/Source/modules/battery/NavigatorBattery.h
@@ -5,6 +5,7 @@
#ifndef NavigatorBattery_h
#define NavigatorBattery_h
+#include "bindings/v8/ScriptPromise.h"
#include "core/frame/Navigator.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
@@ -21,8 +22,8 @@ public:
static NavigatorBattery& from(Navigator&);
- static BatteryManager* battery(Navigator&);
- BatteryManager* batteryManager(Navigator&);
+ static ScriptPromise getBattery(ScriptState*, Navigator&);
+ ScriptPromise getBattery(ScriptState*);
void trace(Visitor*);
« no previous file with comments | « Source/modules/battery/BatteryManager.cpp ('k') | Source/modules/battery/NavigatorBattery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698