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..cbdb78d379c184a29db9dac036d107da495c7baa 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"; |
+ |
+// There is one instance of this interface per render frame in the render |
+// process. |
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); |
}; |