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

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

Issue 1583563003: [Autofill] Parse forms that have autocomplete attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed android compile and browser test Created 4 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: 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 2daaba1c6db9f803144af7ba55eeab456d77f8bc..a3787e076ec2d8d8a6e97b1ac360494775a7164a 100644
--- a/components/autofill/core/browser/field_types.h
+++ b/components/autofill/core/browser/field_types.h
@@ -159,7 +159,7 @@ enum ServerFieldType {
// See [ http://is.gd/whatwg_autocomplete ] for the full list of specced hints.
enum HtmlFieldType {
// Default type.
- HTML_TYPE_UNKNOWN,
+ HTML_TYPE_UNSPECIFIED,
// Name types.
HTML_TYPE_NAME,
@@ -181,7 +181,7 @@ enum HtmlFieldType {
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,
@@ -217,6 +217,9 @@ enum HtmlFieldType {
HTML_TYPE_CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR,
HTML_TYPE_CREDIT_CARD_EXP_2_DIGIT_YEAR,
HTML_TYPE_CREDIT_CARD_EXP_4_DIGIT_YEAR,
+
+ // Non standard autcomplete types.
+ HTML_TYPE_UNRECOGNIZED,
};
// The list of all HTML autocomplete field mode hints supported by Chrome.
« no previous file with comments | « components/autofill/core/browser/autofill_type_unittest.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698