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

Unified Diff: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc

Issue 2110323002: Change the Frame Calculation to Use GetSystemMetricsForHwnd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@smhwnd
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
diff --git a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
index ab6b1b303c57f8a8487813f6fda73116593d92ac..78994e84364171a5a32b1e034ba7da8e871b502c 100644
--- a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
+++ b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
@@ -94,7 +94,9 @@ bool BrowserDesktopWindowTreeHostWin::GetClientAreaInsets(
// In fullscreen mode there is no frame.
*insets = gfx::Insets();
} else {
- const int frame_thickness = GetSystemMetrics(SM_CXSIZEFRAME);
+ const int frame_thickness =
+ display::win::ScreenWin::GetSystemMetricsForHwnd(
+ GetHWND(), SM_CXSIZEFRAME);
// Reduce the Windows non-client border size because we extend the border
// into our client area in UpdateDWMFrame().
*insets = gfx::Insets(0, frame_thickness, frame_thickness,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698