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 | |
7 interface AutofillAgent { | 9 interface AutofillAgent { |
dcheng
2016/07/12 14:22:12
Please comment where this interface lives (in the
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done.
| |
8 // Tells the render frame that a user gesture was observed | 10 // Tells the render frame that a user gesture was observed |
9 // somewhere in the tab (including in a different frame). | 11 // somewhere in the tab (including in a different frame). |
10 FirstUserGestureObservedInTab(); | 12 FirstUserGestureObservedInTab(); |
13 | |
14 // Instructs the renderer to fill the active form with the given form data. | |
15 FillForm(int32 id, FormData form); | |
dcheng
2016/07/12 14:22:12
Nit: document what |id| is (I guess it's a general
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done. Yes it's a autofill concept.
| |
16 | |
17 // Instructs the renderer to preview the active form with the given form data. | |
18 PreviewForm(int32 id, FormData form); | |
19 | |
20 // Sends the heuristic and server field type predictions to the renderer. | |
21 FieldTypePredictionsAvailable(array<FormDataPredictions> forms); | |
22 | |
23 // Clears the currently displayed Autofill results. | |
24 ClearForm(); | |
25 | |
26 // Tells the renderer that the Autofill previewed form should be cleared. | |
27 ClearPreviewedForm(); | |
28 | |
29 // Sets the currently selected node's value. | |
30 FillFieldWithValue(string value); | |
31 | |
32 // Sets the suggested value for the currently previewed node. | |
33 PreviewFieldWithValue(string value); | |
34 | |
35 // Sets the currently selected node's value to be the given data list value. | |
36 AcceptDataListSuggestion(string value); | |
37 | |
38 // Tells the renderer to fill the username and password with with given | |
39 // values. | |
40 FillPasswordSuggestion(string username, string password); | |
41 | |
42 // Tells the renderer to preview the username and password with the given | |
43 // values. | |
44 PreviewPasswordSuggestion(string username, string password); | |
45 | |
46 // Sent when a password form is initially detected and suggestions should be | |
47 // shown. Used by the fill-on-select experiment. | |
48 ShowInitialPasswordAccountSuggestions(int32 key, PasswordFormFillData form_dat a); | |
dcheng
2016/07/12 14:22:12
Ditto: please comment what |key| is.
leonhsl(Using Gerrit)
2016/07/13 03:48:30
Done.
| |
11 }; | 49 }; |
OLD | NEW |