| 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/display/display_controller.h" | 9 #include "ash/display/display_controller.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Creates view for all root windows, or notifies them to repaint if they | 153 // Creates view for all root windows, or notifies them to repaint if they |
| 154 // already exist. | 154 // already exist. |
| 155 void SetDesktopBackgroundImageMode(); | 155 void SetDesktopBackgroundImageMode(); |
| 156 | 156 |
| 157 // Creates a new background widget and sets the background mode to image mode. | 157 // Creates a new background widget and sets the background mode to image mode. |
| 158 // Called after a default wallpaper has been loaded successfully. | 158 // Called after a default wallpaper has been loaded successfully. |
| 159 void OnDefaultWallpaperLoadCompleted(scoped_refptr<WallpaperLoader> loader); | 159 void OnDefaultWallpaperLoadCompleted(scoped_refptr<WallpaperLoader> loader); |
| 160 | 160 |
| 161 // Creates and adds component for current mode (either Widget or Layer) to | 161 // Creates and adds component for current mode (either Widget or Layer) to |
| 162 // |root_window|. | 162 // |root_window|. |
| 163 void InstallDesktopController(aura::Window* root_window); | 163 void InstallDesktopController(aura::RootWindow* root_window); |
| 164 | 164 |
| 165 // Creates and adds component for current mode (either Widget or Layer) to | 165 // Creates and adds component for current mode (either Widget or Layer) to |
| 166 // all root windows. | 166 // all root windows. |
| 167 void InstallDesktopControllerForAllWindows(); | 167 void InstallDesktopControllerForAllWindows(); |
| 168 | 168 |
| 169 // Moves all desktop components from one container to other across all root | 169 // Moves all desktop components from one container to other across all root |
| 170 // windows. Returns true if a desktop moved. | 170 // windows. Returns true if a desktop moved. |
| 171 bool ReparentBackgroundWidgets(int src_container, int dst_container); | 171 bool ReparentBackgroundWidgets(int src_container, int dst_container); |
| 172 | 172 |
| 173 // Returns id for background container for unlocked and locked states. | 173 // Returns id for background container for unlocked and locked states. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 base::OneShotTimer<DesktopBackgroundController> timer_; | 219 base::OneShotTimer<DesktopBackgroundController> timer_; |
| 220 | 220 |
| 221 int wallpaper_reload_delay_; | 221 int wallpaper_reload_delay_; |
| 222 | 222 |
| 223 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 223 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace ash | 226 } // namespace ash |
| 227 | 227 |
| 228 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 228 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| OLD | NEW |