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

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

Issue 2841: A couple of tweaks to the AeroGlassNonClientView:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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/views/frame/aero_glass_non_client_view.cc
===================================================================
--- chrome/browser/views/frame/aero_glass_non_client_view.cc (revision 2051)
+++ chrome/browser/views/frame/aero_glass_non_client_view.cc (working copy)
@@ -135,7 +135,7 @@
gfx::Rect AeroGlassNonClientView::GetBoundsForTabStrip(TabStrip* tabstrip) {
// If we are maximized, the tab strip will be in line with the window
// controls, so we need to make sure they don't overlap.
- int tabstrip_width = GetWidth();
+ int tabstrip_width = browser_view_->GetWidth();
if(frame_->IsMaximized()) {
TITLEBARINFOEX titlebar_info;
titlebar_info.cbSize = sizeof(TITLEBARINFOEX);
@@ -199,7 +199,7 @@
// caption area above the tabs and the top sizing border.
int client_view_right =
frame_->client_view()->GetX() + frame_->client_view()->GetWidth();
- if (point.x() >= frame_->client_view()->GetX() ||
+ if (point.x() >= frame_->client_view()->GetX() &&
point.x() < client_view_right) {
if (point.y() < kWindowSizingBorderSize)
return HTTOP;
« 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