| 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_WALLPAPER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/desktop_background/desktop_background_controller.h" | 10 #include "ash/desktop_background/desktop_background_controller.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 // Clears all obsolete wallpaper prefs from old version wallpaper pickers. | 186 // Clears all obsolete wallpaper prefs from old version wallpaper pickers. |
| 187 void ClearObsoleteWallpaperPrefs(); | 187 void ClearObsoleteWallpaperPrefs(); |
| 188 | 188 |
| 189 // Deletes a list of wallpaper files in |file_list|. | 189 // Deletes a list of wallpaper files in |file_list|. |
| 190 void DeleteWallpaperInList(const std::vector<FilePath>& file_list); | 190 void DeleteWallpaperInList(const std::vector<FilePath>& file_list); |
| 191 | 191 |
| 192 // Deletes all |email| related custom or converted wallpapers. | 192 // Deletes all |email| related custom or converted wallpapers. |
| 193 void DeleteUserWallpapers(const std::string& email); | 193 void DeleteUserWallpapers(const std::string& email); |
| 194 | 194 |
| 195 // Initialize wallpaper of registered device after device policy is trusted. |
| 196 // Note that before device is enrolled, it proceeds with untrusted setting. |
| 197 void InitializeRegisteredDeviceWallpaper(); |
| 198 |
| 195 // Loads |email|'s wallpaper. When |update_wallpaper| is true, sets wallpaper | 199 // Loads |email|'s wallpaper. When |update_wallpaper| is true, sets wallpaper |
| 196 // to the loaded wallpaper. | 200 // to the loaded wallpaper. |
| 197 void LoadWallpaper(const std::string& email, | 201 void LoadWallpaper(const std::string& email, |
| 198 const WallpaperInfo& info, | 202 const WallpaperInfo& info, |
| 199 bool update_wallpaper); | 203 bool update_wallpaper); |
| 200 | 204 |
| 201 // Gets |email|'s custom wallpaper at |wallpaper_path|. Falls back on original | 205 // Gets |email|'s custom wallpaper at |wallpaper_path|. Falls back on original |
| 202 // custom wallpaper. When |update_wallpaper| is true, sets wallpaper to the | 206 // custom wallpaper. When |update_wallpaper| is true, sets wallpaper to the |
| 203 // loaded wallpaper. Must run on FILE thread. | 207 // loaded wallpaper. Must run on FILE thread. |
| 204 void GetCustomWallpaperInternal(const std::string& email, | 208 void GetCustomWallpaperInternal(const std::string& email, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 content::NotificationRegistrar registrar_; | 303 content::NotificationRegistrar registrar_; |
| 300 | 304 |
| 301 base::OneShotTimer<WallpaperManager> timer_; | 305 base::OneShotTimer<WallpaperManager> timer_; |
| 302 | 306 |
| 303 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); | 307 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); |
| 304 }; | 308 }; |
| 305 | 309 |
| 306 } // namespace chromeos | 310 } // namespace chromeos |
| 307 | 311 |
| 308 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ | 312 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ |
| OLD | NEW |