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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 // Moves all descktop components from one container to other across all root | 146 // Moves all descktop components from one container to other across all root |
147 // windows. | 147 // windows. |
148 void ReparentBackgroundWidgets(int src_container, int dst_container); | 148 void ReparentBackgroundWidgets(int src_container, int dst_container); |
149 | 149 |
150 // Returns id for background container for unlocked and locked states. | 150 // Returns id for background container for unlocked and locked states. |
151 int GetBackgroundContainerId(bool locked); | 151 int GetBackgroundContainerId(bool locked); |
152 | 152 |
153 // Returns the appropriate wallpaper resolution for all root windows. | 153 // Returns the appropriate wallpaper resolution for all root windows. |
154 WallpaperResolution GetAppropriateResolution(); | 154 WallpaperResolution GetAppropriateResolution(); |
155 | 155 |
156 // Send notification that background animation finished. | |
bshe
2012/08/16 16:13:18
looks like when we change from image wallpaper to
Dmitry Polukhin
2012/08/16 17:18:32
I think my comment precisely reflects what this fu
| |
157 void NotifyAnimationFinished(); | |
158 | |
156 // Can change at runtime. | 159 // Can change at runtime. |
157 bool locked_; | 160 bool locked_; |
158 | 161 |
159 BackgroundMode desktop_background_mode_; | 162 BackgroundMode desktop_background_mode_; |
160 | 163 |
161 SkColor background_color_; | 164 SkColor background_color_; |
162 | 165 |
163 // The current wallpaper. | 166 // The current wallpaper. |
164 scoped_ptr<WallpaperData> current_wallpaper_; | 167 scoped_ptr<WallpaperData> current_wallpaper_; |
165 | 168 |
166 scoped_refptr<WallpaperOperation> wallpaper_op_; | 169 scoped_refptr<WallpaperOperation> wallpaper_op_; |
167 | 170 |
168 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; | 171 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; |
169 | 172 |
170 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 173 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
171 }; | 174 }; |
172 | 175 |
173 } // namespace ash | 176 } // namespace ash |
174 | 177 |
175 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 178 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |