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

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

Issue 2757493002: User orientation lock (Closed)
Patch Set: . Created 3 years, 9 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698