| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/timer/elapsed_timer.h" | 9 #include "base/timer/elapsed_timer.h" |
| 10 #include "chrome/browser/ui/passwords/manage_passwords_state.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_state.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // GetCurrentForms() which should be the blacklisted one. | 97 // GetCurrentForms() which should be the blacklisted one. |
| 98 virtual void UnblacklistSite(); | 98 virtual void UnblacklistSite(); |
| 99 | 99 |
| 100 // Called from the model. The controller should switch to MANAGE_STATE and pop | 100 // Called from the model. The controller should switch to MANAGE_STATE and pop |
| 101 // up a bubble. | 101 // up a bubble. |
| 102 virtual void ManageAccounts(); | 102 virtual void ManageAccounts(); |
| 103 | 103 |
| 104 // Open a new tab, pointing to the password manager settings page. | 104 // Open a new tab, pointing to the password manager settings page. |
| 105 virtual void NavigateToPasswordManagerSettingsPage(); | 105 virtual void NavigateToPasswordManagerSettingsPage(); |
| 106 | 106 |
| 107 // Open a new tab, pointing to passwords.google.com. |
| 108 void NavigateToExternalPasswordManager(); |
| 109 |
| 107 // Open a new tab, pointing to the Smart Lock help article. | 110 // Open a new tab, pointing to the Smart Lock help article. |
| 108 void NavigateToSmartLockHelpArticle(); | 111 void NavigateToSmartLockHelpArticle(); |
| 109 | 112 |
| 110 virtual const autofill::PasswordForm& PendingPassword() const; | 113 virtual const autofill::PasswordForm& PendingPassword() const; |
| 111 | 114 |
| 112 // Set the state of the Omnibox icon, and possibly show the associated bubble | 115 // Set the state of the Omnibox icon, and possibly show the associated bubble |
| 113 // without user interaction. | 116 // without user interaction. |
| 114 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); | 117 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); |
| 115 | 118 |
| 116 // Called from the model when the bubble is displayed. | 119 // Called from the model when the bubble is displayed. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 scoped_ptr<base::ElapsedTimer> timer_; | 195 scoped_ptr<base::ElapsedTimer> timer_; |
| 193 | 196 |
| 194 // Contains true if the bubble is to be popped up in the next call to | 197 // Contains true if the bubble is to be popped up in the next call to |
| 195 // UpdateBubbleAndIconVisibility(). | 198 // UpdateBubbleAndIconVisibility(). |
| 196 bool should_pop_up_bubble_; | 199 bool should_pop_up_bubble_; |
| 197 | 200 |
| 198 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 201 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
| 199 }; | 202 }; |
| 200 | 203 |
| 201 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 204 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| OLD | NEW |