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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 bool SuggestionTextForSection(DialogSection section, | 461 bool SuggestionTextForSection(DialogSection section, |
462 base::string16* vertically_compact, | 462 base::string16* vertically_compact, |
463 base::string16* horizontally_compact); | 463 base::string16* horizontally_compact); |
464 base::string16 RequiredActionTextForSection(DialogSection section) const; | 464 base::string16 RequiredActionTextForSection(DialogSection section) const; |
465 gfx::Image SuggestionIconForSection(DialogSection section); | 465 gfx::Image SuggestionIconForSection(DialogSection section); |
466 base::string16 ExtraSuggestionTextForSection(DialogSection section) const; | 466 base::string16 ExtraSuggestionTextForSection(DialogSection section) const; |
467 gfx::Image ExtraSuggestionIconForSection(DialogSection section); | 467 gfx::Image ExtraSuggestionIconForSection(DialogSection section); |
468 | 468 |
469 // Suggests address completions using the downloaded i18n validation rules. | 469 // Suggests address completions using the downloaded i18n validation rules. |
470 // Stores the suggestions in |i18n_validator_suggestions_|. | 470 // Stores the suggestions in |i18n_validator_suggestions_|. |
471 void GetI18nValidatorSuggestions(DialogSection section, | 471 void GetI18nValidatorSuggestions( |
472 ServerFieldType type, | 472 DialogSection section, |
473 std::vector<base::string16>* popup_values, | 473 ServerFieldType type, |
474 std::vector<base::string16>* popup_labels, | 474 std::vector<autofill::Suggestion>* popup_suggestions); |
475 std::vector<base::string16>* popup_icons); | |
476 | 475 |
477 // Like RequestedFieldsForSection, but returns a pointer. | 476 // Like RequestedFieldsForSection, but returns a pointer. |
478 DetailInputs* MutableRequestedFieldsForSection(DialogSection section); | 477 DetailInputs* MutableRequestedFieldsForSection(DialogSection section); |
479 | 478 |
480 // Returns a pointer to the language code that should be used for formatting | 479 // Returns a pointer to the language code that should be used for formatting |
481 // the address in |section| for display. Returns NULL for a non-address | 480 // the address in |section| for display. Returns NULL for a non-address |
482 // |section|. | 481 // |section|. |
483 std::string* MutableAddressLanguageCodeForSection(DialogSection section); | 482 std::string* MutableAddressLanguageCodeForSection(DialogSection section); |
484 | 483 |
485 // Returns the language code that should be used for formatting the address in | 484 // Returns the language code that should be used for formatting the address in |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 735 |
737 // Whether |form_structure_| has asked for any details that would indicate | 736 // Whether |form_structure_| has asked for any details that would indicate |
738 // we should show a shipping section. | 737 // we should show a shipping section. |
739 bool cares_about_shipping_; | 738 bool cares_about_shipping_; |
740 | 739 |
741 // Site-provided transaction amount and currency. No attempt to validate this | 740 // Site-provided transaction amount and currency. No attempt to validate this |
742 // input; it's passed directly to Wallet. | 741 // input; it's passed directly to Wallet. |
743 base::string16 transaction_amount_; | 742 base::string16 transaction_amount_; |
744 base::string16 transaction_currency_; | 743 base::string16 transaction_currency_; |
745 | 744 |
746 // The GUIDs for the currently showing unverified profiles popup. | 745 // The IDs for the currently showing unverified profiles popup. This will |
747 std::vector<PersonalDataManager::GUIDPair> popup_guids_; | 746 // be the first section in the list. The rest of the items will be the |
| 747 // i18n_validator_suggestions_. |
| 748 std::vector<autofill::SuggestionBackendID> popup_suggestion_ids_; |
748 | 749 |
749 // The autofill suggestions based on downloaded i18n validation rules. | 750 // The autofill suggestions based on downloaded i18n validation rules. |
750 std::vector< ::i18n::addressinput::AddressData> i18n_validator_suggestions_; | 751 std::vector< ::i18n::addressinput::AddressData> i18n_validator_suggestions_; |
751 | 752 |
752 // The controller for the currently showing popup (which helps users when | 753 // The controller for the currently showing popup (which helps users when |
753 // they're manually filling the dialog). | 754 // they're manually filling the dialog). |
754 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 755 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
755 | 756 |
756 // The type of the visible Autofill popup input (or UNKNOWN_TYPE if none). | 757 // The type of the visible Autofill popup input (or UNKNOWN_TYPE if none). |
757 ServerFieldType popup_input_type_; | 758 ServerFieldType popup_input_type_; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 base::string16 submitted_cardholder_name_; | 846 base::string16 submitted_cardholder_name_; |
846 | 847 |
847 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; | 848 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; |
848 | 849 |
849 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 850 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
850 }; | 851 }; |
851 | 852 |
852 } // namespace autofill | 853 } // namespace autofill |
853 | 854 |
854 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 855 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |