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

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

Issue 187583004: Fix gesture detection for autofill popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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_popup_base_view.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc b/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
index 71b056a9281102564dab64c1c0774002a1873f57..7fe84bf08b39450350f56f14f7ea526d6b23d0dc 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
+++ b/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
@@ -186,7 +186,7 @@ void AutofillPopupBaseView::OnGestureEvent(ui::GestureEvent* event) {
case ui::ET_GESTURE_TAP:
case ui::ET_GESTURE_SCROLL_END:
if (HitTestPoint(event->location()))
- SetSelection(event->location());
+ AcceptSelection(event->location());
else
ClearSelection();
break;

Powered by Google App Engine
This is Rietveld 408576698