Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: components/autofill/content/public/interfaces/autofill_agent.mojom

Issue 2007473004: [Autofill] Migrate ContentAutofillDriver<-->AutofillAgent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698