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

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 const gfx::Rect& bounding_box, 212 const gfx::Rect& bounding_box,
213 bool display_warning); 213 bool display_warning);
214 void OnDidEndTextFieldEditing(); 214 void OnDidEndTextFieldEditing();
215 void OnHideAutofillPopup(); 215 void OnHideAutofillPopup();
216 void OnAddPasswordFormMapping( 216 void OnAddPasswordFormMapping(
217 const webkit::forms::FormField& form, 217 const webkit::forms::FormField& form,
218 const webkit::forms::PasswordFormFillData& fill_data); 218 const webkit::forms::PasswordFormFillData& fill_data);
219 void OnShowPasswordSuggestions(const webkit::forms::FormField& field, 219 void OnShowPasswordSuggestions(const webkit::forms::FormField& field,
220 const gfx::Rect& bounds, 220 const gfx::Rect& bounds,
221 const std::vector<string16>& suggestions); 221 const std::vector<string16>& suggestions);
222 void OnSetDataList(const std::vector<string16>& values,
223 const std::vector<string16>& labels,
224 const std::vector<string16>& icons,
225 const std::vector<int>& unique_ids);
222 226
223 // Fills |host| with the RenderViewHost for this tab. 227 // Fills |host| with the RenderViewHost for this tab.
224 // Returns false if Autofill is disabled or if the host is unavailable. 228 // Returns false if Autofill is disabled or if the host is unavailable.
225 bool GetHost(const std::vector<AutofillProfile*>& profiles, 229 bool GetHost(const std::vector<AutofillProfile*>& profiles,
226 const std::vector<CreditCard*>& credit_cards, 230 const std::vector<CreditCard*>& credit_cards,
227 content::RenderViewHost** host) const WARN_UNUSED_RESULT; 231 content::RenderViewHost** host) const WARN_UNUSED_RESULT;
228 232
229 // Unpacks |unique_id| and fills |profile| or |credit_card| with the 233 // Unpacks |unique_id| and fills |profile| or |credit_card| with the
230 // appropriate data source. Returns false if the unpacked id cannot be found. 234 // appropriate data source. Returns false if the unpacked id cannot be found.
231 bool GetProfileOrCreditCard(int unique_id, 235 bool GetProfileOrCreditCard(int unique_id,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 TestTabContentsWithExternalDelegate); 402 TestTabContentsWithExternalDelegate);
399 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 403 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
400 UserHappinessFormLoadAndSubmission); 404 UserHappinessFormLoadAndSubmission);
401 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 405 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
402 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 406 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
403 407
404 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 408 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
405 }; 409 };
406 410
407 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 411 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate_unittest.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698