Chromium Code Reviews

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

Issue 140093005: Add supports that allow Autofill to be initiated from textarea field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: components/autofill/content/renderer/page_click_listener.h
diff --git a/components/autofill/content/renderer/page_click_listener.h b/components/autofill/content/renderer/page_click_listener.h
index 1fc7862fe9e29796e6b547483345928494d50b4a..00936629a89c17da58f013f94b07344cee7b2c0a 100644
--- a/components/autofill/content/renderer/page_click_listener.h
+++ b/components/autofill/content/renderer/page_click_listener.h
@@ -7,6 +7,7 @@
namespace blink {
class WebInputElement;
+class WebTextAreaElement;
}
namespace autofill {
@@ -23,9 +24,13 @@ class PageClickListener {
bool was_focused,
bool is_focused) = 0;
- // If the previously focused element was an input field, listeners are
- // informed that the text field has lost its focus.
- virtual void InputElementLostFocus() = 0;
+ virtual void TextAreaElementClicked(const blink::WebTextAreaElement& element,
+ bool was_focused,
+ bool is_focused) = 0;
+
+ // If the previously focused element was an input or textarea field,
+ // listeners are informed that the text field has lost its focus.
+ virtual void FormControlElementLostFocus() = 0;
protected:
virtual ~PageClickListener() {}
« no previous file with comments | « components/autofill/content/renderer/form_cache.cc ('k') | components/autofill/content/renderer/page_click_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine