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_; |