Index: chrome/renderer/autofill/autofill_agent.h |
diff --git a/chrome/renderer/autofill/autofill_agent.h b/chrome/renderer/autofill/autofill_agent.h |
index 843ee6cdc44a9a0619e4ef3a5e87e1bde15dd10c..5c3624b4888dda4027c2a433a1ae04cbd44814ac 100644 |
--- a/chrome/renderer/autofill/autofill_agent.h |
+++ b/chrome/renderer/autofill/autofill_agent.h |
@@ -76,12 +76,12 @@ class AutofillAgent : public content::RenderViewObserver, |
virtual void didAcceptAutofillSuggestion(const WebKit::WebNode& node, |
const WebKit::WebString& value, |
const WebKit::WebString& label, |
- int unique_id, |
+ int item_id, |
unsigned index) OVERRIDE; |
virtual void didSelectAutofillSuggestion(const WebKit::WebNode& node, |
const WebKit::WebString& value, |
const WebKit::WebString& label, |
- int unique_id) OVERRIDE; |
+ int item_id) OVERRIDE; |
virtual void didClearAutofillSelection(const WebKit::WebNode& node) OVERRIDE; |
virtual void removeAutocompleteSuggestion( |
const WebKit::WebString& name, |
@@ -137,12 +137,18 @@ class AutofillAgent : public content::RenderViewObserver, |
void QueryAutofillSuggestions(const WebKit::WebInputElement& element, |
bool display_warning_if_disabled); |
+ void CombineDataListEntriesAndShow(const WebKit::WebInputElement& element, |
+ const std::vector<string16>& values, |
+ const std::vector<string16>& labels, |
+ const std::vector<string16>& icons, |
+ const std::vector<int>& unique_ids); |
Ilya Sherman
2012/04/11 00:18:04
nit: item_ids?
keishi
2012/04/11 11:48:08
Done.
|
+ |
// Queries the AutofillManager for form data for the form containing |node|. |
- // |value| is the current text in the field, and |unique_id| is the selected |
+ // |value| is the current text in the field, and |item_id| is the selected |
// profile's unique ID. |action| specifies whether to Fill or Preview the |
// values returned from the AutofillManager. |
void FillAutofillFormData(const WebKit::WebNode& node, |
- int unique_id, |
+ int item_id, |
Ilya Sherman
2012/04/11 00:18:04
nit: I would not rename this variable, as this sho
keishi
2012/04/11 11:48:08
Done.
|
AutofillAction action); |
// Fills |form| and |field| with the FormData and FormField corresponding to |
@@ -175,12 +181,6 @@ class AutofillAgent : public content::RenderViewObserver, |
// Was the query node autofilled prior to previewing the form? |
bool was_query_node_autofilled_; |
- // The menu index of the "Clear" menu item. |
- int suggestions_clear_index_; |
- |
- // The menu index of the "Autofill options..." menu item. |
- int suggestions_options_index_; |
- |
// Have we already shown Autofill suggestions for the field the user is |
// currently editing? Used to keep track of state for metrics logging. |
bool has_shown_autofill_popup_for_current_edit_; |