OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BatteryManager_h | 5 #ifndef BatteryManager_h |
6 #define BatteryManager_h | 6 #define BatteryManager_h |
7 | 7 |
8 #include "bindings/v8/ScriptPromise.h" | 8 #include "bindings/v8/ScriptPromise.h" |
9 #include "bindings/v8/ScriptPromiseResolverWithContext.h" | 9 #include "bindings/v8/ScriptPromiseResolverWithContext.h" |
10 #include "core/dom/ContextLifecycleObserver.h" | 10 #include "core/dom/ContextLifecycleObserver.h" |
11 #include "core/dom/Document.h" | |
12 #include "core/frame/DeviceEventControllerBase.h" | 11 #include "core/frame/DeviceEventControllerBase.h" |
13 #include "modules/EventTargetModules.h" | 12 #include "modules/EventTargetModules.h" |
14 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
15 | 14 |
16 namespace WebCore { | 15 namespace WebCore { |
17 | 16 |
18 class BatteryStatus; | 17 class BatteryStatus; |
19 | 18 |
20 class BatteryManager FINAL : public RefCountedWillBeRefCountedGarbageCollected<B
atteryManager>, public ActiveDOMObject, public DeviceEventControllerBase, public
EventTargetWithInlineData { | 19 class BatteryManager FINAL : public RefCountedWillBeRefCountedGarbageCollected<B
atteryManager>, public ActiveDOMObject, public DeviceEventControllerBase, public
EventTargetWithInlineData { |
21 REFCOUNTED_EVENT_TARGET(BatteryManager); | 20 REFCOUNTED_EVENT_TARGET(BatteryManager); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 explicit BatteryManager(ExecutionContext*); | 64 explicit BatteryManager(ExecutionContext*); |
66 | 65 |
67 RefPtr<ScriptPromiseResolverWithContext> m_resolver; | 66 RefPtr<ScriptPromiseResolverWithContext> m_resolver; |
68 RefPtrWillBeMember<BatteryStatus> m_batteryStatus; | 67 RefPtrWillBeMember<BatteryStatus> m_batteryStatus; |
69 State m_state; | 68 State m_state; |
70 }; | 69 }; |
71 | 70 |
72 } | 71 } |
73 | 72 |
74 #endif // BatteryManager_h | 73 #endif // BatteryManager_h |
OLD | NEW |