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