Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: ash/desktop_background/desktop_background_controller.h

Issue 10915046: Revert 154611 - "Forget about DesktopBackgroundView if it was deleted" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
132 // WindowObserver implementation. 128 // WindowObserver implementation.
133 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 129 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
134 130
135 private: 131 private:
136 // An operation to asynchronously loads wallpaper. 132 // An operation to asynchronously loads wallpaper.
137 class WallpaperOperation; 133 class WallpaperOperation;
138 134
139 struct WallpaperData; 135 struct WallpaperData;
140 136
141 // Creates view for all root windows, or notifies them to repaint if they 137 // 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
182 scoped_refptr<WallpaperOperation> wallpaper_op_; 178 scoped_refptr<WallpaperOperation> wallpaper_op_;
183 179
184 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_; 180 base::WeakPtrFactory<DesktopBackgroundController> weak_ptr_factory_;
185 181
186 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 182 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
187 }; 183 };
188 184
189 } // namespace ash 185 } // namespace ash
190 186
191 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 187 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698