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

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

Issue 7057014: Variety of tweaks to View API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 86083)
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -278,7 +278,7 @@
int maximized_spacing =
kNewTabCaptionMaximizedSpacing +
- (show_profile_button() && profile_button_->IsVisible() ?
+ (show_profile_button() && profile_button_->visible() ?
profile_button_->GetPreferredSize().width() +
ProfileMenuButton::kProfileTagHorizontalSpacing : 0);
int tabstrip_width = minimize_button_->x() - tabstrip_x -
@@ -364,21 +364,21 @@
return frame_component;
// Then see if the point is within any of the window controls.
- if (close_button_->IsVisible() &&
+ if (close_button_->visible() &&
close_button_->GetMirroredBounds().Contains(point))
return HTCLOSE;
- if (restore_button_->IsVisible() &&
+ if (restore_button_->visible() &&
restore_button_->GetMirroredBounds().Contains(point))
return HTMAXBUTTON;
- if (maximize_button_->IsVisible() &&
+ if (maximize_button_->visible() &&
maximize_button_->GetMirroredBounds().Contains(point))
return HTMAXBUTTON;
- if (minimize_button_->IsVisible() &&
+ if (minimize_button_->visible() &&
minimize_button_->GetMirroredBounds().Contains(point))
return HTMINBUTTON;
// See if the point is within the profile menu button.
- if (show_profile_button() && profile_button_->IsVisible() &&
+ if (show_profile_button() && profile_button_->visible() &&
profile_button_->GetMirroredBounds().Contains(point))
return HTCLIENT;
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698