Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: ash/test/display_manager_test_api.cc

Issue 1251573006: Cleanup: Enable 125DSFForUIScaling on by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/test/display_manager_test_api.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/test/display_manager_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698