OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module autofill.mojom; | 5 module autofill.mojom; |
6 | 6 |
| 7 import "components/autofill/content/public/interfaces/autofill_types.mojom"; |
| 8 import "mojo/common/common_custom_types.mojom"; |
| 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 10 |
| 11 // There is one instance of this interface per render frame host in the browser |
| 12 // process. |
7 interface AutofillDriver { | 13 interface AutofillDriver { |
8 // Notification that there has been a user gesture. | 14 // Notification that there has been a user gesture. |
9 FirstUserGestureObserved(); | 15 FirstUserGestureObserved(); |
| 16 |
| 17 // Notification that forms have been seen that are candidates for |
| 18 // filling/submitting by the AutofillManager. |
| 19 FormsSeen(array<FormData> forms, mojo.common.mojom.TimeTicks timestamp); |
| 20 |
| 21 // Notification that a form is about to be submitted. The user hit the button. |
| 22 WillSubmitForm(FormData form, mojo.common.mojom.TimeTicks timestamp); |
| 23 |
| 24 // Notification that a form has been submitted. |
| 25 FormSubmitted(FormData form); |
| 26 |
| 27 // Notification that a form field's value has changed. |
| 28 TextFieldDidChange(FormData form, |
| 29 FormFieldData field, |
| 30 mojo.common.mojom.TimeTicks timestamp); |
| 31 |
| 32 // Queries the browser for Autofill suggestions for a form input field. |
| 33 // |id| is the request ID which is used to map responses correctly. |
| 34 QueryFormFieldAutofill(int32 id, |
| 35 FormData form, |
| 36 FormFieldData field, |
| 37 gfx.mojom.RectF bounding_box); |
| 38 |
| 39 // Instructs the browser to hide the Autofill popup if it is open. |
| 40 HidePopup(); |
| 41 |
| 42 // Sent immediately after the renderer receives a ping IPC. |
| 43 PingAck(); |
| 44 |
| 45 // Sent when the current form is no longer focused. |
| 46 FocusNoLongerOnForm(); |
| 47 |
| 48 // Sent when a form is filled with Autofill suggestions. |
| 49 DidFillAutofillFormData(FormData form, mojo.common.mojom.TimeTicks timestamp); |
| 50 |
| 51 // Sent when a form is previewed with Autofill suggestions. |
| 52 DidPreviewAutofillFormData(); |
| 53 |
| 54 // Sent when a text field is done editing. |
| 55 DidEndTextFieldEditing(); |
| 56 |
| 57 // Informs browser of data list values for the current field. |
| 58 SetDataList(array<string> values, array<string> labels); |
10 }; | 59 }; |
OLD | NEW |