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

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

Issue 2910413002: cros: Do not cache |root_window| in ScreenRotationAnimator. (Closed)
Patch Set: Remove IsDisplayValid check. Created 3 years, 6 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_DISPLAY_CONFIGURATION_CONTROLLER_TEST_API_H_ 5 #ifndef ASH_TEST_DISPLAY_CONFIGURATION_CONTROLLER_TEST_API_H_
6 #define ASH_TEST_DISPLAY_CONFIGURATION_CONTROLLER_TEST_API_H_ 6 #define ASH_TEST_DISPLAY_CONFIGURATION_CONTROLLER_TEST_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace ash { 12 namespace ash {
13 class DisplayConfigurationController; 13 class DisplayConfigurationController;
14 class ScreenRotationAnimator; 14 class ScreenRotationAnimator;
15 15
16 namespace test { 16 namespace test {
17 17
18 // Accesses private data from a DisplayConfigurationController for testing. 18 // Accesses private data from a DisplayConfigurationController for testing.
19 class DisplayConfigurationControllerTestApi { 19 class DisplayConfigurationControllerTestApi {
20 public: 20 public:
21 explicit DisplayConfigurationControllerTestApi( 21 explicit DisplayConfigurationControllerTestApi(
22 DisplayConfigurationController* controller); 22 DisplayConfigurationController* controller);
23 23
24 // Wrapper functions for DisplayConfigurationController. 24 // Wrapper functions for DisplayConfigurationController.
25 void DisableDisplayAnimator(); 25 void DisableDisplayAnimator();
26 int DisplayScreenRotationAnimatorMapSize();
27 ScreenRotationAnimator* GetScreenRotationAnimatorForDisplay( 26 ScreenRotationAnimator* GetScreenRotationAnimatorForDisplay(
28 int64_t display_id); 27 int64_t display_id);
29 28
30 private: 29 private:
31 DisplayConfigurationController* controller_; 30 DisplayConfigurationController* controller_;
32 31
33 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurationControllerTestApi); 32 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurationControllerTestApi);
34 }; 33 };
35 34
36 } // namespace test 35 } // namespace test
37 } // namespace ash 36 } // namespace ash
38 37
39 #endif // ASH_TEST_DISPLAY_CONFIGURATION_CONTROLLER_TEST_API_H_ 38 #endif // ASH_TEST_DISPLAY_CONFIGURATION_CONTROLLER_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/rotator/screen_rotation_animator_unittest.cc ('k') | ash/test/display_configuration_controller_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698