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_ICON_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 // Abstract base class for platform-specific password management icon views. | 10 // Abstract base class for platform-specific password management icon views. |
(...skipping 24 matching lines...) Expand all Loading... |
35 // ManagePasswordsUIController. | 35 // ManagePasswordsUIController. |
36 // | 36 // |
37 // TODO(mkwst): This shouldn't be the IconView's responsiblity. Move it | 37 // TODO(mkwst): This shouldn't be the IconView's responsiblity. Move it |
38 // somewhere else as part of the refactoring in http://crbug.com/365678. | 38 // somewhere else as part of the refactoring in http://crbug.com/365678. |
39 virtual void ShowBubbleWithoutUserInteraction() = 0; | 39 virtual void ShowBubbleWithoutUserInteraction() = 0; |
40 | 40 |
41 protected: | 41 protected: |
42 ManagePasswordsIcon(); | 42 ManagePasswordsIcon(); |
43 ~ManagePasswordsIcon(); | 43 ~ManagePasswordsIcon(); |
44 | 44 |
45 // Called from SetState() iff the icon's state has changed. | 45 // Called from SetState() iff the icon's state has changed in order to do |
46 virtual void SetStateInternal(State state) = 0; | 46 // whatever platform-specific UI work is necessary given the new state. |
| 47 virtual void UpdateVisibleUI() = 0; |
47 | 48 |
48 private: | 49 private: |
49 State state_; | 50 State state_; |
50 | 51 |
51 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIcon); | 52 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIcon); |
52 }; | 53 }; |
53 | 54 |
54 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ | 55 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ |
OLD | NEW |