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

Side by Side Diff: ash/test/screen_orientation_controller_test_api.cc

Issue 2802403002: Resolve current orientation after applying the previous orientation request. (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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "ash/test/screen_orientation_controller_test_api.h" 5 #include "ash/test/screen_orientation_controller_test_api.h"
6 6
7 #include "ash/display/screen_orientation_controller_chromeos.h" 7 #include "ash/display/screen_orientation_controller_chromeos.h"
8 8
9 namespace ash { 9 namespace ash {
10 namespace test { 10 namespace test {
(...skipping 10 matching lines...) Expand all
21 21
22 void ScreenOrientationControllerTestApi::SetRotationLocked(bool locked) { 22 void ScreenOrientationControllerTestApi::SetRotationLocked(bool locked) {
23 controller_->SetRotationLockedInternal(locked); 23 controller_->SetRotationLockedInternal(locked);
24 } 24 }
25 25
26 blink::WebScreenOrientationLockType 26 blink::WebScreenOrientationLockType
27 ScreenOrientationControllerTestApi::UserLockedOrientation() const { 27 ScreenOrientationControllerTestApi::UserLockedOrientation() const {
28 return controller_->user_locked_orientation_; 28 return controller_->user_locked_orientation_;
29 } 29 }
30 30
31 blink::WebScreenOrientationLockType
32 ScreenOrientationControllerTestApi::GetCurrentOrientation() const {
33 return controller_->GetCurrentOrientationForTest();
34 }
35
31 } // namespace test 36 } // namespace test
32 } // namespace ash 37 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698