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

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: do a barrel roll! 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
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"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Tells the renderer that the password field has accept the suggestion. 129 // Tells the renderer that the password field has accept the suggestion.
130 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion, 130 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion,
131 string16 /* username value*/) 131 string16 /* username value*/)
132 132
133 // Tells the renderer that this password form is not blacklisted. A form can 133 // Tells the renderer that this password form is not blacklisted. A form can
134 // be blacklisted if a user chooses "never save passwords for this site". 134 // be blacklisted if a user chooses "never save passwords for this site".
135 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted, 135 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted,
136 content::PasswordForm /* form checked */) 136 content::PasswordForm /* form checked */)
137 137
138 // Sent when interactive autocomplete is cancelled or finished successfully.
139 IPC_MESSAGE_ROUTED1(AutofillMsg_RequestAutocompleteFinished,
140 bool /* whether the user pressed cancel */)
Evan Stade 2012/10/26 03:23:02 "whether the user pressed cancel" is very specific
Ilya Sherman 2012/10/26 03:30:52 nit: Boolean parameters are hard to make sense of
Dan Beam 2012/10/26 05:51:44 I see 3 examples of bools in messages in this file
141
138 // Autofill messages sent from the renderer to the browser. 142 // Autofill messages sent from the renderer to the browser.
139 143
140 // Notification that forms have been seen that are candidates for 144 // Notification that forms have been seen that are candidates for
141 // filling/submitting by the AutofillManager. 145 // filling/submitting by the AutofillManager.
142 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen, 146 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen,
143 std::vector<FormData> /* forms */, 147 std::vector<FormData> /* forms */,
144 base::TimeTicks /* timestamp */) 148 base::TimeTicks /* timestamp */)
145 149
146 // Notification that password forms have been seen that are candidates for 150 // Notification that password forms have been seen that are candidates for
147 // filling/submitting by the password manager. 151 // filling/submitting by the password manager.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 FormFieldData /* the form field */, 188 FormFieldData /* the form field */,
185 int /* profile unique ID */) 189 int /* profile unique ID */)
186 190
187 // Sent when a form is previewed with Autofill suggestions. 191 // Sent when a form is previewed with Autofill suggestions.
188 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) 192 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData)
189 193
190 // Sent when a form is filled with Autofill suggestions. 194 // Sent when a form is filled with Autofill suggestions.
191 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, 195 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData,
192 base::TimeTicks /* timestamp */) 196 base::TimeTicks /* timestamp */)
193 197
198 // Sent when a form receives a request to do interactive autocomplete.
199 IPC_MESSAGE_ROUTED1(AutofillHostMsg_RequestAutocomplete,
200 FormData /* the form */)
201
194 // Instructs the browser to remove the specified Autocomplete entry from the 202 // Instructs the browser to remove the specified Autocomplete entry from the
195 // database. 203 // database.
196 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, 204 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry,
197 string16 /* field name */, 205 string16 /* field name */,
198 string16 /* value */) 206 string16 /* value */)
199 207
200 // Instructs the browser to show the Autofill dialog. 208 // Instructs the browser to show the Autofill dialog.
201 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) 209 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog)
202 210
203 // Send when a text field is done editing. 211 // Send when a text field is done editing.
(...skipping 21 matching lines...) Expand all
225 FormFieldData /* the form field */, 233 FormFieldData /* the form field */,
226 gfx::Rect /* input field bounds, window-relative */, 234 gfx::Rect /* input field bounds, window-relative */,
227 std::vector<string16> /* suggestions */) 235 std::vector<string16> /* suggestions */)
228 236
229 // Inform browser of data list values for the curent field. 237 // Inform browser of data list values for the curent field.
230 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, 238 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList,
231 std::vector<string16> /* values */, 239 std::vector<string16> /* values */,
232 std::vector<string16> /* labels */, 240 std::vector<string16> /* labels */,
233 std::vector<string16> /* icons */, 241 std::vector<string16> /* icons */,
234 std::vector<int> /* unique ids */) 242 std::vector<int> /* unique ids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698