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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 PasswordFormsParsed(array<PasswordForm> forms); | 70 PasswordFormsParsed(array<PasswordForm> forms); |
71 | 71 |
72 // Notification that initial layout has occurred and the following password | 72 // Notification that initial layout has occurred and the following password |
73 // forms are visible on the page (e.g. not set to display:none.), and whether | 73 // forms are visible on the page (e.g. not set to display:none.), and whether |
74 // all frames in the page have been rendered. | 74 // all frames in the page have been rendered. |
75 PasswordFormsRendered(array<PasswordForm> visible_forms, | 75 PasswordFormsRendered(array<PasswordForm> visible_forms, |
76 bool did_stop_loading); | 76 bool did_stop_loading); |
77 | 77 |
78 // Notification that this password form was submitted by the user. | 78 // Notification that this password form was submitted by the user. |
79 PasswordFormSubmitted(PasswordForm password_form); | 79 PasswordFormSubmitted(PasswordForm password_form); |
| 80 |
| 81 // Notification that a user starts typing in password fields and the omnibox |
| 82 // icon with anchored save/update prompt should be available. |
| 83 ShowManualFallbackForSaving(PasswordForm password_form); |
| 84 |
| 85 // Notification that there is no user input in password fields and the |
| 86 // save/update prompt anchored to the omnibox icon should be removed. |
| 87 HideManualFallbackForSaving(); |
80 | 88 |
81 // Notification that in-page navigation happened and at this moment we have | 89 // Notification that in-page navigation happened and at this moment we have |
82 // filled password form. We use this as a signal for successful login. | 90 // filled password form. We use this as a signal for successful login. |
83 InPageNavigation(PasswordForm password_form); | 91 InPageNavigation(PasswordForm password_form); |
84 | 92 |
85 // Sends |log| to browser for displaying to the user. Only strings passed as | 93 // Sends |log| to browser for displaying to the user. Only strings passed as |
86 // an argument to methods overriding SavePasswordProgressLogger::SendLog may | 94 // an argument to methods overriding SavePasswordProgressLogger::SendLog may |
87 // become |log|, because those are guaranteed to be sanitized. | 95 // become |log|, because those are guaranteed to be sanitized. |
88 // Never pass a free-form string as |log|. | 96 // Never pass a free-form string as |log|. |
89 RecordSavePasswordProgress(string log); | 97 RecordSavePasswordProgress(string log); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 PasswordForm password_form); | 161 PasswordForm password_form); |
154 | 162 |
155 // Instructs the browser to show the popup for editing a generated password. | 163 // Instructs the browser to show the popup for editing a generated password. |
156 // The location should be specified in the renderers coordinate system. Form | 164 // The location should be specified in the renderers coordinate system. Form |
157 // is the form associated with the password field. | 165 // is the form associated with the password field. |
158 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); | 166 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); |
159 | 167 |
160 // Instructs the browser to hide any password generation popups. | 168 // Instructs the browser to hide any password generation popups. |
161 HidePasswordGenerationPopup(); | 169 HidePasswordGenerationPopup(); |
162 }; | 170 }; |
OLD | NEW |