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

Unified Diff: ash/display/screen_ash.cc

Issue 2207043002: SetDeviceScaleFactorForTest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetDeviceScaleFactorForTest Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/screen_ash.h ('k') | ash/display/screen_ash_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index 7ec4f86eec0851c4f93e5b756596ac6e654de501..ee8ab1302f391b863f7e8d81f8c1179e9459a3e1 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -187,6 +187,11 @@ void ScreenAsh::RemoveObserver(display::DisplayObserver* observer) {
observers_.RemoveObserver(observer);
}
+void ScreenAsh::SetDeviceScaleFactorForTest(float scale_factor) {
+ display::Display::SetForceDeviceScaleFactorForTesting(scale_factor);
+ GetDisplayManager()->UpdateDisplays();
+}
+
display::Screen* ScreenAsh::CloneForShutdown() {
return new ScreenForShutdown(this);
}
« no previous file with comments | « ash/display/screen_ash.h ('k') | ash/display/screen_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698