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

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

Issue 10898007: Forget about DesktopBackgroundWidget if it was deleted (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Additional check 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
« 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
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
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_
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