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

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

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split Created 6 years, 12 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_common.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_common.h b/chrome/browser/ui/autofill/autofill_dialog_common.h
index c23aac5763fffa4c501f8eb5f760c32d0337f733..603a3a7f6bf4eb79f30a98c4045ad91593ed0257 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_common.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_common.h
@@ -20,6 +20,12 @@ class Address;
namespace autofill {
namespace common {
+// The types of addresses this class supports building.
+enum AddressType {
+ ADDRESS_TYPE_BILLING,
+ ADDRESS_TYPE_SHIPPING,
+};
+
// Returns true if |input| should be shown when |field_type| has been requested.
bool InputTypeMatchesFieldType(const DetailInput& input,
const AutofillType& field_type);
@@ -34,7 +40,11 @@ bool DetailInputMatchesField(DialogSection section,
bool IsCreditCardType(ServerFieldType type);
// Constructs |inputs| from template data for a given |dialog_section|.
-void BuildInputsForSection(DialogSection dialog_section, DetailInputs* inputs);
+// |country_country| specifies the country code that the inputs should be built
+// for.
+void BuildInputsForSection(DialogSection dialog_section,
+ DetailInputs* inputs,
Evan Stade 2014/01/04 00:18:04 outparams come after inparams
Dan Beam 2014/01/04 00:50:47 Done.
+ const std::string& country_code);
// Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding
// to the |section|.

Powered by Google App Engine
This is Rietveld 408576698