| 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/time.mojom"; | 9 import "mojo/common/time.mojom"; |
| 10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Never pass a free-form string as |log|. | 88 // Never pass a free-form string as |log|. |
| 89 RecordSavePasswordProgress(string log); | 89 RecordSavePasswordProgress(string log); |
| 90 | 90 |
| 91 // Instructs the browser to show a popup with suggestions filled from data | 91 // Instructs the browser to show a popup with suggestions filled from data |
| 92 // associated with |key|. The popup will use |text_direction| for displaying | 92 // associated with |key|. The popup will use |text_direction| for displaying |
| 93 // text. | 93 // text. |
| 94 ShowPasswordSuggestions(int32 key, TextDirection text_direction, | 94 ShowPasswordSuggestions(int32 key, TextDirection text_direction, |
| 95 mojo.common.mojom.String16 typed_username, | 95 mojo.common.mojom.String16 typed_username, |
| 96 int32 options, gfx.mojom.RectF bounds); | 96 int32 options, gfx.mojom.RectF bounds); |
| 97 | 97 |
| 98 // Instructs the browser to show a popup with a warning that the form |
| 99 // is not secure. The popup will use |text_direction| for displaying |
| 100 // text. This popup is shown when a password form on a non-secure page is |
| 101 // autofilled on page load. |
| 102 ShowNotSecureWarning(TextDirection text_direction, gfx.mojom.RectF bounds); |
| 103 |
| 98 | 104 |
| 99 // Instructs the browser to presave the form with generated password. | 105 // Instructs the browser to presave the form with generated password. |
| 100 PresaveGeneratedPassword(PasswordForm password_form); | 106 PresaveGeneratedPassword(PasswordForm password_form); |
| 101 | 107 |
| 102 // Instructs the browser that form no longer contains a generated password and | 108 // Instructs the browser that form no longer contains a generated password and |
| 103 // the presaved form should be removed. | 109 // the presaved form should be removed. |
| 104 PasswordNoLongerGenerated(PasswordForm password_form); | 110 PasswordNoLongerGenerated(PasswordForm password_form); |
| 105 | 111 |
| 106 // Sends the outcome of HTML parsing based form classifier that detects the | 112 // Sends the outcome of HTML parsing based form classifier that detects the |
| 107 // forms where password generation should be available. | 113 // forms where password generation should be available. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 130 PasswordForm password_form); | 136 PasswordForm password_form); |
| 131 | 137 |
| 132 // Instructs the browser to show the popup for editing a generated password. | 138 // Instructs the browser to show the popup for editing a generated password. |
| 133 // The location should be specified in the renderers coordinate system. Form | 139 // The location should be specified in the renderers coordinate system. Form |
| 134 // is the form associated with the password field. | 140 // is the form associated with the password field. |
| 135 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); | 141 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); |
| 136 | 142 |
| 137 // Instructs the browser to hide any password generation popups. | 143 // Instructs the browser to hide any password generation popups. |
| 138 HidePasswordGenerationPopup(); | 144 HidePasswordGenerationPopup(); |
| 139 }; | 145 }; |
| OLD | NEW |