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

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

Issue 11270018: [autofill] Adding new API to request an interactive autocomplete UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: smaller codez == better codez Created 8 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
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/renderer/autofill/autofill_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/common_param_traits_macros.h" 10 #include "chrome/common/common_param_traits_macros.h"
11 #include "chrome/common/form_data.h" 11 #include "chrome/common/form_data.h"
12 #include "chrome/common/form_data_predictions.h" 12 #include "chrome/common/form_data_predictions.h"
13 #include "chrome/common/form_field_data.h" 13 #include "chrome/common/form_field_data.h"
14 #include "chrome/common/form_field_data_predictions.h" 14 #include "chrome/common/form_field_data_predictions.h"
15 #include "chrome/common/password_form_fill_data.h" 15 #include "chrome/common/password_form_fill_data.h"
16 #include "content/public/common/password_form.h" 16 #include "content/public/common/password_form.h"
17 #include "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
18 #include "ipc/ipc_message_utils.h" 18 #include "ipc/ipc_message_utils.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
19 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
20 21
21 #define IPC_MESSAGE_START AutofillMsgStart 22 #define IPC_MESSAGE_START AutofillMsgStart
22 23
23 IPC_STRUCT_TRAITS_BEGIN(FormFieldData) 24 IPC_STRUCT_TRAITS_BEGIN(FormFieldData)
24 IPC_STRUCT_TRAITS_MEMBER(label) 25 IPC_STRUCT_TRAITS_MEMBER(label)
25 IPC_STRUCT_TRAITS_MEMBER(name) 26 IPC_STRUCT_TRAITS_MEMBER(name)
26 IPC_STRUCT_TRAITS_MEMBER(value) 27 IPC_STRUCT_TRAITS_MEMBER(value)
27 IPC_STRUCT_TRAITS_MEMBER(form_control_type) 28 IPC_STRUCT_TRAITS_MEMBER(form_control_type)
28 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) 29 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute)
(...skipping 28 matching lines...) Expand all
57 IPC_STRUCT_TRAITS_MEMBER(experiment_id) 58 IPC_STRUCT_TRAITS_MEMBER(experiment_id)
58 IPC_STRUCT_TRAITS_MEMBER(fields) 59 IPC_STRUCT_TRAITS_MEMBER(fields)
59 IPC_STRUCT_TRAITS_END() 60 IPC_STRUCT_TRAITS_END()
60 61
61 IPC_STRUCT_TRAITS_BEGIN(PasswordFormFillData) 62 IPC_STRUCT_TRAITS_BEGIN(PasswordFormFillData)
62 IPC_STRUCT_TRAITS_MEMBER(basic_data) 63 IPC_STRUCT_TRAITS_MEMBER(basic_data)
63 IPC_STRUCT_TRAITS_MEMBER(additional_logins) 64 IPC_STRUCT_TRAITS_MEMBER(additional_logins)
64 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) 65 IPC_STRUCT_TRAITS_MEMBER(wait_for_username)
65 IPC_STRUCT_TRAITS_END() 66 IPC_STRUCT_TRAITS_END()
66 67
68 IPC_ENUM_TRAITS(WebKit::WebFormElement::AutocompleteResult)
69
67 // Autofill messages sent from the browser to the renderer. 70 // Autofill messages sent from the browser to the renderer.
68 71
69 // Reply to the AutofillHostMsg_QueryFormFieldAutofill message with the 72 // Reply to the AutofillHostMsg_QueryFormFieldAutofill message with the
70 // Autofill suggestions. 73 // Autofill suggestions.
71 IPC_MESSAGE_ROUTED5(AutofillMsg_SuggestionsReturned, 74 IPC_MESSAGE_ROUTED5(AutofillMsg_SuggestionsReturned,
72 int /* id of the request message */, 75 int /* id of the request message */,
73 std::vector<string16> /* names */, 76 std::vector<string16> /* names */,
74 std::vector<string16> /* labels */, 77 std::vector<string16> /* labels */,
75 std::vector<string16> /* icons */, 78 std::vector<string16> /* icons */,
76 std::vector<int> /* unique_ids */) 79 std::vector<int> /* unique_ids */)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 127
125 // Tells the renderer that the password field has accept the suggestion. 128 // Tells the renderer that the password field has accept the suggestion.
126 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion, 129 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion,
127 string16 /* username value*/) 130 string16 /* username value*/)
128 131
129 // Tells the renderer that this password form is not blacklisted. A form can 132 // Tells the renderer that this password form is not blacklisted. A form can
130 // be blacklisted if a user chooses "never save passwords for this site". 133 // be blacklisted if a user chooses "never save passwords for this site".
131 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted, 134 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted,
132 content::PasswordForm /* form checked */) 135 content::PasswordForm /* form checked */)
133 136
137 // Sent when interactive autocomplete finishes.
138 IPC_MESSAGE_ROUTED1(AutofillMsg_RequestAutocompleteFinished,
139 WebKit::WebFormElement::AutocompleteResult /* result */)
140
134 // Autofill messages sent from the renderer to the browser. 141 // Autofill messages sent from the renderer to the browser.
135 142
136 // Notification that forms have been seen that are candidates for 143 // Notification that forms have been seen that are candidates for
137 // filling/submitting by the AutofillManager. 144 // filling/submitting by the AutofillManager.
138 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen, 145 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen,
139 std::vector<FormData> /* forms */, 146 std::vector<FormData> /* forms */,
140 base::TimeTicks /* timestamp */) 147 base::TimeTicks /* timestamp */)
141 148
142 // Notification that password forms have been seen that are candidates for 149 // Notification that password forms have been seen that are candidates for
143 // filling/submitting by the password manager. 150 // filling/submitting by the password manager.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 FormFieldData /* the form field */, 187 FormFieldData /* the form field */,
181 int /* profile unique ID */) 188 int /* profile unique ID */)
182 189
183 // Sent when a form is previewed with Autofill suggestions. 190 // Sent when a form is previewed with Autofill suggestions.
184 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) 191 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData)
185 192
186 // Sent when a form is filled with Autofill suggestions. 193 // Sent when a form is filled with Autofill suggestions.
187 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, 194 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData,
188 base::TimeTicks /* timestamp */) 195 base::TimeTicks /* timestamp */)
189 196
197 // Sent when a form receives a request to do interactive autocomplete.
198 IPC_MESSAGE_ROUTED1(AutofillHostMsg_RequestAutocomplete,
199 FormData /* form_data */)
200
190 // Instructs the browser to remove the specified Autocomplete entry from the 201 // Instructs the browser to remove the specified Autocomplete entry from the
191 // database. 202 // database.
192 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, 203 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry,
193 string16 /* field name */, 204 string16 /* field name */,
194 string16 /* value */) 205 string16 /* value */)
195 206
196 // Instructs the browser to show the Autofill dialog. 207 // Instructs the browser to show the Autofill dialog.
197 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) 208 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog)
198 209
199 // Send when a text field is done editing. 210 // Send when a text field is done editing.
(...skipping 21 matching lines...) Expand all
221 FormFieldData /* the form field */, 232 FormFieldData /* the form field */,
222 gfx::Rect /* input field bounds, window-relative */, 233 gfx::Rect /* input field bounds, window-relative */,
223 std::vector<string16> /* suggestions */) 234 std::vector<string16> /* suggestions */)
224 235
225 // Inform browser of data list values for the curent field. 236 // Inform browser of data list values for the curent field.
226 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, 237 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList,
227 std::vector<string16> /* values */, 238 std::vector<string16> /* values */,
228 std::vector<string16> /* labels */, 239 std::vector<string16> /* labels */,
229 std::vector<string16> /* icons */, 240 std::vector<string16> /* icons */,
230 std::vector<int> /* unique ids */) 241 std::vector<int> /* unique ids */)
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/renderer/autofill/autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698