Index: ui/display/win/screen_win.h |
diff --git a/ui/display/win/screen_win.h b/ui/display/win/screen_win.h |
index 23bc57816074d951e652de8c97a5aeec4fb49b12..6f56419f0d6772609fc4c1793df8b819dec08fa2 100644 |
--- a/ui/display/win/screen_win.h |
+++ b/ui/display/win/screen_win.h |
@@ -89,6 +89,9 @@ class DISPLAY_EXPORT ScreenWin : public display::Screen { |
// The DPI scale is performed relative to the display nearest to |hwnd|. |
static gfx::Size DIPToScreenSize(HWND hwnd, const gfx::Size& dip_size); |
+ // Returns the result of GetSystemMetrics for |metric| scaled to |hwnd|'s DPI. |
+ static int GetSystemMetricsForHwnd(HWND hwnd, int metric); |
+ |
// Returns the HWND associated with the NativeView. |
virtual HWND GetHWNDFromNativeView(gfx::NativeView window) const; |
@@ -127,6 +130,7 @@ class DISPLAY_EXPORT ScreenWin : public display::Screen { |
virtual MONITORINFOEX MonitorInfoFromWindow(HWND hwnd, DWORD default_options) |
const; |
virtual HWND GetRootWindow(HWND hwnd) const; |
+ virtual int GetSystemMetrics(int metric) const; |
private: |
void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |