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 "platform/Timer.h" | 10 #include "platform/Timer.h" |
11 #include "public/platform/WebLockOrientationCallback.h" | 11 #include "public/platform/WebLockOrientationCallback.h" |
12 #include "public/platform/WebScreenOrientationLockType.h" | 12 #include "public/platform/WebScreenOrientationLockType.h" |
13 #include "public/platform/WebScreenOrientationType.h" | 13 #include "public/platform/WebScreenOrientationType.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 class WebScreenOrientationClient; | 16 class WebScreenOrientationClient; |
17 } | 17 } |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class FrameView; | 21 class FrameView; |
22 class ScreenOrientation; | 22 class ScreenOrientation; |
23 | 23 |
24 class ScreenOrientationController FINAL : | 24 class ScreenOrientationController FINAL |
25 public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController>, | 25 : public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController> |
26 public WillBeHeapSupplement<LocalFrame>, | 26 , public WillBeHeapSupplement<LocalFrame> |
27 public PageLifecycleObserver { | 27 , public PageLifecycleObserver { |
28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); | 28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); |
29 WTF_MAKE_NONCOPYABLE(ScreenOrientationController); | 29 WTF_MAKE_NONCOPYABLE(ScreenOrientationController); |
30 public: | 30 public: |
31 virtual ~ScreenOrientationController(); | 31 virtual ~ScreenOrientationController(); |
32 | 32 |
33 virtual void persistentHostHasBeenDestroyed() OVERRIDE; | 33 virtual void persistentHostHasBeenDestroyed() OVERRIDE; |
34 | 34 |
35 void setOrientation(ScreenOrientation*); | 35 void setOrientation(ScreenOrientation*); |
36 void notifyOrientationChanged(); | 36 void notifyOrientationChanged(); |
37 | 37 |
(...skipping 21 matching lines...) Expand all Loading... |
59 | 59 |
60 PersistentWillBeMember<ScreenOrientation> m_orientation; | 60 PersistentWillBeMember<ScreenOrientation> m_orientation; |
61 blink::WebScreenOrientationClient* m_client; | 61 blink::WebScreenOrientationClient* m_client; |
62 LocalFrame& m_frame; | 62 LocalFrame& m_frame; |
63 Timer<ScreenOrientationController> m_dispatchEventTimer; | 63 Timer<ScreenOrientationController> m_dispatchEventTimer; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace blink | 66 } // namespace blink |
67 | 67 |
68 #endif // ScreenOrientationController_h | 68 #endif // ScreenOrientationController_h |
OLD | NEW |