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

Side by Side Diff: components/autofill/core/browser/field_types.h

Issue 2773433002: Log observations of explicit UPI-VPA autocomplete hints. (Closed)
Patch Set: fix a nit Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Variants of type hints specified in the HTML specification that are 227 // Variants of type hints specified in the HTML specification that are
228 // inferred based on a field's 'maxlength' attribute. 228 // inferred based on a field's 'maxlength' attribute.
229 // TODO(isherman): Remove these types, in favor of understanding maxlength 229 // TODO(isherman): Remove these types, in favor of understanding maxlength
230 // when filling fields. See also: AutofillField::phone_part_. 230 // when filling fields. See also: AutofillField::phone_part_.
231 HTML_TYPE_ADDITIONAL_NAME_INITIAL, 231 HTML_TYPE_ADDITIONAL_NAME_INITIAL,
232 HTML_TYPE_CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR, 232 HTML_TYPE_CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR,
233 HTML_TYPE_CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR, 233 HTML_TYPE_CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR,
234 HTML_TYPE_CREDIT_CARD_EXP_2_DIGIT_YEAR, 234 HTML_TYPE_CREDIT_CARD_EXP_2_DIGIT_YEAR,
235 HTML_TYPE_CREDIT_CARD_EXP_4_DIGIT_YEAR, 235 HTML_TYPE_CREDIT_CARD_EXP_4_DIGIT_YEAR,
236 236
237 // Non standard autcomplete types. 237 // Universal Payment Interface - Virtual Payment Address.
238 HTML_TYPE_UPI_VPA,
239
240 // Non-standard autocomplete types.
238 HTML_TYPE_UNRECOGNIZED, 241 HTML_TYPE_UNRECOGNIZED,
239 }; 242 };
240 243
241 // The list of all HTML autocomplete field mode hints supported by Chrome. 244 // The list of all HTML autocomplete field mode hints supported by Chrome.
242 // See [ http://is.gd/whatwg_autocomplete ] for the full list of specced hints. 245 // See [ http://is.gd/whatwg_autocomplete ] for the full list of specced hints.
243 enum HtmlFieldMode { 246 enum HtmlFieldMode {
244 HTML_MODE_NONE, 247 HTML_MODE_NONE,
245 HTML_MODE_BILLING, 248 HTML_MODE_BILLING,
246 HTML_MODE_SHIPPING, 249 HTML_MODE_SHIPPING,
247 }; 250 };
(...skipping 12 matching lines...) Expand all
260 PASSWORD_FIELD, 263 PASSWORD_FIELD,
261 TRANSACTION, 264 TRANSACTION,
262 USERNAME_FIELD, 265 USERNAME_FIELD,
263 }; 266 };
264 267
265 typedef std::set<ServerFieldType> ServerFieldTypeSet; 268 typedef std::set<ServerFieldType> ServerFieldTypeSet;
266 269
267 } // namespace autofill 270 } // namespace autofill
268 271
269 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_ 272 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_type.cc ('k') | components/autofill/core/browser/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698