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/common/autofill_types.mojom"; | 7 import "components/autofill/content/common/autofill_types.mojom"; |
8 import "mojo/common/string16.mojom"; | 8 import "mojo/common/string16.mojom"; |
9 import "mojo/common/text_direction.mojom"; | 9 import "mojo/common/text_direction.mojom"; |
10 import "mojo/common/time.mojom"; | 10 import "mojo/common/time.mojom"; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 mojo.common.mojom.String16 typed_username, | 90 mojo.common.mojom.String16 typed_username, |
91 int32 options, gfx.mojom.RectF bounds); | 91 int32 options, gfx.mojom.RectF bounds); |
92 | 92 |
93 // Instructs the browser to show a popup with a warning that the form | 93 // Instructs the browser to show a popup with a warning that the form |
94 // is not secure. The popup will use |text_direction| for displaying | 94 // is not secure. The popup will use |text_direction| for displaying |
95 // text. This popup is shown when a password form on a non-secure page is | 95 // text. This popup is shown when a password form on a non-secure page is |
96 // autofilled on page load. | 96 // autofilled on page load. |
97 ShowNotSecureWarning(mojo.common.mojom.TextDirection text_direction, | 97 ShowNotSecureWarning(mojo.common.mojom.TextDirection text_direction, |
98 gfx.mojom.RectF bounds); | 98 gfx.mojom.RectF bounds); |
99 | 99 |
100 // Instructs the browser to presave the form with generated password. | 100 // Instructs the browser to presave the form with generated password. Also |
| 101 // notifies whether the password was modified by user. |
101 PresaveGeneratedPassword(PasswordForm password_form); | 102 PresaveGeneratedPassword(PasswordForm password_form); |
102 | 103 |
103 // Instructs the browser that form no longer contains a generated password and | 104 // Instructs the browser that form no longer contains a generated password and |
104 // the presaved form should be removed. | 105 // the presaved form should be removed. |
105 PasswordNoLongerGenerated(PasswordForm password_form); | 106 PasswordNoLongerGenerated(PasswordForm password_form); |
106 | 107 |
107 // Sends the outcome of HTML parsing based form classifier that detects the | 108 // Sends the outcome of HTML parsing based form classifier that detects the |
108 // forms where password generation should be available. | 109 // forms where password generation should be available. |
109 SaveGenerationFieldDetectedByClassifier( | 110 SaveGenerationFieldDetectedByClassifier( |
110 PasswordForm password_form, mojo.common.mojom.String16 generation_field); | 111 PasswordForm password_form, mojo.common.mojom.String16 generation_field); |
(...skipping 25 matching lines...) Expand all Loading... |
136 PasswordForm password_form); | 137 PasswordForm password_form); |
137 | 138 |
138 // Instructs the browser to show the popup for editing a generated password. | 139 // Instructs the browser to show the popup for editing a generated password. |
139 // The location should be specified in the renderers coordinate system. Form | 140 // The location should be specified in the renderers coordinate system. Form |
140 // is the form associated with the password field. | 141 // is the form associated with the password field. |
141 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); | 142 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); |
142 | 143 |
143 // Instructs the browser to hide any password generation popups. | 144 // Instructs the browser to hide any password generation popups. |
144 HidePasswordGenerationPopup(); | 145 HidePasswordGenerationPopup(); |
145 }; | 146 }; |
OLD | NEW |