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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 | 103 |
104 // 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 |
105 // the presaved form should be removed. | 105 // the presaved form should be removed. |
106 PasswordNoLongerGenerated(PasswordForm password_form); | 106 PasswordNoLongerGenerated(PasswordForm password_form); |
107 | 107 |
108 // 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 |
109 // forms where password generation should be available. | 109 // forms where password generation should be available. |
110 SaveGenerationFieldDetectedByClassifier( | 110 SaveGenerationFieldDetectedByClassifier( |
111 PasswordForm password_form, mojo.common.mojom.String16 generation_field); | 111 PasswordForm password_form, mojo.common.mojom.String16 generation_field); |
112 }; | 112 }; |
113 | |
114 // There is one instance of this interface per web contents in the browser | |
115 // process. | |
116 interface PasswordManagerClient { | |
117 // Instructs the browser that generation is available for this particular | |
118 // form. This is used for UMA stats. | |
119 GenerationAvailableForForm(PasswordForm password_form); | |
120 | |
121 // Instructs the browser to show the password generation popup at the | |
122 // specified location. This location should be specified in the renderers | |
123 // coordinate system. Form is the form associated with the password field. | |
124 ShowPasswordGenerationPopup( | |
125 gfx.mojom.RectF bounds, int32 max_length, | |
vabr (Chromium)
2016/09/27 15:06:12
nit: |max_length| and other arguments are missing
leonhsl(Using Gerrit)
2016/09/28 02:40:39
Done.
| |
126 mojo.common.mojom.String16 generation_element, bool is_manually_triggered, | |
127 PasswordForm password_form); | |
128 | |
129 // Instructs the browser to show the popup for editing a generated password. | |
130 // The location should be specified in the renderers coordinate system. Form | |
131 // is the form associated with the password field. | |
132 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); | |
133 | |
134 // Instructs the browser to hide any password generation popups. | |
135 HidePasswordGenerationPopup(); | |
136 }; | |
OLD | NEW |