Chromium Code Reviews| 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 | |
| 7 interface AutofillDriver { | 11 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.
| |
| 8 // Notification that there has been a user gesture. | 12 // Notification that there has been a user gesture. |
| 9 FirstUserGestureObserved(); | 13 FirstUserGestureObserved(); |
| 14 | |
| 15 // Notification that forms have been seen that are candidates for | |
| 16 // filling/submitting by the AutofillManager. | |
| 17 FormsSeen(array<FormData> forms, mojo.common.mojom.TimeTicks timestamp); | |
| 18 | |
| 19 // Notification that a form is about to be submitted. The user hit the button. | |
| 20 WillSubmitForm(FormData form, mojo.common.mojom.TimeTicks timestamp); | |
| 21 | |
| 22 // Notification that a form has been submitted. | |
| 23 FormSubmitted(FormData form); | |
| 24 | |
| 25 // Notification that a form field's value has changed. | |
| 26 TextFieldDidChange(FormData form, | |
| 27 FormFieldData field, | |
| 28 mojo.common.mojom.TimeTicks timestamp); | |
| 29 | |
| 30 // Queries the browser for Autofill suggestions for a form input field. | |
| 31 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.
| |
| 32 FormData form, | |
| 33 FormFieldData field, | |
| 34 gfx.mojom.RectF bounding_box); | |
| 35 | |
| 36 // Instructs the browser to hide the Autofill popup if it is open. | |
| 37 HidePopup(); | |
| 38 | |
| 39 // Sent immediately after the renderer receives a ping IPC. | |
| 40 PingAck(); | |
| 41 | |
| 42 // Sent when the current form is no longer focused. | |
| 43 FocusNoLongerOnForm(); | |
| 44 | |
| 45 // Sent when a form is filled with Autofill suggestions. | |
| 46 DidFillAutofillFormData(FormData form, mojo.common.mojom.TimeTicks timestamp); | |
| 47 | |
| 48 // Sent when a form is previewed with Autofill suggestions. | |
| 49 DidPreviewAutofillFormData(); | |
| 50 | |
| 51 // Sent when a text field is done editing. | |
| 52 DidEndTextFieldEditing(); | |
| 53 | |
| 54 // Informs browser of data list values for the current field. | |
| 55 SetDataList(array<string> values, array<string> labels); | |
| 10 }; | 56 }; |
| OLD | NEW |