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" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 private: | 59 private: |
60 enum State { | 60 enum State { |
61 NotStarted, | 61 NotStarted, |
62 Pending, | 62 Pending, |
63 Resolved, | 63 Resolved, |
64 }; | 64 }; |
65 | 65 |
66 explicit BatteryManager(ExecutionContext*); | 66 explicit BatteryManager(ExecutionContext*); |
67 | 67 |
68 RefPtr<ScriptPromiseResolver> m_resolver; | 68 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; |
69 Member<BatteryStatus> m_batteryStatus; | 69 Member<BatteryStatus> m_batteryStatus; |
70 State m_state; | 70 State m_state; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace blink | 73 } // namespace blink |
74 | 74 |
75 #endif // BatteryManager_h | 75 #endif // BatteryManager_h |
OLD | NEW |