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

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

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 #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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698