| 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 11 matching lines...) Expand all Loading... |
| 22 #include "content/public/browser/web_contents_observer.h" | 22 #include "content/public/browser/web_contents_observer.h" |
| 23 #include "ui/gfx/image/image.h" | 23 #include "ui/gfx/image/image.h" |
| 24 | 24 |
| 25 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 25 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 26 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" | 26 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 class AvatarMenuActions; | 29 class AvatarMenuActions; |
| 30 class AvatarMenuObserver; | 30 class AvatarMenuObserver; |
| 31 class Browser; | 31 class Browser; |
| 32 class Profile; | |
| 33 class ProfileAttributesStorage; | 32 class ProfileAttributesStorage; |
| 34 class ProfileList; | 33 class ProfileList; |
| 35 class SupervisedUserService; | 34 class SupervisedUserService; |
| 36 | 35 |
| 37 // This class represents the menu-like interface used to select profiles, | 36 // This class represents the menu-like interface used to select profiles, |
| 38 // such as the bubble that appears when the avatar icon is clicked in the | 37 // such as the bubble that appears when the avatar icon is clicked in the |
| 39 // browser window frame. This class will notify its observer when the backend | 38 // browser window frame. This class will notify its observer when the backend |
| 40 // data changes, and the view for this model should forward actions | 39 // data changes, and the view for this model should forward actions |
| 41 // back to it in response to user events. | 40 // back to it in response to user events. |
| 42 class AvatarMenu : | 41 class AvatarMenu : |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // The observer of this model, which is notified of changes. Weak. | 187 // The observer of this model, which is notified of changes. Weak. |
| 189 AvatarMenuObserver* observer_; | 188 AvatarMenuObserver* observer_; |
| 190 | 189 |
| 191 // Browser in which this avatar menu resides. Weak. | 190 // Browser in which this avatar menu resides. Weak. |
| 192 Browser* browser_; | 191 Browser* browser_; |
| 193 | 192 |
| 194 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); | 193 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); |
| 195 }; | 194 }; |
| 196 | 195 |
| 197 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 196 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| OLD | NEW |