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 // Singly or multiply-included shared traits file depending on circumstances. | 5 // Singly or multiply-included shared traits file depending on circumstances. |
6 // This allows the use of Autofill IPC serialization macros in more than one IPC | 6 // This allows the use of Autofill IPC serialization macros in more than one IPC |
7 // message file. | 7 // message file. |
8 #ifndef COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_ | 8 #ifndef COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_ |
9 #define COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_ | 9 #define COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
11 #include "components/autofill/core/common/form_field_data.h" | 11 #include "components/autofill/core/common/form_field_data.h" |
12 #include "components/autofill/core/common/password_form.h" | 12 #include "components/autofill/core/common/password_form.h" |
13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
14 #include "url/ipc/url_param_traits.h" | 14 #include "url/ipc/url_param_traits.h" |
15 #include "url/origin.h" | 15 #include "url/origin.h" |
16 | 16 |
17 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::CheckStatus, | 17 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::CheckStatus, |
18 autofill::FormFieldData::CheckStatus::CHECKED) | 18 autofill::FormFieldData::CheckStatus::CHECKED) |
19 | 19 |
20 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, | 20 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, |
21 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) | 21 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) |
22 | 22 |
23 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, | 23 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, |
24 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) | 24 base::i18n::TEXT_DIRECTION_MAX) |
25 | 25 |
26 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) | 26 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) |
27 IPC_STRUCT_TRAITS_MEMBER(label) | 27 IPC_STRUCT_TRAITS_MEMBER(label) |
28 IPC_STRUCT_TRAITS_MEMBER(name) | 28 IPC_STRUCT_TRAITS_MEMBER(name) |
29 IPC_STRUCT_TRAITS_MEMBER(value) | 29 IPC_STRUCT_TRAITS_MEMBER(value) |
30 IPC_STRUCT_TRAITS_MEMBER(form_control_type) | 30 IPC_STRUCT_TRAITS_MEMBER(form_control_type) |
31 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) | 31 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) |
32 IPC_STRUCT_TRAITS_MEMBER(placeholder) | 32 IPC_STRUCT_TRAITS_MEMBER(placeholder) |
33 IPC_STRUCT_TRAITS_MEMBER(role) | 33 IPC_STRUCT_TRAITS_MEMBER(role) |
34 IPC_STRUCT_TRAITS_MEMBER(max_length) | 34 IPC_STRUCT_TRAITS_MEMBER(max_length) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 IPC_STRUCT_TRAITS_MEMBER(blacklisted_by_user) | 79 IPC_STRUCT_TRAITS_MEMBER(blacklisted_by_user) |
80 IPC_STRUCT_TRAITS_MEMBER(type) | 80 IPC_STRUCT_TRAITS_MEMBER(type) |
81 IPC_STRUCT_TRAITS_MEMBER(times_used) | 81 IPC_STRUCT_TRAITS_MEMBER(times_used) |
82 IPC_STRUCT_TRAITS_MEMBER(form_data) | 82 IPC_STRUCT_TRAITS_MEMBER(form_data) |
83 IPC_STRUCT_TRAITS_MEMBER(layout) | 83 IPC_STRUCT_TRAITS_MEMBER(layout) |
84 IPC_STRUCT_TRAITS_MEMBER(was_parsed_using_autofill_predictions) | 84 IPC_STRUCT_TRAITS_MEMBER(was_parsed_using_autofill_predictions) |
85 IPC_STRUCT_TRAITS_MEMBER(does_look_like_signup_form) | 85 IPC_STRUCT_TRAITS_MEMBER(does_look_like_signup_form) |
86 IPC_STRUCT_TRAITS_END() | 86 IPC_STRUCT_TRAITS_END() |
87 | 87 |
88 #endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_ | 88 #endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |