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

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

Issue 7892048: Autofill: Remove fax number completely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "chrome/browser/autofill/field_types.h" 14 #include "chrome/browser/autofill/field_types.h"
15 15
16 // The high-level description of Autofill types, used to categorize form fields 16 // The high-level description of Autofill types, used to categorize form fields
17 // and for associating form fields with form values in the Web Database. 17 // and for associating form fields with form values in the Web Database.
18 class AutofillType { 18 class AutofillType {
19 public: 19 public:
20 enum FieldTypeGroup { 20 enum FieldTypeGroup {
21 NO_GROUP, 21 NO_GROUP,
22 NAME, 22 NAME,
23 EMAIL, 23 EMAIL,
24 COMPANY, 24 COMPANY,
25 ADDRESS_HOME, 25 ADDRESS_HOME,
26 ADDRESS_BILLING, 26 ADDRESS_BILLING,
27 PHONE_HOME, 27 PHONE_HOME,
Ilya Sherman 2011/09/15 03:47:08 nit: If it's not too much extra work to fold into
James Hawkins 2011/09/16 03:23:28 I grepped it, and that would be a huge addition :-
Ilya Sherman 2011/09/16 03:57:09 Ok, don't worry about it then.
28 PHONE_FAX,
29 CREDIT_CARD, 28 CREDIT_CARD,
30 }; 29 };
31 30
32 enum FieldTypeSubGroup { 31 enum FieldTypeSubGroup {
33 NO_SUBGROUP, 32 NO_SUBGROUP,
34 // Address subgroups. 33 // Address subgroups.
35 ADDRESS_LINE1, 34 ADDRESS_LINE1,
36 ADDRESS_LINE2, 35 ADDRESS_LINE2,
37 ADDRESS_APT_NUM, 36 ADDRESS_APT_NUM,
38 ADDRESS_CITY, 37 ADDRESS_CITY,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 private: 72 private:
74 AutofillFieldType field_type_; 73 AutofillFieldType field_type_;
75 }; 74 };
76 75
77 typedef AutofillType::FieldTypeGroup FieldTypeGroup; 76 typedef AutofillType::FieldTypeGroup FieldTypeGroup;
78 typedef AutofillType::FieldTypeSubGroup FieldTypeSubGroup; 77 typedef AutofillType::FieldTypeSubGroup FieldTypeSubGroup;
79 typedef std::set<AutofillFieldType> FieldTypeSet; 78 typedef std::set<AutofillFieldType> FieldTypeSet;
80 typedef std::map<string16, AutofillFieldType> FieldTypeMap; 79 typedef std::map<string16, AutofillFieldType> FieldTypeMap;
81 80
82 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ 81 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698