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

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

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: let's try this again, android Created 7 years, 1 month 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 a9acd42f0e99d876aa8332a8406d91697d3648fe..3aa0cb598023a935c3075db61918988790512f61 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -146,6 +146,9 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
bool was_edit) OVERRIDE;
virtual bool HandleKeyPressEventInInput(
const content::NativeWebKeyboardEvent& event) OVERRIDE;
+ virtual void ComboboxItemSelected(ui::ComboboxModel* model,
+ DialogSection section,
+ int index) OVERRIDE;
virtual void FocusMoved() OVERRIDE;
virtual bool ShouldShowErrorBubble() const OVERRIDE;
virtual void ViewClosed() OVERRIDE;
@@ -454,6 +457,14 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// Like RequestedFieldsForSection, but returns a pointer.
DetailInputs* MutableRequestedFieldsForSection(DialogSection section);
+ // Gets the country code (e.g. "US") that should be used for |section|.
+ std::string GetCountryCodeForSection(DialogSection section) const;
+
+ // Sets the country code that should be used for |section|. Also rebuilds this
+ // section's inputs and updates the view.
+ void SetCountryCodeForSection(DialogSection section,
+ const std::string& country_code);
+
// Hides |popup_controller_|'s popup view, if it exists.
void HidePopup();
@@ -670,6 +681,10 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// we should show a shipping section.
bool cares_about_shipping_;
+ // Country codes to use when creating/filling billing or shipping inputs.
+ std::string billing_country_code_;
+ std::string shipping_country_code_;
+
// The GUIDs for the currently showing unverified profiles popup.
std::vector<PersonalDataManager::GUIDPair> popup_guids_;

Powered by Google App Engine
This is Rietveld 408576698