OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" |
10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // Called by the view code when the "Done" button is clicked by the user. | 74 // Called by the view code when the "Done" button is clicked by the user. |
75 void OnDoneClicked(); | 75 void OnDoneClicked(); |
76 | 76 |
77 // Called by the view code when the "OK" button is clicked by the user. | 77 // Called by the view code when the "OK" button is clicked by the user. |
78 void OnOKClicked(); | 78 void OnOKClicked(); |
79 | 79 |
80 // Called by the view code when the manage link is clicked by the user. | 80 // Called by the view code when the manage link is clicked by the user. |
81 void OnManageLinkClicked(); | 81 void OnManageLinkClicked(); |
82 | 82 |
83 // Called by the view code when the auto-signin toast is about to close. | 83 // Called by the view code when the auto-signin toast is about to close due to |
| 84 // timeout. |
84 void OnAutoSignInToastTimeout(); | 85 void OnAutoSignInToastTimeout(); |
85 | 86 |
| 87 // Called by the view code when user clicks on the auto sign-in toast in order |
| 88 // to manage credentials. |
| 89 void OnAutoSignInClicked(); |
| 90 |
86 // Called by the view code to delete or add a password form to the | 91 // Called by the view code to delete or add a password form to the |
87 // PasswordStore. | 92 // PasswordStore. |
88 void OnPasswordAction(const autofill::PasswordForm& password_form, | 93 void OnPasswordAction(const autofill::PasswordForm& password_form, |
89 PasswordAction action); | 94 PasswordAction action); |
90 | 95 |
91 // Called by the view code to notify about chosen credential. | 96 // Called by the view code to notify about chosen credential. |
92 void OnChooseCredentials(const autofill::PasswordForm& password_form, | 97 void OnChooseCredentials(const autofill::PasswordForm& password_form, |
93 password_manager::CredentialType credential_type_); | 98 password_manager::CredentialType credential_type_); |
94 | 99 |
95 GURL origin() const { return origin_; } | 100 GURL origin() const { return origin_; } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // If true upon destruction, the user has confirmed that she never wants to | 162 // If true upon destruction, the user has confirmed that she never wants to |
158 // save passwords for a particular site. | 163 // save passwords for a particular site. |
159 bool never_save_passwords_; | 164 bool never_save_passwords_; |
160 password_manager::metrics_util::UIDisplayDisposition display_disposition_; | 165 password_manager::metrics_util::UIDisplayDisposition display_disposition_; |
161 password_manager::metrics_util::UIDismissalReason dismissal_reason_; | 166 password_manager::metrics_util::UIDismissalReason dismissal_reason_; |
162 | 167 |
163 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 168 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
164 }; | 169 }; |
165 | 170 |
166 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 171 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
OLD | NEW |