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" |
11 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
12 #include "platform/Timer.h" | |
13 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback.
h" | 12 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback.
h" |
14 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp
e.h" | 13 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp
e.h" |
15 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" | 14 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" |
16 #include <memory> | 15 #include <memory> |
17 | 16 |
18 namespace blink { | 17 namespace blink { |
19 | 18 |
20 class ScreenOrientation; | 19 class ScreenOrientation; |
21 class WebScreenOrientationClient; | 20 class WebScreenOrientationClient; |
22 | 21 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void notifyDispatcher(); | 61 void notifyDispatcher(); |
63 | 62 |
64 void updateOrientation(); | 63 void updateOrientation(); |
65 | 64 |
66 void dispatchEventTimerFired(TimerBase*); | 65 void dispatchEventTimerFired(TimerBase*); |
67 | 66 |
68 bool isActiveAndVisible() const; | 67 bool isActiveAndVisible() const; |
69 | 68 |
70 Member<ScreenOrientation> m_orientation; | 69 Member<ScreenOrientation> m_orientation; |
71 WebScreenOrientationClient* m_client; | 70 WebScreenOrientationClient* m_client; |
72 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer; | 71 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer; |
73 bool m_activeLock = false; | 72 bool m_activeLock = false; |
74 }; | 73 }; |
75 | 74 |
76 } // namespace blink | 75 } // namespace blink |
77 | 76 |
78 #endif // ScreenOrientationControllerImpl_h | 77 #endif // ScreenOrientationControllerImpl_h |
OLD | NEW |