| 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 ScreenOrientationController_h | 5 #ifndef ScreenOrientationController_h |
| 6 #define ScreenOrientationController_h | 6 #define ScreenOrientationController_h |
| 7 | 7 |
| 8 #include "core/page/PageLifecycleObserver.h" | 8 #include "core/page/PageLifecycleObserver.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "public/platform/WebLockOrientationCallback.h" | 10 #include "public/platform/WebLockOrientationCallback.h" |
| 11 #include "public/platform/WebScreenOrientationLockType.h" | 11 #include "public/platform/WebScreenOrientationLockType.h" |
| 12 #include "public/platform/WebScreenOrientationType.h" | 12 #include "public/platform/WebScreenOrientationType.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 class WebScreenOrientationClient; | 15 class WebScreenOrientationClient; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace WebCore { | 18 namespace blink { |
| 19 | 19 |
| 20 class FrameView; | 20 class FrameView; |
| 21 class ScreenOrientation; | 21 class ScreenOrientation; |
| 22 | 22 |
| 23 class ScreenOrientationController FINAL : | 23 class ScreenOrientationController FINAL : |
| 24 public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController>, | 24 public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController>, |
| 25 public WillBeHeapSupplement<LocalFrame>, | 25 public WillBeHeapSupplement<LocalFrame>, |
| 26 public PageLifecycleObserver { | 26 public PageLifecycleObserver { |
| 27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); | 27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); |
| 28 WTF_MAKE_NONCOPYABLE(ScreenOrientationController); | 28 WTF_MAKE_NONCOPYABLE(ScreenOrientationController); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 52 // Inherited from PageLifecycleObserver. | 52 // Inherited from PageLifecycleObserver. |
| 53 virtual void pageVisibilityChanged() OVERRIDE; | 53 virtual void pageVisibilityChanged() OVERRIDE; |
| 54 | 54 |
| 55 void updateOrientation(); | 55 void updateOrientation(); |
| 56 | 56 |
| 57 PersistentWillBeMember<ScreenOrientation> m_orientation; | 57 PersistentWillBeMember<ScreenOrientation> m_orientation; |
| 58 blink::WebScreenOrientationClient* m_client; | 58 blink::WebScreenOrientationClient* m_client; |
| 59 LocalFrame& m_frame; | 59 LocalFrame& m_frame; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace WebCore | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // ScreenOrientationController_h | 64 #endif // ScreenOrientationController_h |
| OLD | NEW |