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

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

Issue 2180093002: [Autofill] Switch on use_new_wrapper_types mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit Created 4 years, 4 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"; 7 import "components/autofill/content/public/interfaces/autofill_types.mojom";
8 import "mojo/common/common_custom_types.mojom";
8 9
9 // There is one instance of this interface per render frame in the render 10 // There is one instance of this interface per render frame in the render
10 // process. 11 // process.
11 interface AutofillAgent { 12 interface AutofillAgent {
12 // Tells the render frame that a user gesture was observed 13 // Tells the render frame that a user gesture was observed
13 // somewhere in the tab (including in a different frame). 14 // somewhere in the tab (including in a different frame).
14 FirstUserGestureObservedInTab(); 15 FirstUserGestureObservedInTab();
15 16
16 // Instructs the renderer to fill the active form with the given form data. 17 // Instructs the renderer to fill the active form with the given form data.
17 // Please refer AutofillDriver.QueryFormFieldAutofill comments about the |id|. 18 // Please refer AutofillDriver.QueryFormFieldAutofill comments about the |id|.
18 FillForm(int32 id, FormData form); 19 FillForm(int32 id, FormData form);
19 20
20 // Instructs the renderer to preview the active form with the given form data. 21 // Instructs the renderer to preview the active form with the given form data.
21 // Please refer AutofillDriver.QueryFormFieldAutofill comments about the |id|. 22 // Please refer AutofillDriver.QueryFormFieldAutofill comments about the |id|.
22 PreviewForm(int32 id, FormData form); 23 PreviewForm(int32 id, FormData form);
23 24
24 // Sends the heuristic and server field type predictions to the renderer. 25 // Sends the heuristic and server field type predictions to the renderer.
25 FieldTypePredictionsAvailable(array<FormDataPredictions> forms); 26 FieldTypePredictionsAvailable(array<FormDataPredictions> forms);
26 27
27 // Clears the currently displayed Autofill results. 28 // Clears the currently displayed Autofill results.
28 ClearForm(); 29 ClearForm();
29 30
30 // Tells the renderer that the Autofill previewed form should be cleared. 31 // Tells the renderer that the Autofill previewed form should be cleared.
31 ClearPreviewedForm(); 32 ClearPreviewedForm();
32 33
33 // Sets the currently selected node's value. 34 // Sets the currently selected node's value.
34 FillFieldWithValue(string value); 35 FillFieldWithValue(mojo.common.mojom.String16 value);
35 36
36 // Sets the suggested value for the currently previewed node. 37 // Sets the suggested value for the currently previewed node.
37 PreviewFieldWithValue(string value); 38 PreviewFieldWithValue(mojo.common.mojom.String16 value);
38 39
39 // Sets the currently selected node's value to be the given data list value. 40 // Sets the currently selected node's value to be the given data list value.
40 AcceptDataListSuggestion(string value); 41 AcceptDataListSuggestion(mojo.common.mojom.String16 value);
41 42
42 // Tells the renderer to fill the username and password with with given 43 // Tells the renderer to fill the username and password with with given
43 // values. 44 // values.
44 FillPasswordSuggestion(string username, string password); 45 FillPasswordSuggestion(mojo.common.mojom.String16 username,
46 mojo.common.mojom.String16 password);
45 47
46 // Tells the renderer to preview the username and password with the given 48 // Tells the renderer to preview the username and password with the given
47 // values. 49 // values.
48 PreviewPasswordSuggestion(string username, string password); 50 PreviewPasswordSuggestion(mojo.common.mojom.String16 username,
51 mojo.common.mojom.String16 password);
49 52
50 // Sent when a password form is initially detected and suggestions should be 53 // Sent when a password form is initially detected and suggestions should be
51 // shown. Used by the fill-on-select experiment. 54 // shown. Used by the fill-on-select experiment.
52 // |key| is the unique id associated with the password form fill data. 55 // |key| is the unique id associated with the password form fill data.
53 ShowInitialPasswordAccountSuggestions(int32 key, PasswordFormFillData form_dat a); 56 ShowInitialPasswordAccountSuggestions(int32 key,
57 PasswordFormFillData form_data);
54 }; 58 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698