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..b974fff8c574f26f05c508a80b291daeca37cc76 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -36,6 +36,7 @@ |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/common/ssl_status.h" |
#include "third_party/skia/include/core/SkColor.h" |
+#include "ui/base/models/combobox_model_observer.h" |
#include "ui/base/models/simple_menu_model.h" |
#include "ui/base/ui_base_types.h" |
#include "ui/gfx/animation/animation_delegate.h" |
@@ -76,7 +77,8 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
public wallet::WalletSigninHelperDelegate, |
public PersonalDataManagerObserver, |
public AccountChooserModelDelegate, |
- public gfx::AnimationDelegate { |
+ public gfx::AnimationDelegate, |
+ public CountryComboboxModelObserver { |
public: |
virtual ~AutofillDialogControllerImpl(); |
@@ -221,6 +223,10 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; |
virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; |
+ // CountryComboboxModelObserver: |
+ virtual void OnCountryComboboxModelChanged(CountryComboboxModel* model) |
+ OVERRIDE; |
+ |
protected: |
enum DialogSignedInState { |
NOT_CHECKED, |
@@ -269,6 +275,10 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
// Opens the given URL in a new foreground tab. |
virtual void OpenTabWithUrl(const GURL& url); |
+ // The active billing section for the current state of the dialog (e.g. when |
+ // paying for wallet, the combined credit card + billing address section). |
+ DialogSection ActiveBillingSection() const; |
+ |
// Whether |section| was sent into edit mode based on existing data. This |
// happens when a user clicks "Edit" or a suggestion is invalid. |
virtual bool IsEditingExistingData(DialogSection section) const; |
@@ -449,6 +459,9 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
// Like RequestedFieldsForSection, but returns a pointer. |
DetailInputs* MutableRequestedFieldsForSection(DialogSection section); |
+ // 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 +662,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_; |