| 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 ScreenOrientationControllerImpl_h | 5 #ifndef ScreenOrientationControllerImpl_h |
| 6 #define ScreenOrientationControllerImpl_h | 6 #define ScreenOrientationControllerImpl_h |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/PlatformEventController.h" | 9 #include "core/frame/PlatformEventController.h" |
| 10 #include "core/frame/ScreenOrientationController.h" | 10 #include "core/frame/ScreenOrientationController.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static WebScreenOrientationType computeOrientation(const IntRect&, uint16_t); | 50 static WebScreenOrientationType computeOrientation(const IntRect&, uint16_t); |
| 51 | 51 |
| 52 // Inherited from PlatformEventController. | 52 // Inherited from PlatformEventController. |
| 53 void didUpdateData() override; | 53 void didUpdateData() override; |
| 54 void registerWithDispatcher() override; | 54 void registerWithDispatcher() override; |
| 55 void unregisterWithDispatcher() override; | 55 void unregisterWithDispatcher() override; |
| 56 bool hasLastData() override; | 56 bool hasLastData() override; |
| 57 | 57 |
| 58 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. | 58 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. |
| 59 void contextDestroyed(ExecutionContext*) override; | 59 void contextDestroyed(ExecutionContext*) override; |
| 60 void contextDestroyed(Page*) override; | |
| 61 void pageVisibilityChanged() override; | 60 void pageVisibilityChanged() override; |
| 62 | 61 |
| 63 void notifyDispatcher(); | 62 void notifyDispatcher(); |
| 64 | 63 |
| 65 void updateOrientation(); | 64 void updateOrientation(); |
| 66 | 65 |
| 67 void dispatchEventTimerFired(TimerBase*); | 66 void dispatchEventTimerFired(TimerBase*); |
| 68 | 67 |
| 69 bool isActiveAndVisible() const; | 68 bool isActiveAndVisible() const; |
| 70 | 69 |
| 71 Member<ScreenOrientation> m_orientation; | 70 Member<ScreenOrientation> m_orientation; |
| 72 WebScreenOrientationClient* m_client; | 71 WebScreenOrientationClient* m_client; |
| 73 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer; | 72 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer; |
| 74 bool m_activeLock = false; | 73 bool m_activeLock = false; |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace blink | 76 } // namespace blink |
| 78 | 77 |
| 79 #endif // ScreenOrientationControllerImpl_h | 78 #endif // ScreenOrientationControllerImpl_h |
| OLD | NEW |