OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/test/screen_orientation_controller_test_api.h" |
| 6 |
| 7 #include "ash/display/screen_orientation_controller_chromeos.h" |
| 8 |
| 9 namespace ash { |
| 10 namespace test { |
| 11 |
| 12 ScreenOrientationControllerTestApi::ScreenOrientationControllerTestApi( |
| 13 ScreenOrientationController* controller) |
| 14 : controller_(controller) {} |
| 15 |
| 16 void ScreenOrientationControllerTestApi::SetDisplayRotation( |
| 17 display::Display::Rotation rotation, |
| 18 display::Display::RotationSource source) { |
| 19 controller_->SetDisplayRotation(rotation, source); |
| 20 } |
| 21 |
| 22 void ScreenOrientationControllerTestApi::SetRotationLocked(bool locked) { |
| 23 controller_->SetRotationLockedInternal(locked); |
| 24 } |
| 25 |
| 26 blink::WebScreenOrientationLockType |
| 27 ScreenOrientationControllerTestApi::UserLockedOrientation() const { |
| 28 return controller_->user_locked_orientation_; |
| 29 } |
| 30 |
| 31 } // namespace test |
| 32 } // namespace ash |
OLD | NEW |