Chromium Code Reviews| Index: components/autofill/content/public/interfaces/autofill_driver.mojom |
| diff --git a/components/autofill/content/public/interfaces/autofill_driver.mojom b/components/autofill/content/public/interfaces/autofill_driver.mojom |
| index 3724043db4083fc126c8da79ecf263edac38c8c2..10203c2166eaef2b978290f8b76f11d6ff8a2f55 100644 |
| --- a/components/autofill/content/public/interfaces/autofill_driver.mojom |
| +++ b/components/autofill/content/public/interfaces/autofill_driver.mojom |
| @@ -4,7 +4,53 @@ |
| module autofill.mojom; |
| +import "components/autofill/content/public/interfaces/autofill_types.mojom"; |
| +import "mojo/common/common_custom_types.mojom"; |
| +import "ui/gfx/geometry/mojo/geometry.mojom"; |
| + |
| interface AutofillDriver { |
|
dcheng
2016/07/12 14:22:12
Ditto: please describe where this interface lives
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done.
|
| // Notification that there has been a user gesture. |
| FirstUserGestureObserved(); |
| + |
| + // Notification that forms have been seen that are candidates for |
| + // filling/submitting by the AutofillManager. |
| + FormsSeen(array<FormData> forms, mojo.common.mojom.TimeTicks timestamp); |
| + |
| + // Notification that a form is about to be submitted. The user hit the button. |
| + WillSubmitForm(FormData form, mojo.common.mojom.TimeTicks timestamp); |
| + |
| + // Notification that a form has been submitted. |
| + FormSubmitted(FormData form); |
| + |
| + // Notification that a form field's value has changed. |
| + TextFieldDidChange(FormData form, |
| + FormFieldData field, |
| + mojo.common.mojom.TimeTicks timestamp); |
| + |
| + // Queries the browser for Autofill suggestions for a form input field. |
| + QueryFormFieldAutofill(int32 id, |
|
dcheng
2016/07/12 14:22:12
Hmm... I guess |id| here is the same type of ID as
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done.
|
| + FormData form, |
| + FormFieldData field, |
| + gfx.mojom.RectF bounding_box); |
| + |
| + // Instructs the browser to hide the Autofill popup if it is open. |
| + HidePopup(); |
| + |
| + // Sent immediately after the renderer receives a ping IPC. |
| + PingAck(); |
| + |
| + // Sent when the current form is no longer focused. |
| + FocusNoLongerOnForm(); |
| + |
| + // Sent when a form is filled with Autofill suggestions. |
| + DidFillAutofillFormData(FormData form, mojo.common.mojom.TimeTicks timestamp); |
| + |
| + // Sent when a form is previewed with Autofill suggestions. |
| + DidPreviewAutofillFormData(); |
| + |
| + // Sent when a text field is done editing. |
| + DidEndTextFieldEditing(); |
| + |
| + // Informs browser of data list values for the current field. |
| + SetDataList(array<string> values, array<string> labels); |
| }; |