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 |