| 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" |
| 11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 12 #include "ipc/ipc_message_utils.h" | 12 #include "ipc/ipc_message_utils.h" |
| 13 #include "ui/gfx/rect.h" |
| 13 #include "webkit/glue/form_data.h" | 14 #include "webkit/glue/form_data.h" |
| 14 #include "webkit/glue/form_data_predictions.h" | 15 #include "webkit/glue/form_data_predictions.h" |
| 15 #include "webkit/glue/form_field.h" | 16 #include "webkit/glue/form_field.h" |
| 16 #include "webkit/glue/form_field_predictions.h" | 17 #include "webkit/glue/form_field_predictions.h" |
| 17 #include "webkit/glue/password_form.h" | 18 #include "webkit/glue/password_form.h" |
| 18 #include "webkit/glue/password_form_dom_manager.h" | 19 #include "webkit/glue/password_form_dom_manager.h" |
| 19 | 20 |
| 20 #define IPC_MESSAGE_START AutofillMsgStart | 21 #define IPC_MESSAGE_START AutofillMsgStart |
| 21 | 22 |
| 22 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField) | 23 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 webkit_glue::FormData /* form */, | 116 webkit_glue::FormData /* form */, |
| 116 base::TimeTicks /* timestamp */) | 117 base::TimeTicks /* timestamp */) |
| 117 | 118 |
| 118 // Notification that a form field's value has changed. | 119 // Notification that a form field's value has changed. |
| 119 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, | 120 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, |
| 120 webkit_glue::FormData /* the form */, | 121 webkit_glue::FormData /* the form */, |
| 121 webkit_glue::FormField /* the form field */, | 122 webkit_glue::FormField /* the form field */, |
| 122 base::TimeTicks /* timestamp */) | 123 base::TimeTicks /* timestamp */) |
| 123 | 124 |
| 124 // Queries the browser for Autofill suggestions for a form input field. | 125 // Queries the browser for Autofill suggestions for a form input field. |
| 125 IPC_MESSAGE_ROUTED3(AutofillHostMsg_QueryFormFieldAutofill, | 126 IPC_MESSAGE_ROUTED4(AutofillHostMsg_QueryFormFieldAutofill, |
| 126 int /* id of this message */, | 127 int /* id of this message */, |
| 127 webkit_glue::FormData /* the form */, | 128 webkit_glue::FormData /* the form */, |
| 128 webkit_glue::FormField /* the form field */) | 129 webkit_glue::FormField /* the form field */, |
| 130 gfx::Rect /* input field bounds, window-relative */) |
| 129 | 131 |
| 130 // Sent when the popup with Autofill suggestions for a form is shown. | 132 // Sent when the popup with Autofill suggestions for a form is shown. |
| 131 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, | 133 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, |
| 132 bool /* is this a new popup? */) | 134 bool /* is this a new popup? */) |
| 133 | 135 |
| 134 // Instructs the browser to fill in the values for a form using Autofill | 136 // Instructs the browser to fill in the values for a form using Autofill |
| 135 // profile data. | 137 // profile data. |
| 136 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, | 138 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, |
| 137 int /* id of this message */, | 139 int /* id of this message */, |
| 138 webkit_glue::FormData /* the form */, | 140 webkit_glue::FormData /* the form */, |
| 139 webkit_glue::FormField /* the form field */, | 141 webkit_glue::FormField /* the form field */, |
| 140 int /* profile unique ID */) | 142 int /* profile unique ID */) |
| 141 | 143 |
| 142 // Sent when a form is previewed with Autofill suggestions. | 144 // Sent when a form is previewed with Autofill suggestions. |
| 143 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) | 145 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) |
| 144 | 146 |
| 145 // Sent when a form is filled with Autofill suggestions. | 147 // Sent when a form is filled with Autofill suggestions. |
| 146 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, | 148 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, |
| 147 base::TimeTicks /* timestamp */) | 149 base::TimeTicks /* timestamp */) |
| 148 | 150 |
| 149 // Instructs the browser to remove the specified Autocomplete entry from the | 151 // Instructs the browser to remove the specified Autocomplete entry from the |
| 150 // database. | 152 // database. |
| 151 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, | 153 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, |
| 152 string16 /* field name */, | 154 string16 /* field name */, |
| 153 string16 /* value */) | 155 string16 /* value */) |
| 154 | 156 |
| 155 // Instructs the browser to show the Autofill dialog. | 157 // Instructs the browser to show the Autofill dialog. |
| 156 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) | 158 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) |
| 157 | 159 |
| 158 | 160 // Instructs the browser to hide the Autofill popup. |
| 161 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillPopup) |
| OLD | NEW |