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 "chrome/browser/ui/passwords/manage_passwords_bubble.h" | 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" |
9 #include "components/autofill/core/common/password_form.h" | 9 #include "components/autofill/core/common/password_form.h" |
10 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | 10 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Called by the view code when the "Done" button is clicked by the user. | 54 // Called by the view code when the "Done" button is clicked by the user. |
55 void OnDoneClicked(); | 55 void OnDoneClicked(); |
56 | 56 |
57 // Called by the view code when the "OK" button is clicked by the user. | 57 // Called by the view code when the "OK" button is clicked by the user. |
58 void OnOKClicked(); | 58 void OnOKClicked(); |
59 | 59 |
60 // Called by the view code when the manage link is clicked by the user. | 60 // Called by the view code when the manage link is clicked by the user. |
61 void OnManageLinkClicked(); | 61 void OnManageLinkClicked(); |
62 | 62 |
63 // Called by the view code when the manage in Google link is clicked by the | |
64 // user. | |
65 void OnRemoteManageLinkClicked(); | |
66 | |
67 // Called by the view code to delete or add a password form to the | 63 // Called by the view code to delete or add a password form to the |
68 // PasswordStore. | 64 // PasswordStore. |
69 void OnPasswordAction(const autofill::PasswordForm& password_form, | 65 void OnPasswordAction(const autofill::PasswordForm& password_form, |
70 PasswordAction action); | 66 PasswordAction action); |
71 | 67 |
72 password_manager::ui::State state() const { return state_; } | 68 password_manager::ui::State state() const { return state_; } |
73 | 69 |
74 const base::string16& title() const { return title_; } | 70 const base::string16& title() const { return title_; } |
75 const autofill::PasswordForm& pending_credentials() const { | 71 const autofill::PasswordForm& pending_credentials() const { |
76 return pending_credentials_; | 72 return pending_credentials_; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 base::string16 save_confirmation_text_; | 111 base::string16 save_confirmation_text_; |
116 gfx::Range save_confirmation_link_range_; | 112 gfx::Range save_confirmation_link_range_; |
117 | 113 |
118 password_manager::metrics_util::UIDisplayDisposition display_disposition_; | 114 password_manager::metrics_util::UIDisplayDisposition display_disposition_; |
119 password_manager::metrics_util::UIDismissalReason dismissal_reason_; | 115 password_manager::metrics_util::UIDismissalReason dismissal_reason_; |
120 | 116 |
121 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 117 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
122 }; | 118 }; |
123 | 119 |
124 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 120 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
OLD | NEW |