| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ | 5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ |
| 6 #define COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ | 6 #define COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 const std::string& file); | 232 const std::string& file); |
| 233 | 233 |
| 234 WallpaperManagerBase(); | 234 WallpaperManagerBase(); |
| 235 ~WallpaperManagerBase() override; | 235 ~WallpaperManagerBase() override; |
| 236 | 236 |
| 237 // Returns the appropriate wallpaper resolution for all root windows. | 237 // Returns the appropriate wallpaper resolution for all root windows. |
| 238 virtual WallpaperResolution GetAppropriateResolution() = 0; | 238 virtual WallpaperResolution GetAppropriateResolution() = 0; |
| 239 | 239 |
| 240 virtual void SetCommandLineForTesting(base::CommandLine* command_line); | 240 virtual void SetCommandLineForTesting(base::CommandLine* command_line); |
| 241 | 241 |
| 242 // Indicates imminent shutdown, allowing the WallpaperManager to remove any | |
| 243 // observers it has registered. | |
| 244 virtual void Shutdown() = 0; | |
| 245 | |
| 246 // Adds PowerManagerClient, TimeZoneSettings and CrosSettings observers. | 242 // Adds PowerManagerClient, TimeZoneSettings and CrosSettings observers. |
| 247 virtual void AddObservers() = 0; | 243 virtual void AddObservers() = 0; |
| 248 | 244 |
| 249 // Loads wallpaper asynchronously if the current wallpaper is not the | 245 // Loads wallpaper asynchronously if the current wallpaper is not the |
| 250 // wallpaper of logged in user. | 246 // wallpaper of logged in user. |
| 251 virtual void EnsureLoggedInUserWallpaperLoaded(); | 247 virtual void EnsureLoggedInUserWallpaperLoaded(); |
| 252 | 248 |
| 253 // Gets wallpaper information of logged in user. | 249 // Gets wallpaper information of logged in user. |
| 254 virtual bool GetLoggedInUserWallpaperInfo(WallpaperInfo* info); | 250 virtual bool GetLoggedInUserWallpaperInfo(WallpaperInfo* info); |
| 255 | 251 |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 616 |
| 621 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; | 617 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; |
| 622 | 618 |
| 623 private: | 619 private: |
| 624 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); | 620 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); |
| 625 }; | 621 }; |
| 626 | 622 |
| 627 } // namespace chromeos | 623 } // namespace chromeos |
| 628 | 624 |
| 629 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ | 625 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ |
| OLD | NEW |