| 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 |
| 11 #include "ash/display/display_manager.h" | |
| 12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 13 #include "ui/display/types/display_constants.h" | 12 #include "ui/display/types/display_constants.h" |
| 14 | 13 |
| 15 namespace gfx { | 14 namespace gfx { |
| 16 class Point; | 15 class Point; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace ui { | 18 namespace ui { |
| 20 namespace test { | 19 namespace test { |
| 21 class EventGenerator; | 20 class EventGenerator; |
| 22 } | 21 } |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace ash { | 24 namespace ash { |
| 25 class DisplayManager; |
| 26 |
| 26 namespace test { | 27 namespace test { |
| 27 | 28 |
| 28 class DisplayManagerTestApi { | 29 class DisplayManagerTestApi { |
| 29 public: | 30 public: |
| 30 // Test if moving a mouse to |point_in_screen| warps it to another | 31 // Test if moving a mouse to |point_in_screen| warps it to another |
| 31 // display. | 32 // display. |
| 32 static bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, | 33 static bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, |
| 33 const gfx::Point& point_in_screen); | 34 const gfx::Point& point_in_screen); |
| 34 | 35 |
| 35 explicit DisplayManagerTestApi(DisplayManager* display_manager); | 36 explicit DisplayManagerTestApi(DisplayManager* display_manager); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 50 void SetInternalDisplayId(int64 id); | 51 void SetInternalDisplayId(int64 id); |
| 51 | 52 |
| 52 // Don't update the display when the root window's size was changed. | 53 // Don't update the display when the root window's size was changed. |
| 53 void DisableChangeDisplayUponHostResize(); | 54 void DisableChangeDisplayUponHostResize(); |
| 54 | 55 |
| 55 // Sets the available color profiles for |display_id|. | 56 // Sets the available color profiles for |display_id|. |
| 56 void SetAvailableColorProfiles( | 57 void SetAvailableColorProfiles( |
| 57 int64 display_id, | 58 int64 display_id, |
| 58 const std::vector<ui::ColorCalibrationProfile>& profiles); | 59 const std::vector<ui::ColorCalibrationProfile>& profiles); |
| 59 | 60 |
| 60 // Sets the default multi display mode. | |
| 61 void SetDefaultMultiDisplayMode(DisplayManager::MultiDisplayMode mode); | |
| 62 | |
| 63 private: | 61 private: |
| 64 DisplayManager* display_manager_; // not owned | 62 DisplayManager* display_manager_; // not owned |
| 65 | 63 |
| 66 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); | 64 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 } // namespace test | 67 } // namespace test |
| 70 } // namespace ash | 68 } // namespace ash |
| 71 | 69 |
| 72 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ | 70 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
| OLD | NEW |