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 #include "ash/test/display_manager_test_api.h" | 5 #include "ash/test/display_manager_test_api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "ash/display/display_info.h" | 10 #include "ash/display/display_info.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 display_manager_->set_change_display_upon_host_resize(false); | 162 display_manager_->set_change_display_upon_host_resize(false); |
163 } | 163 } |
164 | 164 |
165 void DisplayManagerTestApi::SetAvailableColorProfiles( | 165 void DisplayManagerTestApi::SetAvailableColorProfiles( |
166 int64 display_id, | 166 int64 display_id, |
167 const std::vector<ui::ColorCalibrationProfile>& profiles) { | 167 const std::vector<ui::ColorCalibrationProfile>& profiles) { |
168 display_manager_->display_info_[display_id].set_available_color_profiles( | 168 display_manager_->display_info_[display_id].set_available_color_profiles( |
169 profiles); | 169 profiles); |
170 } | 170 } |
171 | 171 |
| 172 ScopedDisable125DSFForUIScaling::ScopedDisable125DSFForUIScaling() { |
| 173 DisplayInfo::SetUse125DSFForUIScalingForTest(false); |
| 174 } |
| 175 |
| 176 ScopedDisable125DSFForUIScaling::~ScopedDisable125DSFForUIScaling() { |
| 177 DisplayInfo::SetUse125DSFForUIScalingForTest(true); |
| 178 } |
| 179 |
172 } // namespace test | 180 } // namespace test |
173 } // namespace ash | 181 } // namespace ash |
OLD | NEW |