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

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

Issue 2110313002: Add ScreenWin::GetSystemMetricsForHwnd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Feedback Created 4 years, 6 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | ui/display/win/screen_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698