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 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 26 matching lines...) Expand all Loading... |
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 |
44 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
45 | 45 |
46 private: | 46 private: |
| 47 friend class MediaControlsOrientationLockAndRotateToFullscreenDelegateTest; |
| 48 |
47 ScreenOrientationControllerImpl(LocalFrame&, WebScreenOrientationClient*); | 49 ScreenOrientationControllerImpl(LocalFrame&, WebScreenOrientationClient*); |
48 | 50 |
49 static WebScreenOrientationType ComputeOrientation(const IntRect&, uint16_t); | 51 static WebScreenOrientationType ComputeOrientation(const IntRect&, uint16_t); |
50 | 52 |
51 // Inherited from PlatformEventController. | 53 // Inherited from PlatformEventController. |
52 void DidUpdateData() override; | 54 void DidUpdateData() override; |
53 void RegisterWithDispatcher() override; | 55 void RegisterWithDispatcher() override; |
54 void UnregisterWithDispatcher() override; | 56 void UnregisterWithDispatcher() override; |
55 bool HasLastData() override; | 57 bool HasLastData() override; |
56 | 58 |
(...skipping 13 matching lines...) Expand all Loading... |
70 | 72 |
71 Member<ScreenOrientation> orientation_; | 73 Member<ScreenOrientation> orientation_; |
72 WebScreenOrientationClient* client_; | 74 WebScreenOrientationClient* client_; |
73 TaskRunnerTimer<ScreenOrientationControllerImpl> dispatch_event_timer_; | 75 TaskRunnerTimer<ScreenOrientationControllerImpl> dispatch_event_timer_; |
74 bool active_lock_ = false; | 76 bool active_lock_ = false; |
75 }; | 77 }; |
76 | 78 |
77 } // namespace blink | 79 } // namespace blink |
78 | 80 |
79 #endif // ScreenOrientationControllerImpl_h | 81 #endif // ScreenOrientationControllerImpl_h |
OLD | NEW |