| 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 <memory> |
| 8 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 9 #include "core/frame/PlatformEventController.h" | 10 #include "core/frame/PlatformEventController.h" |
| 10 #include "core/frame/ScreenOrientationController.h" | 11 #include "core/frame/ScreenOrientationController.h" |
| 11 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
| 12 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback.
h" | 13 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback.
h" |
| 13 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp
e.h" | 14 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp
e.h" |
| 14 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" | 15 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" |
| 15 #include <memory> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ScreenOrientation; | 19 class ScreenOrientation; |
| 20 class WebScreenOrientationClient; | 20 class WebScreenOrientationClient; |
| 21 | 21 |
| 22 class MODULES_EXPORT ScreenOrientationControllerImpl final | 22 class MODULES_EXPORT ScreenOrientationControllerImpl final |
| 23 : public ScreenOrientationController, | 23 : public ScreenOrientationController, |
| 24 public ContextLifecycleObserver, | 24 public ContextLifecycleObserver, |
| 25 public PlatformEventController { | 25 public PlatformEventController { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 Member<ScreenOrientation> m_orientation; | 71 Member<ScreenOrientation> m_orientation; |
| 72 WebScreenOrientationClient* m_client; | 72 WebScreenOrientationClient* m_client; |
| 73 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer; | 73 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer; |
| 74 bool m_activeLock = false; | 74 bool m_activeLock = false; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // ScreenOrientationControllerImpl_h | 79 #endif // ScreenOrientationControllerImpl_h |
| OLD | NEW |