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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |