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

Unified Diff: ash/desktop_background/desktop_background_controller.h

Issue 10827284: Fix white flash when user sings out and wallpaper animation regression (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/desktop_background/desktop_background_controller.h
diff --git a/ash/desktop_background/desktop_background_controller.h b/ash/desktop_background/desktop_background_controller.h
index edcd803a2f28e923301e6f9e8ecced9e8feda304..37b37895ba915d63085880bf15319dc5088722dd 100644
--- a/ash/desktop_background/desktop_background_controller.h
+++ b/ash/desktop_background/desktop_background_controller.h
@@ -24,6 +24,10 @@ class RootWindow;
namespace ash {
+namespace internal {
+class DesktopBackgroundWidgetController;
+}
+
class UserWallpaperDelegate {
public:
virtual ~UserWallpaperDelegate() {}
@@ -95,6 +99,9 @@ class ASH_EXPORT DesktopBackgroundController : public aura::WindowObserver {
// Cancels the current wallpaper loading operation.
void CancelPendingWallpaperOperation();
+ // Sets the current used component for |root_window|.
+ void SetComponentForRootWindow(aura::RootWindow* root_window);
+
// Sets the desktop background to solid color mode and creates a solid
// |color| layout.
void SetDesktopBackgroundSolidColorMode(SkColor color);
@@ -160,6 +167,10 @@ class ASH_EXPORT DesktopBackgroundController : public aura::WindowObserver {
SkColor background_color_;
+ typedef std::map<aura::RootWindow*,
+ internal::DesktopBackgroundWidgetController*> RootWindowComponentMap;
+ RootWindowComponentMap root_window_component_map_;
sky 2012/08/10 19:20:37 You never clean this state as roots are removed. I
bshe 2012/08/10 19:51:41 This map is a place to store the component for roo
+
// The current wallpaper.
scoped_ptr<WallpaperData> current_wallpaper_;
« 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