| 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/time.mojom"; | 10 import "mojo/common/time.mojom"; |
| 10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 11 | 12 |
| 12 // There is one instance of this interface per render frame host in the browser | 13 // There is one instance of this interface per render frame host in the browser |
| 13 // process. | 14 // process. |
| 14 interface AutofillDriver { | 15 interface AutofillDriver { |
| 15 // Notification that there has been a user gesture. | 16 // Notification that there has been a user gesture. |
| 16 FirstUserGestureObserved(); | 17 FirstUserGestureObserved(); |
| 17 | 18 |
| 18 // Notification that forms have been seen that are candidates for | 19 // Notification that forms have been seen that are candidates for |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 85 |
| 85 // Sends |log| to browser for displaying to the user. Only strings passed as | 86 // Sends |log| to browser for displaying to the user. Only strings passed as |
| 86 // an argument to methods overriding SavePasswordProgressLogger::SendLog may | 87 // an argument to methods overriding SavePasswordProgressLogger::SendLog may |
| 87 // become |log|, because those are guaranteed to be sanitized. | 88 // become |log|, because those are guaranteed to be sanitized. |
| 88 // Never pass a free-form string as |log|. | 89 // Never pass a free-form string as |log|. |
| 89 RecordSavePasswordProgress(string log); | 90 RecordSavePasswordProgress(string log); |
| 90 | 91 |
| 91 // Instructs the browser to show a popup with suggestions filled from data | 92 // Instructs the browser to show a popup with suggestions filled from data |
| 92 // associated with |key|. The popup will use |text_direction| for displaying | 93 // associated with |key|. The popup will use |text_direction| for displaying |
| 93 // text. | 94 // text. |
| 94 ShowPasswordSuggestions(int32 key, TextDirection text_direction, | 95 ShowPasswordSuggestions(int32 key, |
| 96 mojo.common.mojom.TextDirection text_direction, |
| 95 mojo.common.mojom.String16 typed_username, | 97 mojo.common.mojom.String16 typed_username, |
| 96 int32 options, gfx.mojom.RectF bounds); | 98 int32 options, gfx.mojom.RectF bounds); |
| 97 | 99 |
| 98 // Instructs the browser to show a popup with a warning that the form | 100 // 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 | 101 // 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 | 102 // text. This popup is shown when a password form on a non-secure page is |
| 101 // autofilled on page load. | 103 // autofilled on page load. |
| 102 ShowNotSecureWarning(TextDirection text_direction, gfx.mojom.RectF bounds); | 104 ShowNotSecureWarning(mojo.common.mojom.TextDirection text_direction, |
| 105 gfx.mojom.RectF bounds); |
| 103 | 106 |
| 104 // Instructs the browser to presave the form with generated password. | 107 // Instructs the browser to presave the form with generated password. |
| 105 PresaveGeneratedPassword(PasswordForm password_form); | 108 PresaveGeneratedPassword(PasswordForm password_form); |
| 106 | 109 |
| 107 // Instructs the browser that form no longer contains a generated password and | 110 // Instructs the browser that form no longer contains a generated password and |
| 108 // the presaved form should be removed. | 111 // the presaved form should be removed. |
| 109 PasswordNoLongerGenerated(PasswordForm password_form); | 112 PasswordNoLongerGenerated(PasswordForm password_form); |
| 110 | 113 |
| 111 // Sends the outcome of HTML parsing based form classifier that detects the | 114 // Sends the outcome of HTML parsing based form classifier that detects the |
| 112 // forms where password generation should be available. | 115 // forms where password generation should be available. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 135 PasswordForm password_form); | 138 PasswordForm password_form); |
| 136 | 139 |
| 137 // Instructs the browser to show the popup for editing a generated password. | 140 // Instructs the browser to show the popup for editing a generated password. |
| 138 // The location should be specified in the renderers coordinate system. Form | 141 // The location should be specified in the renderers coordinate system. Form |
| 139 // is the form associated with the password field. | 142 // is the form associated with the password field. |
| 140 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); | 143 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); |
| 141 | 144 |
| 142 // Instructs the browser to hide any password generation popups. | 145 // Instructs the browser to hide any password generation popups. |
| 143 HidePasswordGenerationPopup(); | 146 HidePasswordGenerationPopup(); |
| 144 }; | 147 }; |
| OLD | NEW |