Index: components/autofill/content/renderer/autofill_agent.h |
diff --git a/components/autofill/content/renderer/autofill_agent.h b/components/autofill/content/renderer/autofill_agent.h |
index cb4df0317f580c4c423bf3eae2749a7278ddb4e1..7e2fcfb82b1c48290e0969bb7f3d3b8c6c2f3b9a 100644 |
--- a/components/autofill/content/renderer/autofill_agent.h |
+++ b/components/autofill/content/renderer/autofill_agent.h |
@@ -18,8 +18,10 @@ |
#include "components/autofill/core/common/forms_seen_state.h" |
#include "content/public/renderer/render_view_observer.h" |
#include "third_party/WebKit/public/web/WebAutofillClient.h" |
+#include "third_party/WebKit/public/web/WebFormControlElement.h" |
#include "third_party/WebKit/public/web/WebFormElement.h" |
#include "third_party/WebKit/public/web/WebInputElement.h" |
+#include "third_party/WebKit/public/web/WebTextAreaElement.h" |
namespace blink { |
class WebNode; |
@@ -78,13 +80,17 @@ class AutofillAgent : public content::RenderViewObserver, |
virtual void InputElementClicked(const blink::WebInputElement& element, |
bool was_focused, |
bool is_focused) OVERRIDE; |
- virtual void InputElementLostFocus() OVERRIDE; |
+ virtual void FormControlElementLostFocus() OVERRIDE; |
+ virtual void TextAreaElementClicked( |
+ const blink::WebTextAreaElement& element, |
+ bool was_focused, |
+ bool is_focused) OVERRIDE; |
// blink::WebAutofillClient: |
virtual void textFieldDidEndEditing( |
const blink::WebInputElement& element) OVERRIDE; |
virtual void textFieldDidChange( |
- const blink::WebInputElement& element) OVERRIDE; |
+ const blink::WebFormControlElement& element) OVERRIDE; |
virtual void textFieldDidReceiveKeyDown( |
const blink::WebInputElement& element, |
const blink::WebKeyboardEvent& event) OVERRIDE; |
@@ -124,7 +130,7 @@ class AutofillAgent : public content::RenderViewObserver, |
// Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
// http://bugs.webkit.org/show_bug.cgi?id=16976 |
- void TextFieldDidChangeImpl(const blink::WebInputElement& element); |
+ void TextFieldDidChangeImpl(const blink::WebFormControlElement& element); |
// Shows the autofill suggestions for |element|. |
// This call is asynchronous and may or may not lead to the showing of a |
@@ -140,7 +146,7 @@ class AutofillAgent : public content::RenderViewObserver, |
// |datalist_only| specifies whether all of <datalist> suggestions and no |
// autofill suggestions are shown. |autofill_on_empty_values| and |
// |requires_caret_at_end| are ignored if |datalist_only| is true. |
- void ShowSuggestions(const blink::WebInputElement& element, |
+ void ShowSuggestions(const blink::WebFormControlElement& element, |
bool autofill_on_empty_values, |
bool requires_caret_at_end, |
bool display_warning_if_disabled, |
@@ -148,7 +154,7 @@ class AutofillAgent : public content::RenderViewObserver, |
// Queries the browser for Autocomplete and Autofill suggestions for the given |
// |element|. |
- void QueryAutofillSuggestions(const blink::WebInputElement& element, |
+ void QueryAutofillSuggestions(const blink::WebFormControlElement& element, |
bool display_warning_if_disabled, |
bool datalist_only); |
@@ -186,7 +192,7 @@ class AutofillAgent : public content::RenderViewObserver, |
int autofill_query_id_; |
// The element corresponding to the last request sent for form field Autofill. |
- blink::WebInputElement element_; |
+ blink::WebFormControlElement element_; |
// The form element currently requesting an interactive autocomplete. |
blink::WebFormElement in_flight_request_form_; |