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 PlatformEventController_h | 5 #ifndef PlatformEventController_h |
6 #define PlatformEventController_h | 6 #define PlatformEventController_h |
7 | 7 |
8 #include "core/page/PageLifecycleObserver.h" | 8 #include "core/page/PageLifecycleObserver.h" |
9 #include "platform/Timer.h" | 9 #include "platform/Timer.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual void registerWithDispatcher() = 0; | 32 virtual void registerWithDispatcher() = 0; |
33 virtual void unregisterWithDispatcher() = 0; | 33 virtual void unregisterWithDispatcher() = 0; |
34 | 34 |
35 // When true initiates a one-shot didUpdateData() when startUpdating() is ca
lled. | 35 // When true initiates a one-shot didUpdateData() when startUpdating() is ca
lled. |
36 virtual bool hasLastData() = 0; | 36 virtual bool hasLastData() = 0; |
37 | 37 |
38 bool m_hasEventListener; | 38 bool m_hasEventListener; |
39 | 39 |
40 private: | 40 private: |
41 // Inherited from PageLifecycleObserver. | 41 // Inherited from PageLifecycleObserver. |
42 virtual void pageVisibilityChanged() OVERRIDE; | 42 virtual void pageVisibilityChanged() override; |
43 | 43 |
44 void oneShotCallback(Timer<PlatformEventController>*); | 44 void oneShotCallback(Timer<PlatformEventController>*); |
45 | 45 |
46 bool m_isActive; | 46 bool m_isActive; |
47 Timer<PlatformEventController> m_timer; | 47 Timer<PlatformEventController> m_timer; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace blink | 50 } // namespace blink |
51 | 51 |
52 #endif // PlatformEventController_h | 52 #endif // PlatformEventController_h |
OLD | NEW |