OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "components/autofill/common/form_field_data.h" | 5 #include "components/autofill/common/form_field_data.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 | 9 |
10 FormFieldData::FormFieldData() | 10 FormFieldData::FormFieldData() |
11 : max_length(0), | 11 : max_length(0), |
12 is_autofilled(false), | 12 is_autofilled(false), |
13 is_checked(false), | 13 is_checked(false), |
14 is_checkable(false), | 14 is_checkable(false), |
| 15 is_password_field(false), |
15 is_focusable(false), | 16 is_focusable(false), |
16 should_autocomplete(true) { | 17 should_autocomplete(true) { |
17 } | 18 } |
18 | 19 |
19 FormFieldData::~FormFieldData() { | 20 FormFieldData::~FormFieldData() { |
20 } | 21 } |
21 | 22 |
22 bool FormFieldData::operator==(const FormFieldData& field) const { | 23 bool FormFieldData::operator==(const FormFieldData& field) const { |
23 // A FormFieldData stores a value, but the value is not part of the identity | 24 // A FormFieldData stores a value, but the value is not part of the identity |
24 // of the field, so we don't want to compare the values. | 25 // of the field, so we don't want to compare the values. |
(...skipping 28 matching lines...) Expand all Loading... |
53 << field.autocomplete_attribute | 54 << field.autocomplete_attribute |
54 << " " | 55 << " " |
55 << field.max_length | 56 << field.max_length |
56 << " " | 57 << " " |
57 << (field.is_autofilled ? "true" : "false") | 58 << (field.is_autofilled ? "true" : "false") |
58 << " " | 59 << " " |
59 << (field.is_checked ? "true" : "false") | 60 << (field.is_checked ? "true" : "false") |
60 << " " | 61 << " " |
61 << (field.is_checkable ? "true" : "false") | 62 << (field.is_checkable ? "true" : "false") |
62 << " " | 63 << " " |
| 64 << (field.is_password_field ? "true" : "false") |
| 65 << " " |
63 << (field.is_focusable ? "true" : "false") | 66 << (field.is_focusable ? "true" : "false") |
64 << " " | 67 << " " |
65 << (field.should_autocomplete ? "true" : "false"); | 68 << (field.should_autocomplete ? "true" : "false"); |
66 } | 69 } |
OLD | NEW |