| Index: chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
|
| index 2ef0c1d493bd1c5e7bb0c46ee34b362b9ef46f9a..98e42f6f43cf99e0c12b93b879e17a008b0dd60b 100644
|
| --- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
|
| @@ -209,49 +209,6 @@
|
| SchedulePaint();
|
| }
|
|
|
| -bool BrowserNonClientFrameView::DoesIntersectRect(const views::View* target,
|
| - const gfx::Rect& rect) const {
|
| - DCHECK_EQ(target, this);
|
| - if (!views::ViewTargeterDelegate::DoesIntersectRect(this, rect)) {
|
| - // |rect| is outside the frame's bounds.
|
| - return false;
|
| - }
|
| -
|
| - // If the rect is outside the bounds of the client area, claim it.
|
| - gfx::RectF rect_in_client_view_coords_f(rect);
|
| - View::ConvertRectToTarget(this, frame()->client_view(),
|
| - &rect_in_client_view_coords_f);
|
| - gfx::Rect rect_in_client_view_coords =
|
| - gfx::ToEnclosingRect(rect_in_client_view_coords_f);
|
| - if (!frame()->client_view()->HitTestRect(rect_in_client_view_coords))
|
| - return true;
|
| -
|
| - // Otherwise, claim |rect| only if it is above the bottom of the tabstrip in
|
| - // a non-tab portion.
|
| - TabStrip* tabstrip = browser_view()->tabstrip();
|
| - if (!tabstrip || !browser_view()->IsTabStripVisible())
|
| - return false;
|
| -
|
| - gfx::RectF rect_in_tabstrip_coords_f(rect);
|
| - View::ConvertRectToTarget(this, tabstrip, &rect_in_tabstrip_coords_f);
|
| - gfx::Rect rect_in_tabstrip_coords =
|
| - gfx::ToEnclosingRect(rect_in_tabstrip_coords_f);
|
| - if (rect_in_tabstrip_coords.bottom() > tabstrip->GetLocalBounds().bottom()) {
|
| - // |rect| is below the tabstrip.
|
| - return false;
|
| - }
|
| -
|
| - if (tabstrip->HitTestRect(rect_in_tabstrip_coords)) {
|
| - // Claim |rect| if it is in a non-tab portion of the tabstrip.
|
| - return tabstrip->IsRectInWindowCaption(rect_in_tabstrip_coords);
|
| - }
|
| -
|
| - // We claim |rect| because it is above the bottom of the tabstrip, but
|
| - // not in the tabstrip itself. In particular, the avatar label/button is left
|
| - // of the tabstrip and the window controls are right of the tabstrip.
|
| - return true;
|
| -}
|
| -
|
| void BrowserNonClientFrameView::OnProfileAdded(
|
| const base::FilePath& profile_path) {
|
| OnProfileAvatarChanged(profile_path);
|
|
|