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

Unified Diff: components/autofill/core/browser/field_types.h

Issue 322453003: autocomplete: support address-line3, address-level{1,2,3} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test expectations Created 6 years, 6 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: components/autofill/core/browser/field_types.h
diff --git a/components/autofill/core/browser/field_types.h b/components/autofill/core/browser/field_types.h
index 4febf7c4edc4505b8b7901c7517886939c9e6f8a..dd09cbdc99641d11d64d1deb1ba6258cea9c30db 100644
--- a/components/autofill/core/browser/field_types.h
+++ b/components/autofill/core/browser/field_types.h
@@ -132,10 +132,14 @@ enum ServerFieldType {
ADDRESS_HOME_DEPENDENT_LOCALITY = 81,
ADDRESS_BILLING_DEPENDENT_LOCALITY = 82,
+ // The third line of the street address.
+ ADDRESS_HOME_LINE3 = 83,
+ ADDRESS_BILLING_LINE3 = 84,
+
// No new types can be added without a corresponding change to the Autofill
// server.
- MAX_VALID_FIELD_TYPE = 83,
+ MAX_VALID_FIELD_TYPE = 85,
};
// The list of all HTML autocomplete field type hints supported by Chrome.
@@ -157,12 +161,14 @@ enum HtmlFieldType {
HTML_TYPE_STREET_ADDRESS,
HTML_TYPE_ADDRESS_LINE1,
HTML_TYPE_ADDRESS_LINE2,
- HTML_TYPE_LOCALITY, // For U.S. addresses, corresponds to the city.
- HTML_TYPE_REGION, // For U.S. addresses, corresponds to the state.
- HTML_TYPE_COUNTRY_CODE, // The ISO 3166-1-alpha-2 country code.
- HTML_TYPE_COUNTRY_NAME, // The localized country name.
+ HTML_TYPE_ADDRESS_LINE3,
+ HTML_TYPE_ADDRESS_LEVEL1, // For U.S. addresses, corresponds to the state.
+ HTML_TYPE_ADDRESS_LEVEL2, // For U.S. addresses, corresponds to the city.
+ HTML_TYPE_ADDRESS_LEVEL3, // An area that is more specific than LEVEL2.
+ HTML_TYPE_COUNTRY_CODE, // The ISO 3166-1-alpha-2 country code.
+ HTML_TYPE_COUNTRY_NAME, // The localized country name.
HTML_TYPE_POSTAL_CODE,
- HTML_TYPE_FULL_ADDRESS, // The complete address, formatted for display.
+ HTML_TYPE_FULL_ADDRESS, // The complete address, formatted for display.
// Credit card types.
HTML_TYPE_CREDIT_CARD_NAME,
« no previous file with comments | « components/autofill/core/browser/autofill_type.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698