OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROFILES_AVATAR_MENU_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 30 matching lines...) Expand all Loading... |
41 // back to it in response to user events. | 41 // back to it in response to user events. |
42 class AvatarMenu : | 42 class AvatarMenu : |
43 #if defined(ENABLE_SUPERVISED_USERS) | 43 #if defined(ENABLE_SUPERVISED_USERS) |
44 public SupervisedUserServiceObserver, | 44 public SupervisedUserServiceObserver, |
45 #endif | 45 #endif |
46 public ProfileInfoCacheObserver { | 46 public ProfileInfoCacheObserver { |
47 public: | 47 public: |
48 // Represents an item in the menu. | 48 // Represents an item in the menu. |
49 struct Item { | 49 struct Item { |
50 Item(size_t menu_index, size_t profile_index, const gfx::Image& icon); | 50 Item(size_t menu_index, size_t profile_index, const gfx::Image& icon); |
| 51 Item(const Item& other); |
51 ~Item(); | 52 ~Item(); |
52 | 53 |
53 // The icon to be displayed next to the item. | 54 // The icon to be displayed next to the item. |
54 gfx::Image icon; | 55 gfx::Image icon; |
55 | 56 |
56 // Whether or not the current browser is using this profile. | 57 // Whether or not the current browser is using this profile. |
57 bool active; | 58 bool active; |
58 | 59 |
59 // The name of this profile. | 60 // The name of this profile. |
60 base::string16 name; | 61 base::string16 name; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // The observer of this model, which is notified of changes. Weak. | 192 // The observer of this model, which is notified of changes. Weak. |
192 AvatarMenuObserver* observer_; | 193 AvatarMenuObserver* observer_; |
193 | 194 |
194 // Browser in which this avatar menu resides. Weak. | 195 // Browser in which this avatar menu resides. Weak. |
195 Browser* browser_; | 196 Browser* browser_; |
196 | 197 |
197 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); | 198 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); |
198 }; | 199 }; |
199 | 200 |
200 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 201 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
OLD | NEW |