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

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

Issue 2904263002: [Media Controls] Tests for rotate-to-fullscreen meets orientation lock (Closed)
Patch Set: Fix MSVC warning Created 3 years, 6 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 26 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698