| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // Returns the appropriate wallpaper resolution for all root windows. | 119 // Returns the appropriate wallpaper resolution for all root windows. |
| 120 WallpaperResolution GetAppropriateResolution(); | 120 WallpaperResolution GetAppropriateResolution(); |
| 121 | 121 |
| 122 // Move all desktop widgets to locked container. | 122 // Move all desktop widgets to locked container. |
| 123 void MoveDesktopToLockedContainer(); | 123 void MoveDesktopToLockedContainer(); |
| 124 | 124 |
| 125 // Move all desktop widgets to unlocked container. | 125 // Move all desktop widgets to unlocked container. |
| 126 void MoveDesktopToUnlockedContainer(); | 126 void MoveDesktopToUnlockedContainer(); |
| 127 | 127 |
| 128 // Drop references to background view for |root_window|, because the view |
| 129 // was deleted. |
| 130 void CleanupView(aura::RootWindow* root_window); |
| 131 |
| 128 // WindowObserver implementation. | 132 // WindowObserver implementation. |
| 129 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 133 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 130 | 134 |
| 131 private: | 135 private: |
| 132 // An operation to asynchronously loads wallpaper. | 136 // An operation to asynchronously loads wallpaper. |
| 133 class WallpaperOperation; | 137 class WallpaperOperation; |
| 134 | 138 |
| 135 struct WallpaperData; | 139 struct WallpaperData; |
| 136 | 140 |
| 137 // Creates view for all root windows, or notifies them to repaint if they | 141 // Creates view for all root windows, or notifies them to repaint if they |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 scoped_refptr<WallpaperOperation> wallpaper_op_; | 182 scoped_refptr<WallpaperOperation> wallpaper_op_; |
| 179 | 183 |
| 180 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; | 184 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; |
| 181 | 185 |
| 182 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 186 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| 183 }; | 187 }; |
| 184 | 188 |
| 185 } // namespace ash | 189 } // namespace ash |
| 186 | 190 |
| 187 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 191 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| OLD | NEW |