| 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.
|
|
|