OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGER_TEST_API_H_ | 5 #ifndef ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
6 #define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ | 6 #define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 namespace test { | 28 namespace test { |
29 | 29 |
30 class DisplayManagerTestApi { | 30 class DisplayManagerTestApi { |
31 public: | 31 public: |
32 // Test if moving a mouse to |point_in_screen| warps it to another | 32 // Test if moving a mouse to |point_in_screen| warps it to another |
33 // display. | 33 // display. |
34 static bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, | 34 static bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, |
35 const gfx::Point& point_in_screen); | 35 const gfx::Point& point_in_screen); |
36 | 36 |
37 static void EnableUnifiedDesktopForTest(); | |
38 | |
39 DisplayManagerTestApi(); | 37 DisplayManagerTestApi(); |
40 virtual ~DisplayManagerTestApi(); | 38 virtual ~DisplayManagerTestApi(); |
41 | 39 |
42 // Update the display configuration as given in |display_specs|. The format of | 40 // Update the display configuration as given in |display_specs|. The format of |
43 // |display_spec| is a list of comma separated spec for each displays. Please | 41 // |display_spec| is a list of comma separated spec for each displays. Please |
44 // refer to the comment in |ash::DisplayInfo::CreateFromSpec| for the format | 42 // refer to the comment in |ash::DisplayInfo::CreateFromSpec| for the format |
45 // of the display spec. | 43 // of the display spec. |
46 void UpdateDisplay(const std::string& display_specs); | 44 void UpdateDisplay(const std::string& display_specs); |
47 | 45 |
48 // Set the 1st display as an internal display and returns the display Id for | 46 // Set the 1st display as an internal display and returns the display Id for |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 DISALLOW_COPY_AND_ASSIGN(ScopedSetInternalDisplayId); | 84 DISALLOW_COPY_AND_ASSIGN(ScopedSetInternalDisplayId); |
87 }; | 85 }; |
88 | 86 |
89 // Sets the display mode that matches the |resolution| for |display_id|. | 87 // Sets the display mode that matches the |resolution| for |display_id|. |
90 bool SetDisplayResolution(int64 display_id, const gfx::Size& resolution); | 88 bool SetDisplayResolution(int64 display_id, const gfx::Size& resolution); |
91 | 89 |
92 } // namespace test | 90 } // namespace test |
93 } // namespace ash | 91 } // namespace ash |
94 | 92 |
95 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ | 93 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
OLD | NEW |