| OLD | NEW |
| 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "content/public/common/webkit_param_traits.h" | 10 #include "content/public/common/webkit_param_traits.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #define IPC_MESSAGE_START AutofillMsgStart | 21 #define IPC_MESSAGE_START AutofillMsgStart |
| 22 | 22 |
| 23 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField) | 23 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField) |
| 24 IPC_STRUCT_TRAITS_MEMBER(label) | 24 IPC_STRUCT_TRAITS_MEMBER(label) |
| 25 IPC_STRUCT_TRAITS_MEMBER(name) | 25 IPC_STRUCT_TRAITS_MEMBER(name) |
| 26 IPC_STRUCT_TRAITS_MEMBER(value) | 26 IPC_STRUCT_TRAITS_MEMBER(value) |
| 27 IPC_STRUCT_TRAITS_MEMBER(form_control_type) | 27 IPC_STRUCT_TRAITS_MEMBER(form_control_type) |
| 28 IPC_STRUCT_TRAITS_MEMBER(autocomplete_type) | 28 IPC_STRUCT_TRAITS_MEMBER(autocomplete_type) |
| 29 IPC_STRUCT_TRAITS_MEMBER(max_length) | 29 IPC_STRUCT_TRAITS_MEMBER(max_length) |
| 30 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) | 30 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) |
| 31 IPC_STRUCT_TRAITS_MEMBER(is_focusable) |
| 32 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete) |
| 31 IPC_STRUCT_TRAITS_MEMBER(option_values) | 33 IPC_STRUCT_TRAITS_MEMBER(option_values) |
| 32 IPC_STRUCT_TRAITS_MEMBER(option_contents) | 34 IPC_STRUCT_TRAITS_MEMBER(option_contents) |
| 33 IPC_STRUCT_TRAITS_END() | 35 IPC_STRUCT_TRAITS_END() |
| 34 | 36 |
| 35 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormFieldPredictions) | 37 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormFieldPredictions) |
| 36 IPC_STRUCT_TRAITS_MEMBER(field) | 38 IPC_STRUCT_TRAITS_MEMBER(field) |
| 37 IPC_STRUCT_TRAITS_MEMBER(signature) | 39 IPC_STRUCT_TRAITS_MEMBER(signature) |
| 38 IPC_STRUCT_TRAITS_MEMBER(heuristic_type) | 40 IPC_STRUCT_TRAITS_MEMBER(heuristic_type) |
| 39 IPC_STRUCT_TRAITS_MEMBER(server_type) | 41 IPC_STRUCT_TRAITS_MEMBER(server_type) |
| 40 IPC_STRUCT_TRAITS_MEMBER(overall_type) | 42 IPC_STRUCT_TRAITS_MEMBER(overall_type) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 webkit_glue::FormData /* form */, | 118 webkit_glue::FormData /* form */, |
| 117 base::TimeTicks /* timestamp */) | 119 base::TimeTicks /* timestamp */) |
| 118 | 120 |
| 119 // Notification that a form field's value has changed. | 121 // Notification that a form field's value has changed. |
| 120 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, | 122 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, |
| 121 webkit_glue::FormData /* the form */, | 123 webkit_glue::FormData /* the form */, |
| 122 webkit_glue::FormField /* the form field */, | 124 webkit_glue::FormField /* the form field */, |
| 123 base::TimeTicks /* timestamp */) | 125 base::TimeTicks /* timestamp */) |
| 124 | 126 |
| 125 // Queries the browser for Autofill suggestions for a form input field. | 127 // Queries the browser for Autofill suggestions for a form input field. |
| 126 IPC_MESSAGE_ROUTED4(AutofillHostMsg_QueryFormFieldAutofill, | 128 IPC_MESSAGE_ROUTED5(AutofillHostMsg_QueryFormFieldAutofill, |
| 127 int /* id of this message */, | 129 int /* id of this message */, |
| 128 webkit_glue::FormData /* the form */, | 130 webkit_glue::FormData /* the form */, |
| 129 webkit_glue::FormField /* the form field */, | 131 webkit_glue::FormField /* the form field */, |
| 130 gfx::Rect /* input field bounds, window-relative */) | 132 gfx::Rect /* input field bounds, window-relative */, |
| 133 bool /* display warning if autofill disabled */) |
| 131 | 134 |
| 132 // Sent when the popup with Autofill suggestions for a form is shown. | 135 // Sent when the popup with Autofill suggestions for a form is shown. |
| 133 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, | 136 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, |
| 134 bool /* is this a new popup? */) | 137 bool /* is this a new popup? */) |
| 135 | 138 |
| 136 // Instructs the browser to fill in the values for a form using Autofill | 139 // Instructs the browser to fill in the values for a form using Autofill |
| 137 // profile data. | 140 // profile data. |
| 138 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, | 141 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, |
| 139 int /* id of this message */, | 142 int /* id of this message */, |
| 140 webkit_glue::FormData /* the form */, | 143 webkit_glue::FormData /* the form */, |
| 141 webkit_glue::FormField /* the form field */, | 144 webkit_glue::FormField /* the form field */, |
| 142 int /* profile unique ID */) | 145 int /* profile unique ID */) |
| 143 | 146 |
| 144 // Sent when a form is previewed with Autofill suggestions. | 147 // Sent when a form is previewed with Autofill suggestions. |
| 145 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) | 148 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) |
| 146 | 149 |
| 147 // Sent when a form is filled with Autofill suggestions. | 150 // Sent when a form is filled with Autofill suggestions. |
| 148 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, | 151 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, |
| 149 base::TimeTicks /* timestamp */) | 152 base::TimeTicks /* timestamp */) |
| 150 | 153 |
| 151 // Instructs the browser to remove the specified Autocomplete entry from the | 154 // Instructs the browser to remove the specified Autocomplete entry from the |
| 152 // database. | 155 // database. |
| 153 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, | 156 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, |
| 154 string16 /* field name */, | 157 string16 /* field name */, |
| 155 string16 /* value */) | 158 string16 /* value */) |
| 156 | 159 |
| 157 // Instructs the browser to show the Autofill dialog. | 160 // Instructs the browser to show the Autofill dialog. |
| 158 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) | 161 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) |
| 159 | 162 |
| 163 // Send when a text field is done editing. |
| 164 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidEndTextFieldEditing) |
| 165 |
| 160 // Instructs the browser to hide the Autofill popup. | 166 // Instructs the browser to hide the Autofill popup. |
| 161 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillPopup) | 167 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillPopup) |
| OLD | NEW |