| 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_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 const SuggestionsMenuModel* SuggestionsMenuModelForSection( | 434 const SuggestionsMenuModel* SuggestionsMenuModelForSection( |
| 435 DialogSection section) const; | 435 DialogSection section) const; |
| 436 // And the reverse. | 436 // And the reverse. |
| 437 DialogSection SectionForSuggestionsMenuModel( | 437 DialogSection SectionForSuggestionsMenuModel( |
| 438 const SuggestionsMenuModel& model); | 438 const SuggestionsMenuModel& model); |
| 439 | 439 |
| 440 // Gets the CountryComboboxModel for |section|. | 440 // Gets the CountryComboboxModel for |section|. |
| 441 CountryComboboxModel* CountryComboboxModelForSection(DialogSection section); | 441 CountryComboboxModel* CountryComboboxModelForSection(DialogSection section); |
| 442 | 442 |
| 443 // Clears and builds the inputs in |section| for |country_name|. | 443 // Clears and builds the inputs in |section| for |country_name|. |
| 444 // When |should_clobber| is false, and the view's country value matches |
| 445 // |country_name|, the inputs won't be rebuilt. |
| 444 bool RebuildInputsForCountry(DialogSection section, | 446 bool RebuildInputsForCountry(DialogSection section, |
| 445 const base::string16& country_name, | 447 const base::string16& country_name, |
| 446 bool should_clobber); | 448 bool should_clobber); |
| 447 | 449 |
| 448 // Suggested text and icons for sections. Suggestion text is used to show an | 450 // Suggested text and icons for sections. Suggestion text is used to show an |
| 449 // abridged overview of the currently used suggestion. Extra text is used when | 451 // abridged overview of the currently used suggestion. Extra text is used when |
| 450 // part of a section is suggested but part must be manually input (e.g. during | 452 // part of a section is suggested but part must be manually input (e.g. during |
| 451 // a CVC challenge or when using Autofill's CC section [never stores CVC]). | 453 // a CVC challenge or when using Autofill's CC section [never stores CVC]). |
| 452 bool SuggestionTextForSection(DialogSection section, | 454 bool SuggestionTextForSection(DialogSection section, |
| 453 base::string16* vertically_compact, | 455 base::string16* vertically_compact, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 base::string16 submitted_cardholder_name_; | 793 base::string16 submitted_cardholder_name_; |
| 792 | 794 |
| 793 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; | 795 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; |
| 794 | 796 |
| 795 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 797 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 796 }; | 798 }; |
| 797 | 799 |
| 798 } // namespace autofill | 800 } // namespace autofill |
| 799 | 801 |
| 800 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 802 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |