| 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 357c1dbab118e11cf5d03ac533b8a7bd52f74da0..7ac132781f8827590e835c8794406f7274371410 100644
|
| --- a/ui/views/window/non_client_view.cc
|
| +++ b/ui/views/window/non_client_view.cc
|
| @@ -165,7 +165,7 @@ std::string NonClientView::GetClassName() const {
|
| return kViewClassName;
|
| }
|
|
|
| -views::View* NonClientView::GetEventHandlerForPoint(const gfx::Point& point) {
|
| +View* NonClientView::GetEventHandler(const gfx::Rect& rect, EventType type) {
|
| // Because of the z-ordering of our child views (the client view is positioned
|
| // over the non-client frame view, if the client view ever overlaps the frame
|
| // view visually (as it does for the browser window), then it will eat mouse
|
| @@ -177,13 +177,13 @@ views::View* NonClientView::GetEventHandlerForPoint(const gfx::Point& point) {
|
| // During the reset of the frame_view_ it's possible to be in this code
|
| // after it's been removed from the view hierarchy but before it's been
|
| // removed from the NonClientView.
|
| - gfx::Point point_in_child_coords(point);
|
| - View::ConvertPointToTarget(this, frame_view_.get(), &point_in_child_coords);
|
| - if (frame_view_->HitTestPoint(point_in_child_coords))
|
| - return frame_view_->GetEventHandlerForPoint(point_in_child_coords);
|
| + gfx::Rect rect_in_child_coords(rect);
|
| + View::ConvertRectToTarget(this, frame_view_.get(), &rect_in_child_coords);
|
| + if (frame_view_->HitTestRect(rect_in_child_coords))
|
| + return frame_view_->GetEventHandler(rect_in_child_coords, type);
|
| }
|
|
|
| - return View::GetEventHandlerForPoint(point);
|
| + return View::GetEventHandler(rect, type);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|