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

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: 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 const gfx::Rect& bounding_box, 207 const gfx::Rect& bounding_box,
208 bool display_warning); 208 bool display_warning);
209 void OnDidEndTextFieldEditing(); 209 void OnDidEndTextFieldEditing();
210 void OnHideAutofillPopup(); 210 void OnHideAutofillPopup();
211 void OnAddPasswordFormMapping( 211 void OnAddPasswordFormMapping(
212 const webkit::forms::FormField& form, 212 const webkit::forms::FormField& form,
213 const webkit::forms::PasswordFormFillData& fill_data); 213 const webkit::forms::PasswordFormFillData& fill_data);
214 void OnShowPasswordSuggestions(const webkit::forms::FormField& field, 214 void OnShowPasswordSuggestions(const webkit::forms::FormField& field,
215 const gfx::Rect& bounds, 215 const gfx::Rect& bounds,
216 const std::vector<string16>& suggestions); 216 const std::vector<string16>& suggestions);
217 void OnSetDataList(const std::vector<string16>& values,
218 const std::vector<string16>& labels,
219 const std::vector<string16>& icons,
220 const std::vector<int>& unique_ids);
217 221
218 // Fills |host| with the RenderViewHost for this tab. 222 // Fills |host| with the RenderViewHost for this tab.
219 // Returns false if Autofill is disabled or if the host is unavailable. 223 // Returns false if Autofill is disabled or if the host is unavailable.
220 bool GetHost(const std::vector<AutofillProfile*>& profiles, 224 bool GetHost(const std::vector<AutofillProfile*>& profiles,
221 const std::vector<CreditCard*>& credit_cards, 225 const std::vector<CreditCard*>& credit_cards,
222 content::RenderViewHost** host) const WARN_UNUSED_RESULT; 226 content::RenderViewHost** host) const WARN_UNUSED_RESULT;
223 227
224 // Unpacks |unique_id| and fills |profile| or |credit_card| with the 228 // Unpacks |unique_id| and fills |profile| or |credit_card| with the
225 // appropriate data source. Returns false if the unpacked id cannot be found. 229 // appropriate data source. Returns false if the unpacked id cannot be found.
226 bool GetProfileOrCreditCard(int unique_id, 230 bool GetProfileOrCreditCard(int unique_id,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 TestTabContentsWithExternalDelegate); 395 TestTabContentsWithExternalDelegate);
392 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 396 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
393 UserHappinessFormLoadAndSubmission); 397 UserHappinessFormLoadAndSubmission);
394 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 398 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
395 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 399 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
396 400
397 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 401 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
398 }; 402 };
399 403
400 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 404 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698