| 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_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Indicates that user just logged on as the demo user. | 95 // Indicates that user just logged on as the demo user. |
| 96 virtual void DemoUserLoggedIn() = 0; | 96 virtual void DemoUserLoggedIn() = 0; |
| 97 | 97 |
| 98 // Indicates that user just started incognito session. | 98 // Indicates that user just started incognito session. |
| 99 virtual void GuestUserLoggedIn() = 0; | 99 virtual void GuestUserLoggedIn() = 0; |
| 100 | 100 |
| 101 // Indicates that a user just logged in as ephemeral. | 101 // Indicates that a user just logged in as ephemeral. |
| 102 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; | 102 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; |
| 103 | 103 |
| 104 // Loads logged in user wallpaper asynchronously and sets to current wallpaper | 104 // Initalize wallpaper. If logged in, load user's wallpaper. If not logged in |
| 105 // after loaded. If not logged in or logged in as stub user, uses an empty | 105 // or logged in as stub user, uses an empty wallpaper or a solid color |
| 106 // wallpaper. | 106 // wallpaper when GAIA login flow. |
| 107 virtual void SetLoggedInUserWallpaper() = 0; | 107 virtual void InitializeWallpaper() = 0; |
| 108 | 108 |
| 109 // Called when user pod with |email| is selected. | 109 // Called when user pod with |email| is selected. |
| 110 virtual void UserSelected(const std::string& email) = 0; | 110 virtual void UserSelected(const std::string& email) = 0; |
| 111 | 111 |
| 112 // Called when browser session is started i.e. after | 112 // Called when browser session is started i.e. after |
| 113 // browser_creator.LaunchBrowser(...) was called after user sign in. | 113 // browser_creator.LaunchBrowser(...) was called after user sign in. |
| 114 // When user is at the image screen IsUserLoggedIn() will return true | 114 // When user is at the image screen IsUserLoggedIn() will return true |
| 115 // but SessionStarted() will return false. | 115 // but SessionStarted() will return false. |
| 116 // Fires NOTIFICATION_SESSION_STARTED. | 116 // Fires NOTIFICATION_SESSION_STARTED. |
| 117 virtual void SessionStarted() = 0; | 117 virtual void SessionStarted() = 0; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 virtual void NotifyLocalStateChanged() = 0; | 239 virtual void NotifyLocalStateChanged() = 0; |
| 240 | 240 |
| 241 // Returns the result of the last successful profile image download, if any. | 241 // Returns the result of the last successful profile image download, if any. |
| 242 // Otherwise, returns an empty bitmap. | 242 // Otherwise, returns an empty bitmap. |
| 243 virtual const SkBitmap& DownloadedProfileImage() const = 0; | 243 virtual const SkBitmap& DownloadedProfileImage() const = 0; |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 } // namespace chromeos | 246 } // namespace chromeos |
| 247 | 247 |
| 248 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 248 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |