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 #ifndef ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_ |
| 6 #define ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationLockType.h" |
| 10 #include "ui/display/display.h" |
| 11 |
| 12 namespace ash { |
| 13 class ScreenOrientationController; |
| 14 |
| 15 namespace test { |
| 16 |
| 17 class ScreenOrientationControllerTestApi { |
| 18 public: |
| 19 explicit ScreenOrientationControllerTestApi( |
| 20 ScreenOrientationController* controller); |
| 21 |
| 22 void SetDisplayRotation(display::Display::Rotation rotation, |
| 23 display::Display::RotationSource source); |
| 24 |
| 25 void SetRotationLocked(bool rotation_locked); |
| 26 |
| 27 blink::WebScreenOrientationLockType UserLockedOrientation() const; |
| 28 |
| 29 private: |
| 30 ScreenOrientationController* controller_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationControllerTestApi); |
| 33 }; |
| 34 |
| 35 } // namespace test |
| 36 } // namespace ash |
| 37 |
| 38 #endif // ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_ |
OLD | NEW |