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

Unified Diff: chrome/browser/views/frame/aero_glass_non_client_view.cc

Issue 27115: Fix system menu positioning a bit. In Aero glass, the maximized mode menu wa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | chrome/browser/views/frame/opaque_non_client_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/aero_glass_non_client_view.cc
===================================================================
--- chrome/browser/views/frame/aero_glass_non_client_view.cc (revision 10276)
+++ chrome/browser/views/frame/aero_glass_non_client_view.cc (working copy)
@@ -151,9 +151,14 @@
gfx::Point AeroGlassNonClientView::GetSystemMenuPoint() const {
gfx::Point system_menu_point;
if (browser_view_->IsTabStripVisible()) {
- system_menu_point.SetPoint(
- NonClientBorderThickness() - kClientEdgeThickness,
- NonClientTopBorderHeight() + browser_view_->GetTabStripHeight());
+ // The maximized mode bit here is because in maximized mode the frame edge
+ // and the client edge are both offscreen, whereas in the opaque frame
+ // (where we don't do this trick) maximized windows have no client edge and
+ // only the frame edge is offscreen.
+ system_menu_point.SetPoint(NonClientBorderThickness() -
+ (frame_->IsMaximized() ? 0 : kClientEdgeThickness),
+ NonClientTopBorderHeight() + browser_view_->GetTabStripHeight() -
+ kClientEdgeThickness);
} else {
system_menu_point.SetPoint(0, -kFrameShadowThickness);
}
« no previous file with comments | « no previous file | chrome/browser/views/frame/opaque_non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698