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*); |