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

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

Issue 2098993002: Prepare ScreenWin To Use Per-Monitor DPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: ui/display/win/dpi.h
diff --git a/ui/display/win/dpi.h b/ui/display/win/dpi.h
index 66bb6d61d6ff1ca114f727eccb57b8a3550bfb18..074eacadd5ec895ce902a3993f19c8bee992f98f 100644
--- a/ui/display/win/dpi.h
+++ b/ui/display/win/dpi.h
@@ -26,6 +26,9 @@ DISPLAY_EXPORT float GetDPIScale();
// Returns the equivalent DPI for |device_scaling_factor|.
DISPLAY_EXPORT int GetDPIFromScalingFactor(float device_scaling_factor);
+// Returns the equivalent scaling factor for |dpi|.
+DISPLAY_EXPORT float GetScalingFactorFromDPI(int dpi);
+
// Win32's GetSystemMetrics uses pixel measures. This function calls
// GetSystemMetrics for the given |metric|, then converts the result to DIP.
DISPLAY_EXPORT int GetSystemMetricsInDIP(int metric);

Powered by Google App Engine
This is Rietveld 408576698