Index: ui/views/window/non_client_view.cc |
diff --git a/ui/views/window/non_client_view.cc b/ui/views/window/non_client_view.cc |
index 68a804056eff599142ae7ad09d0c7bfe358fb5a6..d417078bf219ac34546a414891fd2181cd44dcb5 100644 |
--- a/ui/views/window/non_client_view.cc |
+++ b/ui/views/window/non_client_view.cc |
@@ -178,7 +178,7 @@ views::View* NonClientView::GetEventHandlerForPoint(const gfx::Point& point) { |
// removed from the NonClientView. |
gfx::Point point_in_child_coords(point); |
View::ConvertPointToView(this, frame_view_.get(), &point_in_child_coords); |
- if (frame_view_->HitTest(point_in_child_coords)) |
+ if (frame_view_->HitTestPoint(point_in_child_coords)) |
return frame_view_->GetEventHandlerForPoint(point_in_child_coords); |
} |
@@ -247,10 +247,10 @@ int NonClientFrameView::GetHTComponentForFrame(const gfx::Point& point, |
//////////////////////////////////////////////////////////////////////////////// |
// NonClientFrameView, View overrides: |
-bool NonClientFrameView::HitTest(const gfx::Point& l) const { |
+bool NonClientFrameView::HitTestRect(const gfx::Rect& rect) const { |
// For the default case, we assume the non-client frame view never overlaps |
// the client view. |
- return !GetWidget()->client_view()->bounds().Contains(l); |
+ return !GetWidget()->client_view()->bounds().Intersects(rect); |
} |
//////////////////////////////////////////////////////////////////////////////// |