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

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

Issue 2802403002: Resolve current orientation after applying the previous orientation request. (Closed)
Patch Set: Created 3 years, 8 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
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 #ifndef ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_ 5 #ifndef ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_
6 #define ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_ 6 #define ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h" 9 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h"
10 #include "ui/display/display.h" 10 #include "ui/display/display.h"
11 11
12 namespace ash { 12 namespace ash {
13 class ScreenOrientationController; 13 class ScreenOrientationController;
14 14
15 namespace test { 15 namespace test {
16 16
17 class ScreenOrientationControllerTestApi { 17 class ScreenOrientationControllerTestApi {
18 public: 18 public:
19 explicit ScreenOrientationControllerTestApi( 19 explicit ScreenOrientationControllerTestApi(
20 ScreenOrientationController* controller); 20 ScreenOrientationController* controller);
21 21
22 void SetDisplayRotation(display::Display::Rotation rotation, 22 void SetDisplayRotation(display::Display::Rotation rotation,
23 display::Display::RotationSource source); 23 display::Display::RotationSource source);
24 24
25 void SetRotationLocked(bool rotation_locked); 25 void SetRotationLocked(bool rotation_locked);
26 26
27 blink::WebScreenOrientationLockType UserLockedOrientation() const; 27 blink::WebScreenOrientationLockType UserLockedOrientation() const;
28 28
29 blink::WebScreenOrientationLockType GetCurrentOrientation() const;
30
29 private: 31 private:
30 ScreenOrientationController* controller_; 32 ScreenOrientationController* controller_;
31 33
32 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationControllerTestApi); 34 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationControllerTestApi);
33 }; 35 };
34 36
35 } // namespace test 37 } // namespace test
36 } // namespace ash 38 } // namespace ash
37 39
38 #endif // ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_ 40 #endif // ASH_TEST_SCREEN_ORIENTATION_CONTROLLER_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/display/screen_orientation_controller_chromeos.cc ('k') | ash/test/screen_orientation_controller_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698