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

Side by Side Diff: components/autofill/content/public/interfaces/autofill_driver.mojom

Issue 2007473004: [Autofill] Migrate ContentAutofillDriver<-->AutofillAgent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Daniel comments Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 // This interface lives in the browser process per one render frame host,
12 // is responsible to communicate with corresponding autofill agent.
dcheng 2016/07/14 04:31:44 Nit: There is one instance of this interface per r
leonhsl(Using Gerrit) 2016/07/14 09:57:31 Done.
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698