Index: chrome/renderer/autofill/autofill_agent.h |
diff --git a/chrome/renderer/autofill/autofill_agent.h b/chrome/renderer/autofill/autofill_agent.h |
index 89f0a31c0084810a26752b1b56d7a7851c3d3f3a..183a2053249e74313a282d384a2662d7a9667a7f 100644 |
--- a/chrome/renderer/autofill/autofill_agent.h |
+++ b/chrome/renderer/autofill/autofill_agent.h |
@@ -60,6 +60,8 @@ class AutofillAgent : public content::RenderViewObserver, |
const WebKit::WebFormElement& form) OVERRIDE; |
virtual void ZoomLevelChanged() OVERRIDE; |
virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) OVERRIDE; |
+ virtual void RequestAutocomplete(WebKit::WebFrame* frame, |
+ const WebKit::WebFormElement& form) OVERRIDE; |
// PageClickListener: |
virtual bool InputElementClicked(const WebKit::WebInputElement& element, |
@@ -108,6 +110,9 @@ class AutofillAgent : public content::RenderViewObserver, |
void OnAcceptDataListSuggestion(const string16& value); |
void OnAcceptPasswordAutofillSuggestion(const string16& value); |
+ // For interactive autocomplete. |
+ void OnRequestAutocompleteFinished(bool success); |
+ |
// 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 WebKit::WebInputElement& element); |
@@ -174,6 +179,10 @@ class AutofillAgent : public content::RenderViewObserver, |
// The element corresponding to the last request sent for form field Autofill. |
WebKit::WebInputElement element_; |
+ // The element corresponding to the last request sent for an interactive |
+ // autocomplete. |
+ WebKit::WebFormElement form_; |
+ |
// The action to take when receiving Autofill data from the AutofillManager. |
AutofillAction autofill_action_; |