Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.h ('k') | chrome/browser/ui/views/autofill/decorated_textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698