| 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 "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "ui/display/display_constants.h" | 12 #include "ui/display/display_constants.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 namespace internal { | |
| 16 class DisplayManager; | 15 class DisplayManager; |
| 17 } // internal | |
| 18 | 16 |
| 19 namespace test { | 17 namespace test { |
| 20 | 18 |
| 21 class DisplayManagerTestApi { | 19 class DisplayManagerTestApi { |
| 22 public: | 20 public: |
| 23 explicit DisplayManagerTestApi(internal::DisplayManager* display_manager); | 21 explicit DisplayManagerTestApi(DisplayManager* display_manager); |
| 24 virtual ~DisplayManagerTestApi(); | 22 virtual ~DisplayManagerTestApi(); |
| 25 | 23 |
| 26 // Update the display configuration as given in |display_specs|. The format of | 24 // Update the display configuration as given in |display_specs|. The format of |
| 27 // |display_spec| is a list of comma separated spec for each displays. Please | 25 // |display_spec| is a list of comma separated spec for each displays. Please |
| 28 // refer to the comment in |aura::DisplayManager::CreateDisplayFromSpec| for | 26 // refer to the comment in |aura::DisplayManager::CreateDisplayFromSpec| for |
| 29 // the format of the display spec. | 27 // the format of the display spec. |
| 30 void UpdateDisplay(const std::string& display_specs); | 28 void UpdateDisplay(const std::string& display_specs); |
| 31 | 29 |
| 32 // Set the 1st display as an internal display and returns the display Id for | 30 // Set the 1st display as an internal display and returns the display Id for |
| 33 // the internal display. | 31 // the internal display. |
| 34 int64 SetFirstDisplayAsInternalDisplay(); | 32 int64 SetFirstDisplayAsInternalDisplay(); |
| 35 | 33 |
| 36 // Don't update the display when the root window's size was changed. | 34 // Don't update the display when the root window's size was changed. |
| 37 void DisableChangeDisplayUponHostResize(); | 35 void DisableChangeDisplayUponHostResize(); |
| 38 | 36 |
| 39 // Sets the available color profiles for |display_id|. | 37 // Sets the available color profiles for |display_id|. |
| 40 void SetAvailableColorProfiles( | 38 void SetAvailableColorProfiles( |
| 41 int64 display_id, | 39 int64 display_id, |
| 42 const std::vector<ui::ColorCalibrationProfile>& profiles); | 40 const std::vector<ui::ColorCalibrationProfile>& profiles); |
| 43 | 41 |
| 44 private: | 42 private: |
| 45 internal::DisplayManager* display_manager_; // not owned | 43 DisplayManager* display_manager_; // not owned |
| 46 | 44 |
| 47 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); | 45 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace test | 48 } // namespace test |
| 51 } // namespace ash | 49 } // namespace ash |
| 52 | 50 |
| 53 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ | 51 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
| OLD | NEW |