Chromium Code Reviews| Index: components/autofill/content/public/interfaces/autofill_agent.mojom |
| diff --git a/components/autofill/content/public/interfaces/autofill_agent.mojom b/components/autofill/content/public/interfaces/autofill_agent.mojom |
| index 40c501dd0e0e23a019e0ae6bc34dc416b42d2d82..c33255077bccd75c6c78d3a42d1bab02b7cb4c05 100644 |
| --- a/components/autofill/content/public/interfaces/autofill_agent.mojom |
| +++ b/components/autofill/content/public/interfaces/autofill_agent.mojom |
| @@ -4,8 +4,46 @@ |
| module autofill.mojom; |
| +import "components/autofill/content/public/interfaces/autofill_types.mojom"; |
| + |
| interface AutofillAgent { |
| // Tells the render frame that a user gesture was observed |
| // somewhere in the tab (including in a different frame). |
| FirstUserGestureObservedInTab(); |
| + |
| + // Instructs the renderer to fill the active form with the given form data. |
| + FillForm(int32 id, FormData form); |
| + |
| + // Instructs the renderer to preview the active form with the given form data. |
| + PreviewForm(int32 id, FormData form); |
| + |
| + // Send the heuristic and server field type predictions to the renderer. |
|
yzshen1
2016/06/29 22:25:44
nit: Send*s*
leonhsl(Using Gerrit)
2016/07/01 13:04:59
Done.
|
| + FieldTypePredictionsAvailable(array<FormDataPredictions> forms); |
| + |
| + // Clears the currently displayed Autofill results. |
| + ClearForm(); |
| + |
| + // Tells the renderer that the Autofill previewed form should be cleared. |
| + ClearPreviewedForm(); |
| + |
| + // Sets the currently selected node's value. |
| + FillFieldWithValue(string value); |
| + |
| + // Sets the suggested value for the currently previewed node. |
| + PreviewFieldWithValue(string value); |
| + |
| + // Sets the currently selected node's value to be the given data list value. |
| + AcceptDataListSuggestion(string value); |
| + |
| + // Tells the renderer to fill the username and password with with given |
| + // values. |
| + FillPasswordSuggestion(string username, string password); |
| + |
| + // Tells the renderer to preview the username and password with the given |
| + // values. |
| + PreviewPasswordSuggestion(string username, string password); |
| + |
| + // Sent when a password form is initially detected and suggestions should be |
| + // shown. Used by the fill-on-select experiment. |
| + ShowInitialPasswordAccountSuggestions(int32 key, PasswordFormFillData form_data); |
| }; |