| Index: ui/base/win/dpi.cc
|
| diff --git a/ui/base/win/dpi.cc b/ui/base/win/dpi.cc
|
| index 6c228858b5c3a42eb56b11df6f88b1213b1efc72..75d63bba3d48935827702617c54e05deb0f06e18 100644
|
| --- a/ui/base/win/dpi.cc
|
| +++ b/ui/base/win/dpi.cc
|
| @@ -114,6 +114,11 @@ gfx::Size DIPToScreenSize(const gfx::Size& dip_size) {
|
| return gfx::ToFlooredSize(gfx::ScaleSize(dip_size, GetDeviceScaleFactor()));
|
| }
|
|
|
| +int GetSystemMetricsInDIP(int metric) {
|
| + return static_cast<int>(GetSystemMetrics(metric) /
|
| + GetDeviceScaleFactor() + 0.5);
|
| +}
|
| +
|
| double GetUndocumentedDPIScale() {
|
| // TODO(girard): Remove this code when chrome is DPIAware.
|
| static double scale = -1.0;
|
|
|