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

Side by Side Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h

Issue 2779523002: Use ScreenOrientationController and not the implementation to break modules/ dep. (Closed)
Patch Set: Created 3 years, 8 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
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 ScreenOrientationControllerImpl_h 5 #ifndef ScreenOrientationControllerImpl_h
6 #define ScreenOrientationControllerImpl_h 6 #define ScreenOrientationControllerImpl_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/frame/PlatformEventController.h" 9 #include "core/frame/PlatformEventController.h"
10 #include "core/frame/ScreenOrientationController.h" 10 #include "core/frame/ScreenOrientationController.h"
(...skipping 12 matching lines...) Expand all
23 : public ScreenOrientationController, 23 : public ScreenOrientationController,
24 public ContextLifecycleObserver, 24 public ContextLifecycleObserver,
25 public PlatformEventController { 25 public PlatformEventController {
26 USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationControllerImpl); 26 USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationControllerImpl);
27 WTF_MAKE_NONCOPYABLE(ScreenOrientationControllerImpl); 27 WTF_MAKE_NONCOPYABLE(ScreenOrientationControllerImpl);
28 28
29 public: 29 public:
30 ~ScreenOrientationControllerImpl() override; 30 ~ScreenOrientationControllerImpl() override;
31 31
32 void setOrientation(ScreenOrientation*); 32 void setOrientation(ScreenOrientation*);
33 void notifyOrientationChanged(); 33 void notifyOrientationChanged() override;
34 34
35 // Implementation of ScreenOrientationController. 35 // Implementation of ScreenOrientationController.
36 void lock(WebScreenOrientationLockType, 36 void lock(WebScreenOrientationLockType,
37 std::unique_ptr<WebLockOrientationCallback>) override; 37 std::unique_ptr<WebLockOrientationCallback>) override;
38 void unlock() override; 38 void unlock() override;
39 bool maybeHasActiveLock() const override; 39 bool maybeHasActiveLock() const override;
40 40
41 static void provideTo(LocalFrame&, WebScreenOrientationClient*); 41 static void provideTo(LocalFrame&, WebScreenOrientationClient*);
42 static ScreenOrientationControllerImpl* from(LocalFrame&); 42 static ScreenOrientationControllerImpl* from(LocalFrame&);
43 43
(...skipping 26 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698