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

Unified Diff: ui/display/display.h

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 | « ui/aura/window_tree_host.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display.h
diff --git a/ui/display/display.h b/ui/display/display.h
index e0b4cc87568e012f40b29d7bccbd504eb4561121..6becfa9f5ee9632b355fb8639378908c4ab478e0 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -81,6 +81,9 @@ class DISPLAY_EXPORT Display final {
// command line via "--force-device-scale-factor".
static bool HasForceDeviceScaleFactor();
+ // Sets the forced device scale factor.
+ static void SetForceDeviceScaleFactorForTesting(float scale_factor);
+
// Resets the caches used to determine if a device scale factor is being
// forced from the command line via "--force-device-scale-factor", and thus
// ensures that the command line is reevaluated.
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698