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" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 private: | 48 private: |
49 explicit ScreenOrientationController(LocalFrame&, blink::WebScreenOrientatio
nClient*); | 49 explicit ScreenOrientationController(LocalFrame&, blink::WebScreenOrientatio
nClient*); |
50 static blink::WebScreenOrientationType computeOrientation(FrameView*); | 50 static blink::WebScreenOrientationType computeOrientation(FrameView*); |
51 | 51 |
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 void notifyPlatform(); |
| 58 |
57 PersistentWillBeMember<ScreenOrientation> m_orientation; | 59 PersistentWillBeMember<ScreenOrientation> m_orientation; |
58 blink::WebScreenOrientationClient* m_client; | 60 blink::WebScreenOrientationClient* m_client; |
59 LocalFrame& m_frame; | 61 LocalFrame& m_frame; |
| 62 bool m_platformListening; |
60 }; | 63 }; |
61 | 64 |
62 } // namespace WebCore | 65 } // namespace WebCore |
63 | 66 |
64 #endif // ScreenOrientationController_h | 67 #endif // ScreenOrientationController_h |
OLD | NEW |