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 ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/desktop_background/desktop_background_resources.h" | 9 #include "ash/desktop_background/desktop_background_resources.h" |
10 #include "ash/wm/window_animations.h" | 10 #include "ash/wm/window_animations.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Opens the set wallpaper page in the browser. | 34 // Opens the set wallpaper page in the browser. |
35 virtual void OpenSetWallpaperPage() = 0; | 35 virtual void OpenSetWallpaperPage() = 0; |
36 | 36 |
37 // Returns true if user can open set wallpaper page. Only guest user returns | 37 // Returns true if user can open set wallpaper page. Only guest user returns |
38 // false currently. | 38 // false currently. |
39 virtual bool CanOpenSetWallpaperPage() = 0; | 39 virtual bool CanOpenSetWallpaperPage() = 0; |
40 | 40 |
41 // Notifies delegate that wallpaper animation has finished. | 41 // Notifies delegate that wallpaper animation has finished. |
42 virtual void OnWallpaperAnimationFinished() = 0; | 42 virtual void OnWallpaperAnimationFinished() = 0; |
| 43 |
| 44 // Notifies delegate that wallpaper boot animation has finished. |
| 45 virtual void OnWallpaperBootAnimationFinished() = 0; |
43 }; | 46 }; |
44 | 47 |
45 // Loads selected desktop wallpaper from file system asynchronously and updates | 48 // Loads selected desktop wallpaper from file system asynchronously and updates |
46 // background layer if loaded successfully. | 49 // background layer if loaded successfully. |
47 class ASH_EXPORT DesktopBackgroundController { | 50 class ASH_EXPORT DesktopBackgroundController { |
48 public: | 51 public: |
49 enum BackgroundMode { | 52 enum BackgroundMode { |
50 BACKGROUND_IMAGE, | 53 BACKGROUND_IMAGE, |
51 BACKGROUND_SOLID_COLOR | 54 BACKGROUND_SOLID_COLOR |
52 }; | 55 }; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 scoped_refptr<WallpaperOperation> wallpaper_op_; | 126 scoped_refptr<WallpaperOperation> wallpaper_op_; |
124 | 127 |
125 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; | 128 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; |
126 | 129 |
127 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 130 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
128 }; | 131 }; |
129 | 132 |
130 } // namespace ash | 133 } // namespace ash |
131 | 134 |
132 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 135 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |