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

Unified Diff: ui/gfx/win/dpi.h

Issue 79033002: Disable win/ash on high dpi screens (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Also capture users running with --high-dpi-support=1 Created 7 years, 1 month 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
Index: ui/gfx/win/dpi.h
diff --git a/ui/gfx/win/dpi.h b/ui/gfx/win/dpi.h
index 0193ac01b12a4b52fe3c3ebbda38695df94fb81d..724d1851e353d67d6ae3f5a097b2725bc6a2dae5 100644
--- a/ui/gfx/win/dpi.h
+++ b/ui/gfx/win/dpi.h
@@ -22,9 +22,14 @@ GFX_EXPORT void InitDeviceScaleFactor(float scale);
GFX_EXPORT Size GetDPI();
// Gets the scale factor of the display. For example, if the display DPI is
-// 96 then the scale factor is 1.0.
+// 96 then the scale factor is 1.0. Note that this is the "desktop" scale, which
+// may be differnt than GetModernUIScale().
GFX_EXPORT float GetDPIScale();
+// Gets the scale factor of the modern (metro) UI display. Returns 1.0 for
+// unscaled or "not running on win8+"
+GFX_EXPORT float GetModernUIScale();
+
// Tests to see if the command line flag "--high-dpi-support" is set.
GFX_EXPORT bool IsHighDPIEnabled();

Powered by Google App Engine
This is Rietveld 408576698