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

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: fix varialbe name 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
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5c8f83c9502a179e2a311c786f23754ad309fc75 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 |suggested_value|.
+ void AcceptDataListSuggestion(const string16& suggested_value);
+
// 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698