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; |