OLD | NEW |
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 "content/public/common/webkit_param_traits.h" | 10 #include "content/public/common/webkit_param_traits.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::vector<string16> /* icons */, | 75 std::vector<string16> /* icons */, |
76 std::vector<int> /* unique_ids */) | 76 std::vector<int> /* unique_ids */) |
77 | 77 |
78 // Reply to the AutofillHostMsg_FillAutofillFormData message with the | 78 // Reply to the AutofillHostMsg_FillAutofillFormData message with the |
79 // Autofill form data. | 79 // Autofill form data. |
80 IPC_MESSAGE_ROUTED2(AutofillMsg_FormDataFilled, | 80 IPC_MESSAGE_ROUTED2(AutofillMsg_FormDataFilled, |
81 int /* id of the request message */, | 81 int /* id of the request message */, |
82 webkit::forms::FormData /* form data */) | 82 webkit::forms::FormData /* form data */) |
83 | 83 |
84 // Fill a password form and prepare field autocomplete for multiple | 84 // Fill a password form and prepare field autocomplete for multiple |
85 // matching logins. | 85 // matching logins. Lets the renderer know if it should disable the popup |
86 IPC_MESSAGE_ROUTED1(AutofillMsg_FillPasswordForm, | 86 // because the browser process will own the popup UI. |
87 webkit::forms::PasswordFormFillData) | 87 IPC_MESSAGE_ROUTED2(AutofillMsg_FillPasswordForm, |
| 88 webkit::forms::PasswordFormFillData, /* the fill form data*/ |
| 89 bool /* disable popup */ ) |
88 | 90 |
89 // Send the heuristic and server field type predictions to the renderer. | 91 // Send the heuristic and server field type predictions to the renderer. |
90 IPC_MESSAGE_ROUTED1( | 92 IPC_MESSAGE_ROUTED1( |
91 AutofillMsg_FieldTypePredictionsAvailable, | 93 AutofillMsg_FieldTypePredictionsAvailable, |
92 std::vector<webkit::forms::FormDataPredictions> /* forms */) | 94 std::vector<webkit::forms::FormDataPredictions> /* forms */) |
93 | 95 |
94 // Select an Autofill item when using an external delegate. | 96 // Select an Autofill item when using an external delegate. |
95 IPC_MESSAGE_ROUTED1(AutofillMsg_SelectAutofillSuggestionAtIndex, | 97 IPC_MESSAGE_ROUTED1(AutofillMsg_SelectAutofillSuggestionAtIndex, |
96 int /* listIndex */) | 98 int /* listIndex */) |
97 | 99 |
(...skipping 11 matching lines...) Expand all Loading... |
109 | 111 |
110 // Sets the currently selected nodes value. | 112 // Sets the currently selected nodes value. |
111 IPC_MESSAGE_ROUTED1(AutofillMsg_SetNodeText, | 113 IPC_MESSAGE_ROUTED1(AutofillMsg_SetNodeText, |
112 string16) | 114 string16) |
113 | 115 |
114 // Tells the renderer to populate the correct password fields with this | 116 // Tells the renderer to populate the correct password fields with this |
115 // generated password. | 117 // generated password. |
116 IPC_MESSAGE_ROUTED1(AutofillMsg_GeneratedPasswordAccepted, | 118 IPC_MESSAGE_ROUTED1(AutofillMsg_GeneratedPasswordAccepted, |
117 string16 /* generated_password */) | 119 string16 /* generated_password */) |
118 | 120 |
| 121 // Tells the renderer that the password field has accept the suggestion. |
| 122 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion, |
| 123 string16 /* username value*/) |
| 124 |
119 // Autofill messages sent from the renderer to the browser. | 125 // Autofill messages sent from the renderer to the browser. |
120 | 126 |
121 // Notification that forms have been seen that are candidates for | 127 // Notification that forms have been seen that are candidates for |
122 // filling/submitting by the AutofillManager. | 128 // filling/submitting by the AutofillManager. |
123 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen, | 129 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen, |
124 std::vector<webkit::forms::FormData> /* forms */, | 130 std::vector<webkit::forms::FormData> /* forms */, |
125 base::TimeTicks /* timestamp */) | 131 base::TimeTicks /* timestamp */) |
126 | 132 |
127 // Notification that password forms have been seen that are candidates for | 133 // Notification that password forms have been seen that are candidates for |
128 // filling/submitting by the password manager. | 134 // filling/submitting by the password manager. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidEndTextFieldEditing) | 191 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidEndTextFieldEditing) |
186 | 192 |
187 // Instructs the browser to hide the Autofill popup. | 193 // Instructs the browser to hide the Autofill popup. |
188 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillPopup) | 194 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillPopup) |
189 | 195 |
190 // Instructs the browser to show the password generation bubble at the | 196 // Instructs the browser to show the password generation bubble at the |
191 // specified location. This location should be specified in the renderers | 197 // specified location. This location should be specified in the renderers |
192 // coordinate system. | 198 // coordinate system. |
193 IPC_MESSAGE_ROUTED1(AutofillHostMsg_ShowPasswordGenerationPopup, | 199 IPC_MESSAGE_ROUTED1(AutofillHostMsg_ShowPasswordGenerationPopup, |
194 gfx::Rect /* source location */) | 200 gfx::Rect /* source location */) |
| 201 |
| 202 // Instruct the browser that a password mapping has been found for a field. |
| 203 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, |
| 204 webkit::forms::FormField, /* the user name field */ |
| 205 webkit::forms::PasswordFormFillData /* password pairings */) |
| 206 |
| 207 // Instruct the browser to show a popup with the following suggestions from the |
| 208 // password manager. |
| 209 IPC_MESSAGE_ROUTED3(AutofillHostMsg_ShowPasswordSuggestions, |
| 210 webkit::forms::FormField /* the form field */, |
| 211 gfx::Rect /* input field bounds, window-relative */, |
| 212 std::vector<string16> /* suggestions */) |
OLD | NEW |