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

Unified Diff: ash/desktop_background/desktop_background_controller.h

Issue 10829173: Revert 149869 because it broke ash_unittests on win_aura and linux_chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « ash/ash.gyp ('k') | 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
===================================================================
--- ash/desktop_background/desktop_background_controller.h (revision 149877)
+++ ash/desktop_background/desktop_background_controller.h (working copy)
@@ -13,7 +13,6 @@
#include "base/memory/weak_ptr.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/compositor/layer.h"
#include "ui/gfx/image/image_skia.h"
namespace aura {
@@ -95,49 +94,25 @@
// is SystemGestureEventFilterTest.ThreeFingerSwipe.
void CreateEmptyWallpaper();
- // Move all desktop widgets to locked container.
- void MoveDesktopToLockedContainer();
-
- // Move all desktop widgets to unlocked container.
- void MoveDesktopToUnlockedContainer();
-
private:
// An operation to asynchronously loads wallpaper.
class WallpaperOperation;
struct WallpaperData;
- // Creates view for all root windows, or notifies them to repaint if they
- // already exist.
- void SetDesktopBackgroundImageMode();
+ // Creates a new background widget using the current wallpapaer image and
+ // use it as a background of the |root_window|. Deletes the old widget if any.
+ void SetDesktopBackgroundImage(aura::RootWindow* root_window);
+ // Update the background of all root windows using the current wallpaper image
+ // in |current_wallpaper_|.
+ void UpdateDesktopBackgroundImageMode();
+
// Creates a new background widget and sets the background mode to image mode.
// Called after wallpaper loaded successfully.
void OnWallpaperLoadCompleted(scoped_refptr<WallpaperOperation> wo);
- // Adds layer with solid |color| to container |container_id| in |root_window|.
- ui::Layer* SetColorLayerForContainer(SkColor color,
- aura::RootWindow* root_window,
- int container_id);
-
- // Creates and adds component for current mode (either Widget or Layer) to
- // |root_window|.
- void InstallComponent(aura::RootWindow* root_window);
-
- // Creates and adds component for current mode (either Widget or Layer) to
- // all root windows.
- void InstallComponentForAllWindows();
-
- // Moves all descktop components from one container to other across all root
- // windows.
- void ReparentBackgroundWidgets(int src_container, int dst_container);
-
- // Returns id for background container for unlocked and locked states.
- int GetBackgroundContainerId(bool locked);
-
// Can change at runtime.
- bool locked_;
-
BackgroundMode desktop_background_mode_;
SkColor background_color_;
« no previous file with comments | « ash/ash.gyp ('k') | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698