Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
index aa5384cc8b2dd90ca929d4e0678af4820524d00c..0819d36da18845c943d6b5948e36d008225edfdc 100644 |
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
@@ -997,13 +997,16 @@ void AutofillDialogViews::SectionContainer::OnMouseReleased( |
proxy_button_->OnMouseReleased(ProxyEvent(event)); |
} |
-views::View* AutofillDialogViews::SectionContainer::GetEventHandlerForPoint( |
- const gfx::Point& point) { |
- views::View* handler = views::View::GetEventHandlerForPoint(point); |
+views::View* AutofillDialogViews::SectionContainer::GetEventHandlerForRect( |
+ const gfx::Rect& rect) { |
+ // TODO(tdanderson): Modify this function to support rect-based event |
+ // targeting. |
+ |
+ views::View* handler = views::View::GetEventHandlerForRect(rect); |
// If the event is not in the label bar and there's no background to be |
// cleared, let normal event handling take place. |
if (!background() && |
- point.y() > child_at(0)->bounds().bottom()) { |
+ rect.CenterPoint().y() > child_at(0)->bounds().bottom()) { |
return handler; |
} |