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

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

Issue 2182333005: Audit and Deprecate DPI Functions in display::win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/win/dpi.h
diff --git a/ui/display/win/dpi.h b/ui/display/win/dpi.h
index 23ec954c259a7faa00f96171f0ca960ab0186896..a0df09078dffbe99f491d2d7367135a07cd543b7 100644
--- a/ui/display/win/dpi.h
+++ b/ui/display/win/dpi.h
@@ -27,8 +27,11 @@ DISPLAY_EXPORT int GetDPIFromScalingFactor(float device_scaling_factor);
// Returns the equivalent scaling factor for |dpi|.
DISPLAY_EXPORT float GetScalingFactorFromDPI(int dpi);
+// Deprecated. Use display::win::ScreenWin::GetSystemMetricsForHwnd instead.
sky 2016/07/27 18:28:49 Should all of the functions in this file be deprec
robliao 2016/07/27 18:42:56 Deprecated SetDefaultDeviceScaleFactor and GetDPIS
+//
// Win32's GetSystemMetrics uses pixel measures. This function calls
-// GetSystemMetrics for the given |metric|, then converts the result to DIP.
+// GetSystemMetrics for the given |metric|, then converts the result using the
+// system's DPI to DIP. This does not handle per-monitor DPI.
DISPLAY_EXPORT int GetSystemMetricsInDIP(int metric);
} // namespace win
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698