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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 | 109 |
110 // Returns the appropriate wallpaper resolution for all root windows. | 110 // Returns the appropriate wallpaper resolution for all root windows. |
111 WallpaperResolution GetAppropriateResolution(); | 111 WallpaperResolution GetAppropriateResolution(); |
112 | 112 |
113 // Move all desktop widgets to locked container. | 113 // Move all desktop widgets to locked container. |
114 void MoveDesktopToLockedContainer(); | 114 void MoveDesktopToLockedContainer(); |
115 | 115 |
116 // Move all desktop widgets to unlocked container. | 116 // Move all desktop widgets to unlocked container. |
117 void MoveDesktopToUnlockedContainer(); | 117 void MoveDesktopToUnlockedContainer(); |
118 | 118 |
119 // Drop references to background view for |root_window|, because the view | |
120 // was deleted. | |
121 void CleanUpView(aura::RootWindow* root_window); | |
Nikita (slow)
2012/08/28 17:42:38
nit: Cleanup
| |
122 | |
119 // WindowObserver implementation. | 123 // WindowObserver implementation. |
120 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 124 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
121 | 125 |
122 private: | 126 private: |
123 // An operation to asynchronously loads wallpaper. | 127 // An operation to asynchronously loads wallpaper. |
124 class WallpaperOperation; | 128 class WallpaperOperation; |
125 | 129 |
126 struct WallpaperData; | 130 struct WallpaperData; |
127 | 131 |
128 // Creates view for all root windows, or notifies them to repaint if they | 132 // 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... | |
169 scoped_refptr<WallpaperOperation> wallpaper_op_; | 173 scoped_refptr<WallpaperOperation> wallpaper_op_; |
170 | 174 |
171 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; | 175 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; |
172 | 176 |
173 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 177 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
174 }; | 178 }; |
175 | 179 |
176 } // namespace ash | 180 } // namespace ash |
177 | 181 |
178 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 182 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |