OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ICON_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "components/password_manager/core/common/password_manager_ui.h" | 9 #include "components/password_manager/core/common/password_manager_ui.h" |
10 | 10 |
11 // An interface for updating the passwords icon in the location bar. | 11 // An interface for updating the passwords icon in the location bar. |
12 class ManagePasswordsIconView { | 12 class ManagePasswordsIconView { |
13 public: | 13 public: |
14 ManagePasswordsIconView() {} | 14 ManagePasswordsIconView() {} |
15 | 15 |
16 virtual void SetState(password_manager::ui::State state) = 0; | 16 virtual void SetState(password_manager::ui::State state) = 0; |
17 virtual void SetActive(bool active) = 0; | |
18 | 17 |
19 private: | 18 private: |
20 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconView); | 19 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconView); |
21 }; | 20 }; |
22 | 21 |
23 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ | 22 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ |
OLD | NEW |