| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |