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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // Stores the suggestions in |i18n_validator_suggestions_|. | 472 // Stores the suggestions in |i18n_validator_suggestions_|. |
473 void GetI18nValidatorSuggestions(DialogSection section, | 473 void GetI18nValidatorSuggestions(DialogSection section, |
474 ServerFieldType type, | 474 ServerFieldType type, |
475 std::vector<base::string16>* popup_values, | 475 std::vector<base::string16>* popup_values, |
476 std::vector<base::string16>* popup_labels, | 476 std::vector<base::string16>* popup_labels, |
477 std::vector<base::string16>* popup_icons); | 477 std::vector<base::string16>* popup_icons); |
478 | 478 |
479 // Like RequestedFieldsForSection, but returns a pointer. | 479 // Like RequestedFieldsForSection, but returns a pointer. |
480 DetailInputs* MutableRequestedFieldsForSection(DialogSection section); | 480 DetailInputs* MutableRequestedFieldsForSection(DialogSection section); |
481 | 481 |
| 482 // Returns a pointer to the language code that should be used for formatting |
| 483 // the address in |section| for display. Returns NULL for a non-address |
| 484 // |section|. |
| 485 std::string* MutableAddressLanguageCodeForSection(DialogSection section); |
| 486 |
| 487 // Returns the language code that should be used for formatting the address in |
| 488 // |section|. Returns an empty string for a non-address |section|. |
| 489 std::string AddressLanguageCodeForSection(DialogSection section); |
| 490 |
482 // Returns just the |type| attributes of RequestedFieldsForSection(section). | 491 // Returns just the |type| attributes of RequestedFieldsForSection(section). |
483 std::vector<ServerFieldType> RequestedTypesForSection(DialogSection section) | 492 std::vector<ServerFieldType> RequestedTypesForSection(DialogSection section) |
484 const; | 493 const; |
485 | 494 |
486 // Returns the country code (e.g. "US") for |section|. | 495 // Returns the country code (e.g. "US") for |section|. |
487 std::string CountryCodeForSection(DialogSection section); | 496 std::string CountryCodeForSection(DialogSection section); |
488 | 497 |
489 // Hides |popup_controller_|'s popup view, if it exists. | 498 // Hides |popup_controller_|'s popup view, if it exists. |
490 void HidePopup(); | 499 void HidePopup(); |
491 | 500 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 // when getting a full wallet. | 698 // when getting a full wallet. |
690 std::string active_instrument_id_; | 699 std::string active_instrument_id_; |
691 std::string active_address_id_; | 700 std::string active_address_id_; |
692 | 701 |
693 // The fields for billing and shipping which the page has actually requested. | 702 // The fields for billing and shipping which the page has actually requested. |
694 DetailInputs requested_cc_fields_; | 703 DetailInputs requested_cc_fields_; |
695 DetailInputs requested_billing_fields_; | 704 DetailInputs requested_billing_fields_; |
696 DetailInputs requested_cc_billing_fields_; | 705 DetailInputs requested_cc_billing_fields_; |
697 DetailInputs requested_shipping_fields_; | 706 DetailInputs requested_shipping_fields_; |
698 | 707 |
| 708 // The BCP 47 language codes used for formatting the addresses for display. |
| 709 std::string billing_address_language_code_; |
| 710 std::string shipping_address_language_code_; |
| 711 |
699 // Models for the credit card expiration inputs. | 712 // Models for the credit card expiration inputs. |
700 MonthComboboxModel cc_exp_month_combobox_model_; | 713 MonthComboboxModel cc_exp_month_combobox_model_; |
701 YearComboboxModel cc_exp_year_combobox_model_; | 714 YearComboboxModel cc_exp_year_combobox_model_; |
702 | 715 |
703 // Models for country input. | 716 // Models for country input. |
704 scoped_ptr<CountryComboboxModel> billing_country_combobox_model_; | 717 scoped_ptr<CountryComboboxModel> billing_country_combobox_model_; |
705 scoped_ptr<CountryComboboxModel> shipping_country_combobox_model_; | 718 scoped_ptr<CountryComboboxModel> shipping_country_combobox_model_; |
706 | 719 |
707 // Models for the suggestion views. | 720 // Models for the suggestion views. |
708 SuggestionsMenuModel suggested_cc_; | 721 SuggestionsMenuModel suggested_cc_; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 base::string16 submitted_cardholder_name_; | 828 base::string16 submitted_cardholder_name_; |
816 | 829 |
817 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; | 830 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; |
818 | 831 |
819 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 832 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
820 }; | 833 }; |
821 | 834 |
822 } // namespace autofill | 835 } // namespace autofill |
823 | 836 |
824 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 837 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |