| 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_VIEWS_NEW_AVATAR_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 9 #include "ui/views/controls/button/menu_button.h" | 9 #include "ui/views/controls/button/menu_button.h" |
| 10 | 10 |
| 11 class Browser; | 11 class Browser; |
| 12 | 12 |
| 13 // Avatar button that displays the active profile's name in the caption area. | 13 // Avatar button that displays the active profile's name in the caption area. |
| 14 class NewAvatarButton : public views::MenuButton, | 14 class NewAvatarButton : public views::MenuButton, |
| 15 public ProfileInfoCacheObserver { | 15 public ProfileInfoCacheObserver { |
| 16 public: | 16 public: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 // Called when the profile info cache has changed, which means we might | 45 // Called when the profile info cache has changed, which means we might |
| 46 // have to re-display the profile name. | 46 // have to re-display the profile name. |
| 47 void UpdateAvatarButtonAndRelayoutParent(); | 47 void UpdateAvatarButtonAndRelayoutParent(); |
| 48 | 48 |
| 49 Browser* browser_; | 49 Browser* browser_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); | 51 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_ | 54 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| OLD | NEW |