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

Side by Side Diff: chrome/browser/autofill/field_types.h

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autofill/email_field.cc ('k') | chrome/browser/autofill/form_field.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_
6 #define CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_
7
8 #include <set>
9 #include <string>
10
11 // NOTE: This list MUST not be modified. The server aggregates and stores these
12 // types over several versions, so we must remain fully compatible with the
13 // Autofill server, which is itself backward-compatible. The list must be kept
14 // up to date with the Autofill server list.
15 //
16 // This is the list of all valid field types.
17 enum AutofillFieldType {
18 // Server indication that it has no data for the requested field.
19 NO_SERVER_DATA = 0,
20 // Client indication that the text entered did not match anything in the
21 // personal data.
22 UNKNOWN_TYPE = 1,
23 // The "empty" type indicates that the user hasn't entered anything
24 // in this field.
25 EMPTY_TYPE = 2,
26 // Personal Information categorization types.
27 NAME_FIRST = 3,
28 NAME_MIDDLE = 4,
29 NAME_LAST = 5,
30 NAME_MIDDLE_INITIAL = 6,
31 NAME_FULL = 7,
32 NAME_SUFFIX = 8,
33 EMAIL_ADDRESS = 9,
34 PHONE_HOME_NUMBER = 10,
35 PHONE_HOME_CITY_CODE = 11,
36 PHONE_HOME_COUNTRY_CODE = 12,
37 PHONE_HOME_CITY_AND_NUMBER = 13,
38 PHONE_HOME_WHOLE_NUMBER = 14,
39
40 // Work phone numbers (values [15,19]) are deprecated.
41
42 // Fax numbers (values [20,24]) are deprecated in Chrome, but still supported
43 // by the server.
44 PHONE_FAX_NUMBER = 20,
45 PHONE_FAX_CITY_CODE = 21,
46 PHONE_FAX_COUNTRY_CODE = 22,
47 PHONE_FAX_CITY_AND_NUMBER = 23,
48 PHONE_FAX_WHOLE_NUMBER = 24,
49
50 // Cell phone numbers (values [25, 29]) are deprecated.
51
52 ADDRESS_HOME_LINE1 = 30,
53 ADDRESS_HOME_LINE2 = 31,
54 ADDRESS_HOME_APT_NUM = 32,
55 ADDRESS_HOME_CITY = 33,
56 ADDRESS_HOME_STATE = 34,
57 ADDRESS_HOME_ZIP = 35,
58 ADDRESS_HOME_COUNTRY = 36,
59 ADDRESS_BILLING_LINE1 = 37,
60 ADDRESS_BILLING_LINE2 = 38,
61 ADDRESS_BILLING_APT_NUM = 39,
62 ADDRESS_BILLING_CITY = 40,
63 ADDRESS_BILLING_STATE = 41,
64 ADDRESS_BILLING_ZIP = 42,
65 ADDRESS_BILLING_COUNTRY = 43,
66
67 // ADDRESS_SHIPPING values [44,50] are deprecated.
68
69 CREDIT_CARD_NAME = 51,
70 CREDIT_CARD_NUMBER = 52,
71 CREDIT_CARD_EXP_MONTH = 53,
72 CREDIT_CARD_EXP_2_DIGIT_YEAR = 54,
73 CREDIT_CARD_EXP_4_DIGIT_YEAR = 55,
74 CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR = 56,
75 CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR = 57,
76 CREDIT_CARD_TYPE = 58,
77 CREDIT_CARD_VERIFICATION_CODE = 59,
78
79 COMPANY_NAME = 60,
80
81 // Generic type whose default value is known.
82 FIELD_WITH_DEFAULT_VALUE = 61,
83
84 // No new types can be added.
85
86 MAX_VALID_FIELD_TYPE = 62,
87 };
88
89 typedef std::set<AutofillFieldType> FieldTypeSet;
90
91 #endif // CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/email_field.cc ('k') | chrome/browser/autofill/form_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698