Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2425)

Unified Diff: chrome/renderer/autofill/autofill_agent.h

Issue 10307004: Support datalist UI for <input type=email multiple> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/autofill/autofill_agent.h
diff --git a/chrome/renderer/autofill/autofill_agent.h b/chrome/renderer/autofill/autofill_agent.h
index f0f51735fe52a7888a1577b3c6ff578c88ec70c4..1fd6490859e4658c189e72ffcfbd170a51338806 100644
--- a/chrome/renderer/autofill/autofill_agent.h
+++ b/chrome/renderer/autofill/autofill_agent.h
@@ -139,6 +139,8 @@ class AutofillAgent : public content::RenderViewObserver,
void QueryAutofillSuggestions(const WebKit::WebInputElement& element,
bool display_warning_if_disabled);
+ // Combines DataList suggestion entries with the autofill ones and show them
+ // to the user.
void CombineDataListEntriesAndShow(const WebKit::WebInputElement& element,
const std::vector<string16>& values,
const std::vector<string16>& labels,
@@ -146,6 +148,9 @@ class AutofillAgent : public content::RenderViewObserver,
const std::vector<int>& item_ids,
bool has_autofill_item);
+ // Sets the element value to reflect the selected suggestion |value|.
+ void ApplyDataListSuggestionToValue(const string16& value);
Ilya Sherman 2012/05/16 18:05:31 nit: Perhaps "AcceptDataListSuggestion(const strin
keishi 2012/05/17 02:24:09 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
// profile's unique ID. |action| specifies whether to Fill or Preview the
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | chrome/renderer/autofill/autofill_agent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698