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

Unified Diff: ui/views/widget/native_widget_win.cc

Issue 10411087: Don't use the 1px inset in NWW::GetClientAreaInsets() for shell windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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: ui/views/widget/native_widget_win.cc
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index a5f9b9cd6bd777606684d5b56abf7495a8b34123..eea7964cc6b5634c8ad9d3d97a7ecb76e7a7dbaf 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -2202,6 +2202,11 @@ gfx::Insets NativeWidgetWin::GetClientAreaInsets() const {
return gfx::Insets(border_thickness, border_thickness, border_thickness,
border_thickness);
}
+
+ // The hack below doesn't seem to be necessary when the standard frame is
+ // removed.
+ if (remove_standard_frame_)
+ return gfx::Insets();
// This is weird, but highly essential. If we don't offset the bottom edge
// of the client rect, the window client area and window area will match,
// and when returning to glass rendering mode from non-glass, the client
« 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