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/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
10 #include "core/dom/ContextLifecycleObserver.h" | 10 #include "core/dom/ContextLifecycleObserver.h" |
11 #include "core/frame/DeviceEventControllerBase.h" | 11 #include "core/frame/DeviceEventControllerBase.h" |
12 #include "modules/EventTargetModules.h" | 12 #include "modules/EventTargetModules.h" |
13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
14 | 14 |
15 namespace WebCore { | 15 namespace blink { |
16 | 16 |
17 class BatteryStatus; | 17 class BatteryStatus; |
18 | 18 |
19 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 { |
20 REFCOUNTED_EVENT_TARGET(BatteryManager); | 20 REFCOUNTED_EVENT_TARGET(BatteryManager); |
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BatteryManager); | 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BatteryManager); |
22 public: | 22 public: |
23 virtual ~BatteryManager(); | 23 virtual ~BatteryManager(); |
24 static PassRefPtrWillBeRawPtr<BatteryManager> create(ExecutionContext*); | 24 static PassRefPtrWillBeRawPtr<BatteryManager> create(ExecutionContext*); |
25 | 25 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 explicit BatteryManager(ExecutionContext*); | 64 explicit BatteryManager(ExecutionContext*); |
65 | 65 |
66 RefPtr<ScriptPromiseResolver> m_resolver; | 66 RefPtr<ScriptPromiseResolver> m_resolver; |
67 RefPtrWillBeMember<BatteryStatus> m_batteryStatus; | 67 RefPtrWillBeMember<BatteryStatus> m_batteryStatus; |
68 State m_state; | 68 State m_state; |
69 }; | 69 }; |
70 | 70 |
71 } | 71 } |
72 | 72 |
73 #endif // BatteryManager_h | 73 #endif // BatteryManager_h |
OLD | NEW |