OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // Multiply-included message file, hence no include guard. | |
6 | |
7 #include <string> | |
8 #include <vector> | |
9 | |
10 #include "base/strings/string16.h" | |
11 #include "components/autofill/content/common/autofill_param_traits_macros.h" | |
12 #include "components/autofill/core/common/password_form.h" | |
13 #include "content/public/common/common_param_traits.h" | |
14 #include "content/public/common/common_param_traits_macros.h" | |
15 #include "ipc/ipc_message_macros.h" | |
16 #include "ipc/ipc_message_utils.h" | |
17 #include "ui/gfx/geometry/rect_f.h" | |
18 #include "ui/gfx/ipc/gfx_param_traits.h" | |
19 | |
20 #define IPC_MESSAGE_START AutofillMsgStart | |
21 | |
22 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::CheckStatus, | |
23 autofill::FormFieldData::CheckStatus::CHECKED) | |
24 | |
25 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, | |
26 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) | |
27 | |
28 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, | |
29 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) | |
30 | |
31 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) | |
32 IPC_STRUCT_TRAITS_MEMBER(label) | |
33 IPC_STRUCT_TRAITS_MEMBER(name) | |
34 IPC_STRUCT_TRAITS_MEMBER(value) | |
35 IPC_STRUCT_TRAITS_MEMBER(form_control_type) | |
36 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) | |
37 IPC_STRUCT_TRAITS_MEMBER(placeholder) | |
38 IPC_STRUCT_TRAITS_MEMBER(role) | |
39 IPC_STRUCT_TRAITS_MEMBER(max_length) | |
40 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) | |
41 IPC_STRUCT_TRAITS_MEMBER(check_status) | |
42 IPC_STRUCT_TRAITS_MEMBER(is_focusable) | |
43 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete) | |
44 IPC_STRUCT_TRAITS_MEMBER(text_direction) | |
45 IPC_STRUCT_TRAITS_MEMBER(option_values) | |
46 IPC_STRUCT_TRAITS_MEMBER(option_contents) | |
47 IPC_STRUCT_TRAITS_MEMBER(css_classes) | |
48 IPC_STRUCT_TRAITS_MEMBER(properties_mask) | |
49 IPC_STRUCT_TRAITS_END() | |
50 | |
51 // Instructs the browser that generation is available for this particular form. | |
52 // This is used for UMA stats. | |
53 IPC_MESSAGE_ROUTED1(AutofillHostMsg_GenerationAvailableForForm, | |
54 autofill::PasswordForm) | |
55 | |
56 // Instructs the browser to show the password generation popup at the | |
57 // specified location. This location should be specified in the renderers | |
58 // coordinate system. Form is the form associated with the password field. | |
59 IPC_MESSAGE_ROUTED5(AutofillHostMsg_ShowPasswordGenerationPopup, | |
60 gfx::RectF /* source location */, | |
61 int /* max length of the password */, | |
62 base::string16, /* password field */ | |
63 bool, /* is manually triggered */ | |
64 autofill::PasswordForm) | |
65 | |
66 // Instructs the browser to show the popup for editing a generated password. | |
67 // The location should be specified in the renderers coordinate system. Form | |
68 // is the form associated with the password field. | |
69 IPC_MESSAGE_ROUTED2(AutofillHostMsg_ShowPasswordEditingPopup, | |
70 gfx::RectF /* source location */, | |
71 autofill::PasswordForm) | |
72 | |
73 // Instructs the browser to hide any password generation popups. | |
74 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePasswordGenerationPopup) | |
OLD | NEW |