| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. | 57 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. |
| 58 void contextDestroyed(ExecutionContext*) override; | 58 void contextDestroyed(ExecutionContext*) override; |
| 59 void pageVisibilityChanged() override; | 59 void pageVisibilityChanged() override; |
| 60 | 60 |
| 61 void notifyDispatcher(); | 61 void notifyDispatcher(); |
| 62 | 62 |
| 63 void updateOrientation(); | 63 void updateOrientation(); |
| 64 | 64 |
| 65 void dispatchEventTimerFired(TimerBase*); | 65 void dispatchEventTimerFired(TimerBase*); |
| 66 | 66 |
| 67 bool isActive() const; |
| 68 bool isVisible() const; |
| 67 bool isActiveAndVisible() const; | 69 bool isActiveAndVisible() const; |
| 68 | 70 |
| 69 Member<ScreenOrientation> m_orientation; | 71 Member<ScreenOrientation> m_orientation; |
| 70 WebScreenOrientationClient* m_client; | 72 WebScreenOrientationClient* m_client; |
| 71 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer; | 73 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer; |
| 72 bool m_activeLock = false; | 74 bool m_activeLock = false; |
| 73 }; | 75 }; |
| 74 | 76 |
| 75 } // namespace blink | 77 } // namespace blink |
| 76 | 78 |
| 77 #endif // ScreenOrientationControllerImpl_h | 79 #endif // ScreenOrientationControllerImpl_h |
| OLD | NEW |