| 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 in order to do | 45 // Called from SetState() iff the icon's state has changed. |
| 46 // whatever platform-specific UI work is necessary given the new state. | 46 virtual void SetStateInternal(State state) = 0; |
| 47 virtual void UpdateVisibleUI() = 0; | |
| 48 | 47 |
| 49 private: | 48 private: |
| 50 State state_; | 49 State state_; |
| 51 | 50 |
| 52 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIcon); | 51 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIcon); |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ | 54 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_H_ |
| OLD | NEW |