Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/modules/battery/BatteryManager.h

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/modules/battery/BatteryManager.h
diff --git a/third_party/WebKit/Source/modules/battery/BatteryManager.h b/third_party/WebKit/Source/modules/battery/BatteryManager.h
index 8c421a3ffe247e6720e1fbbf3741eacd1c956fcc..114273c79acaecd1a92bc203af94d914cd5f206a 100644
--- a/third_party/WebKit/Source/modules/battery/BatteryManager.h
+++ b/third_party/WebKit/Source/modules/battery/BatteryManager.h
@@ -11,12 +11,11 @@
#include "core/dom/ContextLifecycleObserver.h"
#include "core/frame/PlatformEventController.h"
#include "modules/EventTargetModules.h"
+#include "platform/battery/battery_status.h"
#include "platform/heap/Handle.h"
namespace blink {
-class BatteryStatus;
-
class BatteryManager final : public RefCountedGarbageCollectedEventTargetWithInlineData<BatteryManager>, public ActiveDOMObject, public PlatformEventController {
REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(BatteryManager);
DEFINE_WRAPPERTYPEINFO();
@@ -61,7 +60,7 @@ private:
using BatteryProperty = ScriptPromiseProperty<Member<BatteryManager>, Member<BatteryManager>, Member<DOMException>>;
Member<BatteryProperty> m_batteryProperty;
- Member<BatteryStatus> m_batteryStatus;
+ BatteryStatus m_batteryStatus;
};
} // namespace blink

Powered by Google App Engine