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

Unified Diff: ash/shell.h

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 9 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
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index dc6415d8cf99ba76418686f81a6087d35bfd61d7..b89407e29eb09e3b767652347893a43ab5af8fcc 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -17,6 +17,7 @@
#include "ui/gfx/size.h"
class CommandLine;
+class SkBitmap;
namespace aura {
class EventFilter;
@@ -40,6 +41,7 @@ namespace ash {
class AcceleratorController;
class AudioController;
class BrightnessController;
+class DesktopBackgroundController;
class Launcher;
class NestedDispatcherController;
class PowerButtonController;
@@ -76,11 +78,6 @@ class WorkspaceController;
// takes ownership of the Shell.
class ASH_EXPORT Shell {
public:
- enum BackgroundMode {
- BACKGROUND_IMAGE,
- BACKGROUND_SOLID_COLOR
- };
-
enum Direction {
FORWARD,
BACKWARD
@@ -116,8 +113,8 @@ class ASH_EXPORT Shell {
// Get the singleton RootWindow used by the Shell.
static aura::RootWindow* GetRootWindow();
- BackgroundMode desktop_background_mode() const {
- return desktop_background_mode_;
+ internal::RootWindowLayoutManager* root_window_layout() const {
+ return root_window_layout_;
}
aura::Window* GetContainer(int container_id);
@@ -134,9 +131,6 @@ class ASH_EXPORT Shell {
// Toggles app list.
void ToggleAppList();
- // Sets the desktop background mode.
- void SetDesktopBackgroundMode(BackgroundMode mode);
-
// Returns true if the screen is locked.
bool IsScreenLocked() const;
@@ -166,6 +160,9 @@ class ASH_EXPORT Shell {
internal::PartialScreenshotEventFilter* partial_screenshot_filter() {
return partial_screenshot_filter_.get();
}
+ DesktopBackgroundController* desktop_background_controller() {
+ return desktop_background_controller_.get();
+ }
PowerButtonController* power_button_controller() {
return power_button_controller_.get();
}
@@ -256,6 +253,7 @@ class ASH_EXPORT Shell {
scoped_ptr<internal::ShadowController> shadow_controller_;
scoped_ptr<internal::TooltipController> tooltip_controller_;
scoped_ptr<internal::VisibilityController> visibility_controller_;
+ scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
scoped_ptr<PowerButtonController> power_button_controller_;
scoped_ptr<VideoDetector> video_detector_;
scoped_ptr<WindowCycleController> window_cycle_controller_;
@@ -283,9 +281,6 @@ class ASH_EXPORT Shell {
// the status area.
internal::ShelfLayoutManager* shelf_;
- // Can change at runtime.
- BackgroundMode desktop_background_mode_;
-
// Owned by aura::RootWindow, cached here for type safety.
internal::RootWindowLayoutManager* root_window_layout_;

Powered by Google App Engine
This is Rietveld 408576698