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

Side by Side 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: Save user choosed index to local state 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 unified diff | Download patch | Annotate | Revision Log
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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 18
19 class CommandLine; 19 class CommandLine;
20 class SkBitmap;
20 21
21 namespace aura { 22 namespace aura {
22 class EventFilter; 23 class EventFilter;
23 class RootWindow; 24 class RootWindow;
24 class Window; 25 class Window;
25 } 26 }
26 namespace gfx { 27 namespace gfx {
27 class Point; 28 class Point;
28 class Rect; 29 class Rect;
29 } 30 }
30 namespace ui { 31 namespace ui {
31 class Layer; 32 class Layer;
32 } 33 }
33 namespace views { 34 namespace views {
34 class NonClientFrameView; 35 class NonClientFrameView;
35 class Widget; 36 class Widget;
36 } 37 }
37 38
38 namespace ash { 39 namespace ash {
39 40
40 class AcceleratorController; 41 class AcceleratorController;
41 class AudioController; 42 class AudioController;
42 class BrightnessController; 43 class BrightnessController;
44 class DesktopBackgroundController;
43 class Launcher; 45 class Launcher;
44 class NestedDispatcherController; 46 class NestedDispatcherController;
45 class PowerButtonController; 47 class PowerButtonController;
46 class PowerStatusController; 48 class PowerStatusController;
47 class ShellDelegate; 49 class ShellDelegate;
48 class SystemTrayDelegate; 50 class SystemTrayDelegate;
49 class SystemTray; 51 class SystemTray;
50 class VideoDetector; 52 class VideoDetector;
51 class WindowCycleController; 53 class WindowCycleController;
52 54
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void AddRootWindowEventFilter(aura::EventFilter* filter); 140 void AddRootWindowEventFilter(aura::EventFilter* filter);
139 void RemoveRootWindowEventFilter(aura::EventFilter* filter); 141 void RemoveRootWindowEventFilter(aura::EventFilter* filter);
140 size_t GetRootWindowEventFilterCount() const; 142 size_t GetRootWindowEventFilterCount() const;
141 143
142 // Shows the background menu over |widget|. 144 // Shows the background menu over |widget|.
143 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); 145 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location);
144 146
145 // Toggles app list. 147 // Toggles app list.
146 void ToggleAppList(); 148 void ToggleAppList();
147 149
150 // Sets the desktop background wallpaper.
151 void SetDesktopBackgroundWallpaper(const SkBitmap& wallpaper);
152
148 // Sets the desktop background mode. 153 // Sets the desktop background mode.
149 void SetDesktopBackgroundMode(BackgroundMode mode); 154 void SetDesktopBackgroundMode(BackgroundMode mode);
150 155
151 // Returns true if the screen is locked. 156 // Returns true if the screen is locked.
152 bool IsScreenLocked() const; 157 bool IsScreenLocked() const;
153 158
154 // Returns true if a modal dialog window is currently open. 159 // Returns true if a modal dialog window is currently open.
155 bool IsModalWindowOpen() const; 160 bool IsModalWindowOpen() const;
156 161
157 // See enum WindowMode for details. 162 // See enum WindowMode for details.
(...skipping 19 matching lines...) Expand all
177 182
178 internal::RootWindowEventFilter* root_filter() { 183 internal::RootWindowEventFilter* root_filter() {
179 return root_filter_; 184 return root_filter_;
180 } 185 }
181 internal::TooltipController* tooltip_controller() { 186 internal::TooltipController* tooltip_controller() {
182 return tooltip_controller_.get(); 187 return tooltip_controller_.get();
183 } 188 }
184 internal::PartialScreenshotEventFilter* partial_screenshot_filter() { 189 internal::PartialScreenshotEventFilter* partial_screenshot_filter() {
185 return partial_screenshot_filter_.get(); 190 return partial_screenshot_filter_.get();
186 } 191 }
192 DesktopBackgroundController* desktop_background_controller() {
193 return desktop_background_controller_.get();
194 }
187 PowerButtonController* power_button_controller() { 195 PowerButtonController* power_button_controller() {
188 return power_button_controller_.get(); 196 return power_button_controller_.get();
189 } 197 }
190 VideoDetector* video_detector() { 198 VideoDetector* video_detector() {
191 return video_detector_.get(); 199 return video_detector_.get();
192 } 200 }
193 WindowCycleController* window_cycle_controller() { 201 WindowCycleController* window_cycle_controller() {
194 return window_cycle_controller_.get(); 202 return window_cycle_controller_.get();
195 } 203 }
196 AudioController* audio_controller() const { 204 AudioController* audio_controller() const {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 scoped_ptr<internal::AppList> app_list_; 290 scoped_ptr<internal::AppList> app_list_;
283 291
284 scoped_ptr<internal::StackingController> stacking_controller_; 292 scoped_ptr<internal::StackingController> stacking_controller_;
285 scoped_ptr<internal::ActivationController> activation_controller_; 293 scoped_ptr<internal::ActivationController> activation_controller_;
286 scoped_ptr<internal::WindowModalityController> window_modality_controller_; 294 scoped_ptr<internal::WindowModalityController> window_modality_controller_;
287 scoped_ptr<internal::DragDropController> drag_drop_controller_; 295 scoped_ptr<internal::DragDropController> drag_drop_controller_;
288 scoped_ptr<internal::WorkspaceController> workspace_controller_; 296 scoped_ptr<internal::WorkspaceController> workspace_controller_;
289 scoped_ptr<internal::ShadowController> shadow_controller_; 297 scoped_ptr<internal::ShadowController> shadow_controller_;
290 scoped_ptr<internal::TooltipController> tooltip_controller_; 298 scoped_ptr<internal::TooltipController> tooltip_controller_;
291 scoped_ptr<internal::VisibilityController> visibility_controller_; 299 scoped_ptr<internal::VisibilityController> visibility_controller_;
300 scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
292 scoped_ptr<PowerButtonController> power_button_controller_; 301 scoped_ptr<PowerButtonController> power_button_controller_;
293 scoped_ptr<VideoDetector> video_detector_; 302 scoped_ptr<VideoDetector> video_detector_;
294 scoped_ptr<WindowCycleController> window_cycle_controller_; 303 scoped_ptr<WindowCycleController> window_cycle_controller_;
295 scoped_ptr<internal::FocusCycler> focus_cycler_; 304 scoped_ptr<internal::FocusCycler> focus_cycler_;
296 305
297 // These controllers are not owned by the shell. 306 // These controllers are not owned by the shell.
298 AudioController* audio_controller_; 307 AudioController* audio_controller_;
299 BrightnessController* brightness_controller_; 308 BrightnessController* brightness_controller_;
300 PowerStatusController* power_status_controller_; 309 PowerStatusController* power_status_controller_;
301 310
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Offset between the corner of the status area and the corner of the screen 344 // Offset between the corner of the status area and the corner of the screen
336 // when in the compact window mode. 345 // when in the compact window mode.
337 gfx::Size compact_status_area_offset_; 346 gfx::Size compact_status_area_offset_;
338 347
339 DISALLOW_COPY_AND_ASSIGN(Shell); 348 DISALLOW_COPY_AND_ASSIGN(Shell);
340 }; 349 };
341 350
342 } // namespace ash 351 } // namespace ash
343 352
344 #endif // ASH_SHELL_H_ 353 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698