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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 10443084: Add Datalist Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 8 years, 6 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 | « chrome/browser/autofill/autofill_manager.h ('k') | chrome/common/autofill_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index fbabdbf393c03e84d5346eadfef7a6790974e037..107fe64122142ca59dcd3414104fadcc573ba04a 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -343,6 +343,8 @@ bool AutofillManager::OnMessageReceived(const IPC::Message& message) {
OnAddPasswordFormMapping)
IPC_MESSAGE_HANDLER(AutofillHostMsg_ShowPasswordSuggestions,
OnShowPasswordSuggestions)
+ IPC_MESSAGE_HANDLER(AutofillHostMsg_SetDataList,
+ OnSetDataList)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -771,6 +773,18 @@ void AutofillManager::OnShowPasswordSuggestions(
external_delegate_->OnShowPasswordSuggestions(suggestions, field, bounds);
}
+void AutofillManager::OnSetDataList(const std::vector<string16>& values,
+ const std::vector<string16>& labels,
+ const std::vector<string16>& icons,
+ const std::vector<int>& unique_ids) {
+ if (external_delegate_) {
+ external_delegate_->SetCurrentDataListValues(values,
+ labels,
+ icons,
+ unique_ids);
+ }
+}
+
void AutofillManager::OnLoadedServerPredictions(
const std::string& response_xml) {
// Parse and store the server predictions.
« no previous file with comments | « chrome/browser/autofill/autofill_manager.h ('k') | chrome/common/autofill_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698