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