| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 base::string16 /* password */) | 186 base::string16 /* password */) |
| 187 | 187 |
| 188 // Tells the renderer to find the focused password form (assuming it exists). | 188 // Tells the renderer to find the focused password form (assuming it exists). |
| 189 // Renderer is expected to respond with the message | 189 // Renderer is expected to respond with the message |
| 190 // |AutofillHostMsg_FocusedPasswordFormFound|. | 190 // |AutofillHostMsg_FocusedPasswordFormFound|. |
| 191 IPC_MESSAGE_ROUTED0(AutofillMsg_FindFocusedPasswordForm) | 191 IPC_MESSAGE_ROUTED0(AutofillMsg_FindFocusedPasswordForm) |
| 192 | 192 |
| 193 // Tells the renderer to find a focused element, and if it is a password field | 193 // Tells the renderer to find a focused element, and if it is a password field |
| 194 // eligible for generation then to trigger generation by responding to the | 194 // eligible for generation then to trigger generation by responding to the |
| 195 // browser with the message |AutofillHostMsg_ShowPasswordGenerationPopup|. | 195 // browser with the message |AutofillHostMsg_ShowPasswordGenerationPopup|. |
| 196 IPC_MESSAGE_ROUTED0(AutofillMsg_GeneratePassword) | 196 IPC_MESSAGE_ROUTED0(AutofillMsg_UserTriggeredGeneratePassword) |
| 197 | 197 |
| 198 // Tells the renderer that this password form is not blacklisted. A form can | 198 // Tells the renderer that this password form is not blacklisted. A form can |
| 199 // be blacklisted if a user chooses "never save passwords for this site". | 199 // be blacklisted if a user chooses "never save passwords for this site". |
| 200 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted, | 200 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted, |
| 201 autofill::PasswordForm /* form checked */) | 201 autofill::PasswordForm /* form checked */) |
| 202 | 202 |
| 203 // Sent when requestAutocomplete() finishes (either succesfully or with an | 203 // Sent when requestAutocomplete() finishes (either succesfully or with an |
| 204 // error). If it was a success, the renderer fills the form that requested | 204 // error). If it was a success, the renderer fills the form that requested |
| 205 // autocomplete with the |form_data| values input by the user. |message| | 205 // autocomplete with the |form_data| values input by the user. |message| |
| 206 // is printed to the console if non-empty. | 206 // is printed to the console if non-empty. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePopup) | 315 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePopup) |
| 316 | 316 |
| 317 // Instructs the browser that generation is available for this particular form. | 317 // Instructs the browser that generation is available for this particular form. |
| 318 // This is used for UMA stats. | 318 // This is used for UMA stats. |
| 319 IPC_MESSAGE_ROUTED1(AutofillHostMsg_GenerationAvailableForForm, | 319 IPC_MESSAGE_ROUTED1(AutofillHostMsg_GenerationAvailableForForm, |
| 320 autofill::PasswordForm) | 320 autofill::PasswordForm) |
| 321 | 321 |
| 322 // Instructs the browser to show the password generation popup at the | 322 // Instructs the browser to show the password generation popup at the |
| 323 // specified location. This location should be specified in the renderers | 323 // specified location. This location should be specified in the renderers |
| 324 // coordinate system. Form is the form associated with the password field. | 324 // coordinate system. Form is the form associated with the password field. |
| 325 IPC_MESSAGE_ROUTED3(AutofillHostMsg_ShowPasswordGenerationPopup, | 325 IPC_MESSAGE_ROUTED5(AutofillHostMsg_ShowPasswordGenerationPopup, |
| 326 gfx::RectF /* source location */, | 326 gfx::RectF /* source location */, |
| 327 int /* max length of the password */, | 327 int /* max length of the password */, |
| 328 base::string16, /* password field */ |
| 329 bool, /* is manually triggered */ |
| 328 autofill::PasswordForm) | 330 autofill::PasswordForm) |
| 329 | 331 |
| 330 // Instructs the browser to show the popup for editing a generated password. | 332 // Instructs the browser to show the popup for editing a generated password. |
| 331 // The location should be specified in the renderers coordinate system. Form | 333 // The location should be specified in the renderers coordinate system. Form |
| 332 // is the form associated with the password field. | 334 // is the form associated with the password field. |
| 333 IPC_MESSAGE_ROUTED2(AutofillHostMsg_ShowPasswordEditingPopup, | 335 IPC_MESSAGE_ROUTED2(AutofillHostMsg_ShowPasswordEditingPopup, |
| 334 gfx::RectF /* source location */, | 336 gfx::RectF /* source location */, |
| 335 autofill::PasswordForm) | 337 autofill::PasswordForm) |
| 336 | 338 |
| 337 // Instructs the browser to hide any password generation popups. | 339 // Instructs the browser to hide any password generation popups. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 355 // Inform browser of data list values for the curent field. | 357 // Inform browser of data list values for the curent field. |
| 356 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 358 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
| 357 std::vector<base::string16> /* values */, | 359 std::vector<base::string16> /* values */, |
| 358 std::vector<base::string16> /* labels */) | 360 std::vector<base::string16> /* labels */) |
| 359 | 361 |
| 360 // Inform the browser which password form is currently focused, as a response | 362 // Inform the browser which password form is currently focused, as a response |
| 361 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form | 363 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form |
| 362 // is focused, the response will contain an empty |autofill::PasswordForm|. | 364 // is focused, the response will contain an empty |autofill::PasswordForm|. |
| 363 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, | 365 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, |
| 364 autofill::PasswordForm) | 366 autofill::PasswordForm) |
| OLD | NEW |