Chromium Code Reviews| Index: ui/base/win/dpi.h |
| diff --git a/ui/base/win/dpi.h b/ui/base/win/dpi.h |
| index bfc0417fbb7041d7197fe6a878ce74ed4fd04bfc..d5a2fb5cdc576190b750a829c0977a987fbd7013 100644 |
| --- a/ui/base/win/dpi.h |
| +++ b/ui/base/win/dpi.h |
| @@ -38,6 +38,9 @@ UI_EXPORT gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels); |
| UI_EXPORT gfx::Size DIPToScreenSize(const gfx::Size& dip_size); |
| +// Win32's GetSystemMetrics uses pixel measures. This function converts to DIP. |
|
kevers
2013/03/14 19:47:12
Not clear from the comment that this is fetching t
girard
2013/03/14 20:09:49
Done.
|
| +UI_EXPORT int GetSystemMetricsInDIP(int metric); |
| + |
| // The OS secretly scales apps that are not DPIAware. This is not visible |
| // through standard OS calls like GetWindowPos(), or through GetDPIScale(). |
| // Returns the scale factor of the display, where 96 DPI is 1.0. |