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..676ec25723da9b440acf2b77924e73112ea57a1c 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 { |
|
dcheng
2016/07/12 14:22:12
Please comment where this interface lives (in the
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done.
|
| // 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); |
|
dcheng
2016/07/12 14:22:12
Nit: document what |id| is (I guess it's a general
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done. Yes it's a autofill concept.
|
| + |
| + // Instructs the renderer to preview the active form with the given form data. |
| + 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. |
| + ShowInitialPasswordAccountSuggestions(int32 key, PasswordFormFillData form_data); |
|
dcheng
2016/07/12 14:22:12
Ditto: please comment what |key| is.
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done.
|
| }; |