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..e263365543bd3c444395b5d35572ffd9f654a342 100644 |
| --- a/components/autofill/content/public/interfaces/autofill_agent.mojom |
| +++ b/components/autofill/content/public/interfaces/autofill_agent.mojom |
| @@ -4,8 +4,51 @@ |
| module autofill.mojom; |
| +import "components/autofill/content/public/interfaces/autofill_types.mojom"; |
| + |
| +// This interface lives in the renderer process per one render frame, |
| +// is responsible to communicate with corresponding autofill driver. |
|
dcheng
2016/07/14 04:31:44
Nit: There is one instance of this interface per r
leonhsl(Using Gerrit)
2016/07/14 09:57:31
Done and Thanks.
|
| 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. |
| + // Please refer AutofillDriver.QueryFormFieldAutofill comments about the |id|. |
| + FillForm(int32 id, FormData form); |
| + |
| + // Instructs the renderer to preview the active form with the given form data. |
| + // Please refer AutofillDriver.QueryFormFieldAutofill comments about the |id|. |
| + PreviewForm(int32 id, FormData form); |
| + |
| + // Sends the heuristic and server field type predictions to the renderer. |
| + 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. |
| + // |key| is the unique id associated with the password form fill data. |
| + ShowInitialPasswordAccountSuggestions(int32 key, PasswordFormFillData form_data); |
| }; |