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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // Sets the available color profiles for |display_id|. | 56 // Sets the available color profiles for |display_id|. |
57 void SetAvailableColorProfiles( | 57 void SetAvailableColorProfiles( |
58 int64_t display_id, | 58 int64_t display_id, |
59 const std::vector<ui::ColorCalibrationProfile>& profiles); | 59 const std::vector<ui::ColorCalibrationProfile>& profiles); |
60 | 60 |
61 // Gets the internal display::ManagedDisplayInfo for a specific display id. | 61 // Gets the internal display::ManagedDisplayInfo for a specific display id. |
62 const display::ManagedDisplayInfo& GetInternalManagedDisplayInfo( | 62 const display::ManagedDisplayInfo& GetInternalManagedDisplayInfo( |
63 int64_t display_id); | 63 int64_t display_id); |
64 | 64 |
| 65 // Sets the UI scale for the |display_id|. Returns false if the |
| 66 // display_id is not an internal display. |
| 67 bool SetDisplayUIScale(int64_t display_id, float scale); |
| 68 |
65 private: | 69 private: |
66 friend class ScopedSetInternalDisplayId; | 70 friend class ScopedSetInternalDisplayId; |
67 // Sets the display id for internal display and | 71 // Sets the display id for internal display and |
68 // update the display mode list if necessary. | 72 // update the display mode list if necessary. |
69 void SetInternalDisplayId(int64_t id); | 73 void SetInternalDisplayId(int64_t id); |
70 | 74 |
71 DisplayManager* display_manager_; // not owned | 75 DisplayManager* display_manager_; // not owned |
72 | 76 |
73 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); | 77 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); |
74 }; | 78 }; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 int offset); | 111 int offset); |
108 | 112 |
109 // Creates the DisplayIdList from ints. | 113 // Creates the DisplayIdList from ints. |
110 display::DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2); | 114 display::DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2); |
111 display::DisplayIdList CreateDisplayIdListN(size_t count, ...); | 115 display::DisplayIdList CreateDisplayIdListN(size_t count, ...); |
112 | 116 |
113 } // namespace test | 117 } // namespace test |
114 } // namespace ash | 118 } // namespace ash |
115 | 119 |
116 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ | 120 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
OLD | NEW |