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

Unified Diff: components/autofill/renderer/page_click_listener.h

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile error for browsertests Created 7 years, 7 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/page_click_listener.h
diff --git a/components/autofill/renderer/page_click_listener.h b/components/autofill/renderer/page_click_listener.h
index 7101722ddb93fd472280aaf9671ae61dad1159b7..c8a31e78dcaa9e86c972f23d96464e9a108f5d4d 100644
--- a/components/autofill/renderer/page_click_listener.h
+++ b/components/autofill/renderer/page_click_listener.h
@@ -11,6 +11,11 @@ class WebInputElement;
namespace autofill {
+enum InputEventSource {
+ TAP_GESTURE,
+ MOUSE_CLICK
+};
+
// Interface that should be implemented by classes interested in getting
// notifications for clicks on a page.
// Register on the PageListenerTracker object.
@@ -19,9 +24,11 @@ class PageClickListener {
// Notification that |element| was clicked.
// |was_focused| is true if |element| had focus BEFORE the click.
// |is_focused| is true if |element| has focus AFTER the click was processed.
+ // |input_event_source| is set to what the source of the interaction was.
virtual void InputElementClicked(const WebKit::WebInputElement& element,
bool was_focused,
- bool is_focused) = 0;
+ bool is_focused,
+ InputEventSource input_event_source) = 0;
// If the previously focused element was an input field, listeners are
// informed that the text field has lost its focus.

Powered by Google App Engine
This is Rietveld 408576698