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

Unified Diff: components/autofill/renderer/autofill_agent.cc

Issue 16049009: [autofill] Show autofill suggestions on tap gesture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile errors for tests Created 7 years, 6 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: components/autofill/renderer/autofill_agent.cc
diff --git a/components/autofill/renderer/autofill_agent.cc b/components/autofill/renderer/autofill_agent.cc
index e8cc97a286932bb9b27934fd56fc9e2ca55fe963..8b77317aca937da63bf4076ff17ffd89ce0fc53d 100644
--- a/components/autofill/renderer/autofill_agent.cc
+++ b/components/autofill/renderer/autofill_agent.cc
@@ -360,8 +360,9 @@ void AutofillAgent::setIgnoreTextChanges(bool ignore) {
void AutofillAgent::InputElementClicked(const WebInputElement& element,
bool was_focused,
- bool is_focused) {
- if (was_focused)
+ bool is_focused,
+ InputEventSource input_event_source) {
+ if (was_focused || input_event_source == TAP_GESTURE)
ShowSuggestions(element, true, false, true);
}

Powered by Google App Engine
This is Rietveld 408576698