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_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/chromeos/camera_presence_notifier.h" | 10 #include "chrome/browser/chromeos/camera_presence_notifier.h" |
11 #include "chrome/browser/chromeos/login/screens/user_image_screen_actor.h" | 11 #include "chrome/browser/chromeos/login/screens/user_image_screen_actor.h" |
12 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" | 12 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" |
13 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" | 13 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" |
14 #include "chrome/browser/chromeos/login/users/user.h" | |
15 #include "chrome/browser/image_decoder.h" | 14 #include "chrome/browser/image_decoder.h" |
| 15 #include "components/user_manager/user.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class Timer; | 20 class Timer; |
21 class Value; | 21 class Value; |
22 }; | 22 }; |
23 | 23 |
24 namespace policy { | 24 namespace policy { |
25 class PolicyChangeRegistrar; | 25 class PolicyChangeRegistrar; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 bool IsWaitingForSync() const; | 87 bool IsWaitingForSync() const; |
88 | 88 |
89 // Called when the policy::key::kUserAvatarImage policy changes while the | 89 // Called when the policy::key::kUserAvatarImage policy changes while the |
90 // screen is being shown. If the policy is set, closes the screen because the | 90 // screen is being shown. If the policy is set, closes the screen because the |
91 // user is not allowed to override a policy-set image. | 91 // user is not allowed to override a policy-set image. |
92 void OnUserImagePolicyChanged(const base::Value* previous, | 92 void OnUserImagePolicyChanged(const base::Value* previous, |
93 const base::Value* current); | 93 const base::Value* current); |
94 | 94 |
95 // Returns current user. | 95 // Returns current user. |
96 const User* GetUser(); | 96 const user_manager::User* GetUser(); |
97 | 97 |
98 // Returns UserImageManager for the current user. | 98 // Returns UserImageManager for the current user. |
99 UserImageManager* GetUserImageManager(); | 99 UserImageManager* GetUserImageManager(); |
100 | 100 |
101 // Returns UserImageSyncObserver for the current user. | 101 // Returns UserImageSyncObserver for the current user. |
102 UserImageSyncObserver* GetSyncObserver(); | 102 UserImageSyncObserver* GetSyncObserver(); |
103 | 103 |
104 // Called when it's decided not to skip the screen. | 104 // Called when it's decided not to skip the screen. |
105 void HideCurtain(); | 105 void HideCurtain(); |
106 | 106 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // True if user has explicitly selected some image. | 147 // True if user has explicitly selected some image. |
148 bool user_has_selected_image_; | 148 bool user_has_selected_image_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); | 150 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace chromeos | 153 } // namespace chromeos |
154 | 154 |
155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ |
OLD | NEW |