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/public/interfaces/autofill_types.mojom"; | 7 import "components/autofill/content/public/interfaces/autofill_types.mojom"; |
8 import "mojo/common/common_custom_types.mojom"; | 8 import "mojo/common/common_custom_types.mojom"; |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Sent when a form is previewed with Autofill suggestions. | 51 // Sent when a form is previewed with Autofill suggestions. |
52 DidPreviewAutofillFormData(); | 52 DidPreviewAutofillFormData(); |
53 | 53 |
54 // Sent when a text field is done editing. | 54 // Sent when a text field is done editing. |
55 DidEndTextFieldEditing(); | 55 DidEndTextFieldEditing(); |
56 | 56 |
57 // Informs browser of data list values for the current field. | 57 // Informs browser of data list values for the current field. |
58 SetDataList(array<mojo.common.mojom.String16> values, | 58 SetDataList(array<mojo.common.mojom.String16> values, |
59 array<mojo.common.mojom.String16> labels); | 59 array<mojo.common.mojom.String16> labels); |
60 }; | 60 }; |
| 61 |
| 62 // There is one instance of this interface per render frame host in the browser |
| 63 // process. |
| 64 interface PasswordManagerDriver { |
| 65 // A ping to the browser that PasswordAutofillAgent was constructed. As a |
| 66 // consequence, the browser sends SetLoggingState with the current |
| 67 // state of the logging activity. |
| 68 PasswordAutofillAgentConstructed(); |
| 69 |
| 70 // Notification that password forms have been seen that are candidates for |
| 71 // filling/submitting by the password manager. |
| 72 PasswordFormsParsed(array<PasswordForm> forms); |
| 73 |
| 74 // Notification that initial layout has occurred and the following password |
| 75 // forms are visible on the page (e.g. not set to display:none.), and whether |
| 76 // all frames in the page have been rendered. |
| 77 PasswordFormsRendered(array<PasswordForm> visible_forms, |
| 78 bool did_stop_loading); |
| 79 |
| 80 // Notification that this password form was submitted by the user. |
| 81 PasswordFormSubmitted(PasswordForm password_form); |
| 82 |
| 83 // Notification that in-page navigation happened and at this moment we have |
| 84 // filled password form. We use this as a signal for successful login. |
| 85 InPageNavigation(PasswordForm password_form); |
| 86 |
| 87 // Sends |log| to browser for displaying to the user. Only strings passed as |
| 88 // an argument to methods overriding SavePasswordProgressLogger::SendLog may |
| 89 // become |log|, because those are guaranteed to be sanitized. |
| 90 // Never pass a free-form string as |log|. |
| 91 RecordSavePasswordProgress(string log); |
| 92 |
| 93 // Instructs the browser to show a popup with suggestions filled from data |
| 94 // associated with |key|. The popup will use |text_direction| for displaying |
| 95 // text. |
| 96 ShowPasswordSuggestions(int32 key, TextDirection text_direction, |
| 97 mojo.common.mojom.String16 typed_username, |
| 98 int32 options, gfx.mojom.RectF bounds); |
| 99 |
| 100 |
| 101 // Instructs the browser to presave the form with generated password. |
| 102 PresaveGeneratedPassword(PasswordForm password_form); |
| 103 |
| 104 // Instructs the browser that form no longer contains a generated password and |
| 105 // the presaved form should be removed. |
| 106 PasswordNoLongerGenerated(PasswordForm password_form); |
| 107 |
| 108 // Sends the outcome of HTML parsing based form classifier that detects the |
| 109 // forms where password generation should be available. |
| 110 SaveGenerationFieldDetectedByClassifier( |
| 111 PasswordForm password_form, mojo.common.mojom.String16 generation_field); |
| 112 }; |
OLD | NEW |