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

Unified Diff: trunk/src/ui/views/win/hwnd_message_handler.cc

Issue 321463003: Revert 265329 "Add SM_CXSIZEFRAME and SM_CXPADDEDBORDER metrics ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « trunk/src/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/views/win/hwnd_message_handler.cc
===================================================================
--- trunk/src/ui/views/win/hwnd_message_handler.cc (revision 275260)
+++ trunk/src/ui/views/win/hwnd_message_handler.cc (working copy)
@@ -1068,8 +1068,7 @@
if (IsMaximized()) {
// Windows automatically adds a standard width border to all sides when a
// window is maximized.
- int border_thickness =
- GetSystemMetrics(SM_CXSIZEFRAME) + GetSystemMetrics(SM_CXPADDEDBORDER);
+ int border_thickness = GetSystemMetrics(SM_CXSIZEFRAME);
if (remove_standard_frame_)
border_thickness -= 1;
*insets = gfx::Insets(
@@ -1737,10 +1736,8 @@
// the vertical scrollar down arrow would be drawn.
// We check if the hittest coordinates lie in this region and if yes
// we return HTCLIENT.
- int border_width = ::GetSystemMetrics(SM_CXSIZEFRAME) +
- GetSystemMetrics(SM_CXPADDEDBORDER);
- int border_height = ::GetSystemMetrics(SM_CYSIZEFRAME) +
- GetSystemMetrics(SM_CXPADDEDBORDER);
+ int border_width = ::GetSystemMetrics(SM_CXSIZEFRAME);
+ int border_height = ::GetSystemMetrics(SM_CYSIZEFRAME);
int scroll_width = ::GetSystemMetrics(SM_CXVSCROLL);
int scroll_height = ::GetSystemMetrics(SM_CYVSCROLL);
RECT window_rect;
@@ -2206,8 +2203,7 @@
new_window_rect = monitor_rect;
} else if (IsMaximized()) {
new_window_rect = work_area;
- int border_thickness = GetSystemMetrics(SM_CXSIZEFRAME) +
- GetSystemMetrics(SM_CXPADDEDBORDER);
+ int border_thickness = GetSystemMetrics(SM_CXSIZEFRAME);
new_window_rect.Inset(-border_thickness, -border_thickness);
} else {
new_window_rect = gfx::Rect(window_rect);
« no previous file with comments | « trunk/src/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698