OLD | NEW |
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_CREDIT_CARD_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_FIELD_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_FIELD_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 // last names; for such pages cardholder_ holds the first name field and | 37 // last names; for such pages cardholder_ holds the first name field and |
38 // we store the last name field here. | 38 // we store the last name field here. |
39 // (We could store an embedded NameField object here, but we don't do so | 39 // (We could store an embedded NameField object here, but we don't do so |
40 // because the text patterns for matching a cardholder name are different | 40 // because the text patterns for matching a cardholder name are different |
41 // than for ordinary names, and because cardholder names never have titles, | 41 // than for ordinary names, and because cardholder names never have titles, |
42 // middle names or suffixes.) | 42 // middle names or suffixes.) |
43 const AutofillField* cardholder_last_; | 43 const AutofillField* cardholder_last_; |
44 | 44 |
45 // TODO(jhawkins): Parse the select control. | 45 // TODO(jhawkins): Parse the select control. |
46 const AutofillField* type_; // Optional. | 46 const AutofillField* type_; // Optional. |
47 const AutofillField* number_; // Required. | 47 const AutofillField* number_full_; // Required. |
| 48 const AutofillField* number_part1_; // Optional. |
| 49 const AutofillField* number_part2_; // Optional. |
| 50 const AutofillField* number_part3_; // Optional. |
| 51 const AutofillField* number_part4_; // Optional. |
48 | 52 |
49 // The 3-digit card verification number; we don't currently fill this. | 53 // The 3-digit card verification number; we don't currently fill this. |
50 const AutofillField* verification_; | 54 const AutofillField* verification_; |
51 | 55 |
52 // Either |expiration_date_| or both |expiration_month_| and | 56 // Either |expiration_date_| or both |expiration_month_| and |
53 // |expiration_year_| are required. | 57 // |expiration_year_| are required. |
54 const AutofillField* expiration_month_; | 58 const AutofillField* expiration_month_; |
55 const AutofillField* expiration_year_; | 59 const AutofillField* expiration_year_; |
56 const AutofillField* expiration_date_; | 60 const AutofillField* expiration_date_; |
57 | 61 |
58 // True if the year is detected to be a 2-digit year; otherwise, we assume | 62 // True if the year is detected to be a 2-digit year; otherwise, we assume |
59 // a 4-digit year. | 63 // a 4-digit year. |
60 bool is_two_digit_year_; | 64 bool is_two_digit_year_; |
61 | 65 |
62 DISALLOW_COPY_AND_ASSIGN(CreditCardField); | 66 DISALLOW_COPY_AND_ASSIGN(CreditCardField); |
63 }; | 67 }; |
64 | 68 |
65 } // namespace autofill | 69 } // namespace autofill |
66 | 70 |
67 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_FIELD_H_ | 71 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_FIELD_H_ |
OLD | NEW |