Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(819)

Side by Side Diff: Source/modules/screen_orientation/ScreenOrientationController.h

Issue 398003002: Add start/stop listening Platform methods for Screen Orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: apply review comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698