Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3429)

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 124533003: Add country combobox to change country and rebuild address inputs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index 14fbef02ac26b2f20579b1d214897beb7effa274..c7dd03d303dfdf37352ef1cae392d43f95f92c3a 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -449,6 +449,15 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// Like RequestedFieldsForSection, but returns a pointer.
DetailInputs* MutableRequestedFieldsForSection(DialogSection section);
+ // Whether |model| is a combobox for a country.
+ bool IsCountryComboboxModel(const ui::ComboboxModel* model) const;
+
+ // Called when user switches countries.
+ void OnCountryComboboxModelChanged(const CountryComboboxModel& model);
+
+ // Returns the country code (e.g. "US") for |section|.
+ std::string CountryCodeForSection(DialogSection section);
+
// Hides |popup_controller_|'s popup view, if it exists.
void HidePopup();
@@ -649,8 +658,9 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
MonthComboboxModel cc_exp_month_combobox_model_;
YearComboboxModel cc_exp_year_combobox_model_;
- // Model for the country input.
- CountryComboboxModel country_combobox_model_;
+ // Models for country input.
+ CountryComboboxModel billing_country_combobox_model_;
+ CountryComboboxModel shipping_country_combobox_model_;
// Models for the suggestion views.
SuggestionsMenuModel suggested_cc_;

Powered by Google App Engine
This is Rietveld 408576698