Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/common/autofill_messages.h

Issue 8488011: Moving AutofillAgent Logic into Browser (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "webkit/glue/form_data.h" 13 #include "webkit/glue/form_data.h"
14 #include "webkit/glue/form_data_predictions.h" 14 #include "webkit/glue/form_data_predictions.h"
15 #include "webkit/glue/form_field.h" 15 #include "webkit/glue/form_field.h"
16 #include "webkit/glue/form_field_predictions.h" 16 #include "webkit/glue/form_field_predictions.h"
17 #include "webkit/glue/password_form.h" 17 #include "webkit/glue/password_form.h"
18 #include "webkit/glue/password_form_dom_manager.h" 18 #include "webkit/glue/password_form_dom_manager.h"
19 19
20 #define IPC_MESSAGE_START AutofillMsgStart 20 #define IPC_MESSAGE_START AutofillMsgStart
21 21
22 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField) 22 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField)
23 IPC_STRUCT_TRAITS_MEMBER(label) 23 IPC_STRUCT_TRAITS_MEMBER(label)
24 IPC_STRUCT_TRAITS_MEMBER(name) 24 IPC_STRUCT_TRAITS_MEMBER(name)
25 IPC_STRUCT_TRAITS_MEMBER(value) 25 IPC_STRUCT_TRAITS_MEMBER(value)
26 IPC_STRUCT_TRAITS_MEMBER(form_control_type) 26 IPC_STRUCT_TRAITS_MEMBER(form_control_type)
27 IPC_STRUCT_TRAITS_MEMBER(autocomplete_type) 27 IPC_STRUCT_TRAITS_MEMBER(autocomplete_type)
28 IPC_STRUCT_TRAITS_MEMBER(max_length) 28 IPC_STRUCT_TRAITS_MEMBER(max_length)
29 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) 29 IPC_STRUCT_TRAITS_MEMBER(is_autofilled)
30 IPC_STRUCT_TRAITS_MEMBER(is_focusable)
31 IPC_STRUCT_TRAITS_MEMBER(autocomplete)
30 IPC_STRUCT_TRAITS_MEMBER(option_values) 32 IPC_STRUCT_TRAITS_MEMBER(option_values)
31 IPC_STRUCT_TRAITS_MEMBER(option_contents) 33 IPC_STRUCT_TRAITS_MEMBER(option_contents)
32 IPC_STRUCT_TRAITS_END() 34 IPC_STRUCT_TRAITS_END()
33 35
34 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormFieldPredictions) 36 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormFieldPredictions)
35 IPC_STRUCT_TRAITS_MEMBER(field) 37 IPC_STRUCT_TRAITS_MEMBER(field)
36 IPC_STRUCT_TRAITS_MEMBER(signature) 38 IPC_STRUCT_TRAITS_MEMBER(signature)
37 IPC_STRUCT_TRAITS_MEMBER(heuristic_type) 39 IPC_STRUCT_TRAITS_MEMBER(heuristic_type)
38 IPC_STRUCT_TRAITS_MEMBER(server_type) 40 IPC_STRUCT_TRAITS_MEMBER(server_type)
39 IPC_STRUCT_TRAITS_MEMBER(overall_type) 41 IPC_STRUCT_TRAITS_MEMBER(overall_type)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 webkit_glue::FormData /* form */, 117 webkit_glue::FormData /* form */,
116 base::TimeTicks /* timestamp */) 118 base::TimeTicks /* timestamp */)
117 119
118 // Notification that a form field's value has changed. 120 // Notification that a form field's value has changed.
119 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, 121 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange,
120 webkit_glue::FormData /* the form */, 122 webkit_glue::FormData /* the form */,
121 webkit_glue::FormField /* the form field */, 123 webkit_glue::FormField /* the form field */,
122 base::TimeTicks /* timestamp */) 124 base::TimeTicks /* timestamp */)
123 125
124 // Queries the browser for Autofill suggestions for a form input field. 126 // Queries the browser for Autofill suggestions for a form input field.
125 IPC_MESSAGE_ROUTED3(AutofillHostMsg_QueryFormFieldAutofill, 127 IPC_MESSAGE_ROUTED4(AutofillHostMsg_QueryFormFieldAutofill,
126 int /* id of this message */, 128 int /* id of this message */,
127 webkit_glue::FormData /* the form */, 129 webkit_glue::FormData /* the form */,
128 webkit_glue::FormField /* the form field */) 130 webkit_glue::FormField /* the form field */,
131 bool /* display warning if autofill disabled */)
129 132
130 // Sent when the popup with Autofill suggestions for a form is shown. 133 // Sent when the popup with Autofill suggestions for a form is shown.
131 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, 134 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions,
132 bool /* is this a new popup? */) 135 bool /* is this a new popup? */)
133 136
134 // Instructs the browser to fill in the values for a form using Autofill 137 // Instructs the browser to fill in the values for a form using Autofill
135 // profile data. 138 // profile data.
136 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, 139 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData,
137 int /* id of this message */, 140 int /* id of this message */,
138 webkit_glue::FormData /* the form */, 141 webkit_glue::FormData /* the form */,
139 webkit_glue::FormField /* the form field */, 142 webkit_glue::FormField /* the form field */,
140 int /* profile unique ID */) 143 int /* profile unique ID */)
141 144
142 // Sent when a form is previewed with Autofill suggestions. 145 // Sent when a form is previewed with Autofill suggestions.
143 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) 146 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData)
144 147
145 // Sent when a form is filled with Autofill suggestions. 148 // Sent when a form is filled with Autofill suggestions.
146 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, 149 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData,
147 base::TimeTicks /* timestamp */) 150 base::TimeTicks /* timestamp */)
148 151
149 // Instructs the browser to remove the specified Autocomplete entry from the 152 // Instructs the browser to remove the specified Autocomplete entry from the
150 // database. 153 // database.
151 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, 154 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry,
152 string16 /* field name */, 155 string16 /* field name */,
153 string16 /* value */) 156 string16 /* value */)
154 157
155 // Instructs the browser to show the Autofill dialog. 158 // Instructs the browser to show the Autofill dialog.
156 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) 159 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog)
157 160
158 161 // Send when a text field is done editing.
162 IPC_MESSAGE_ROUTED0(AutofillHostMsg_SetDidEndTextFieldEditing)
Ilya Sherman 2011/11/17 02:24:37 nit: This should probably be named "DidEndTextFiel
csharp 2011/11/18 18:15:10 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698