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

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

Issue 2186163002: Create ScreenWin::GetSystemMetricsInDIP and Correctly Deprecate display::win::GetSystemMetricsInDIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment 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 | ui/display/win/screen_win.h » ('j') | 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 52d961bb54af1a9dd78eaa482f7362d9b0a34941..2d572104cfa627f66c34bbc1be00af914ac7812c 100644
--- a/ui/display/win/dpi.h
+++ b/ui/display/win/dpi.h
@@ -29,11 +29,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.
+// Deprecated. Use display::win::ScreenWin::GetSystemMetricsInDIP instead.
//
// Win32's GetSystemMetrics uses pixel measures. This function calls
// GetSystemMetrics for the given |metric|, then converts the result using the
-// system's DPI to DIP. This does not handle per-monitor DPI.
+// system's DPI to DIP.
DISPLAY_EXPORT int GetSystemMetricsInDIP(int metric);
} // namespace win
« no previous file with comments | « no previous file | ui/display/win/screen_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698