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

Side by Side Diff: ash/shell.h

Issue 11093050: Move shelf/launcher/status_area_widget/panel_layout_manager to RootWindowController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 class ActivationController; 82 class ActivationController;
83 class AppListController; 83 class AppListController;
84 class CaptureController; 84 class CaptureController;
85 class DragDropController; 85 class DragDropController;
86 class EventRewriterEventFilter; 86 class EventRewriterEventFilter;
87 class FocusCycler; 87 class FocusCycler;
88 class MagnificationController; 88 class MagnificationController;
89 class MouseCursorEventFilter; 89 class MouseCursorEventFilter;
90 class OutputConfiguratorAnimation; 90 class OutputConfiguratorAnimation;
91 class OverlayEventFilter; 91 class OverlayEventFilter;
92 class PanelLayoutManager;
93 class ResizeShadowController; 92 class ResizeShadowController;
94 class RootWindowController; 93 class RootWindowController;
95 class RootWindowLayoutManager; 94 class RootWindowLayoutManager;
96 class ScreenPositionController; 95 class ScreenPositionController;
97 class ShadowController; 96 class ShadowController;
98 class ShelfLayoutManager; 97 class ShelfLayoutManager;
99 class ShellContextMenu; 98 class ShellContextMenu;
100 class SlowAnimationEventFilter; 99 class SlowAnimationEventFilter;
101 class StackingController; 100 class StackingController;
102 class StatusAreaWidget; 101 class StatusAreaWidget;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // Returns all root windows. 172 // Returns all root windows.
174 static RootWindowList GetAllRootWindows(); 173 static RootWindowList GetAllRootWindows();
175 174
176 static aura::Window* GetContainer(aura::RootWindow* root_window, 175 static aura::Window* GetContainer(aura::RootWindow* root_window,
177 int container_id); 176 int container_id);
178 177
179 // Returns the list of containers that match |container_id| in 178 // Returns the list of containers that match |container_id| in
180 // all root windows. 179 // all root windows.
181 static std::vector<aura::Window*> GetAllContainers(int container_id); 180 static std::vector<aura::Window*> GetAllContainers(int container_id);
182 181
182 // True if multiple launchers is enabled.
183 static bool IsMultipleLaunchersEnabled();
184
183 void set_active_root_window(aura::RootWindow* active_root_window) { 185 void set_active_root_window(aura::RootWindow* active_root_window) {
184 active_root_window_ = active_root_window; 186 active_root_window_ = active_root_window;
185 } 187 }
186 188
187 // Adds or removes |filter| from the aura::Env's pre-target event-handler 189 // Adds or removes |filter| from the aura::Env's pre-target event-handler
188 // list. 190 // list.
189 void AddEnvEventFilter(aura::EventFilter* filter); 191 void AddEnvEventFilter(aura::EventFilter* filter);
190 void RemoveEnvEventFilter(aura::EventFilter* filter); 192 void RemoveEnvEventFilter(aura::EventFilter* filter);
191 193
192 // Shows the background menu over |widget|. 194 // Shows the background menu over |widget|.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 299 }
298 300
299 HighContrastController* high_contrast_controller() { 301 HighContrastController* high_contrast_controller() {
300 return high_contrast_controller_.get(); 302 return high_contrast_controller_.get();
301 } 303 }
302 304
303 internal::MagnificationController* magnification_controller() { 305 internal::MagnificationController* magnification_controller() {
304 return magnification_controller_.get(); 306 return magnification_controller_.get();
305 } 307 }
306 308
307 Launcher* launcher() { return launcher_.get(); } 309 Launcher* launcher();
308 310
309 const ScreenAsh* screen() { return screen_; } 311 const ScreenAsh* screen() { return screen_; }
310 312
311 // Force the shelf to query for it's current visibility state. 313 // Force the shelf to query for it's current visibility state.
312 void UpdateShelfVisibility(); 314 void UpdateShelfVisibility();
313 315
314 // Sets/gets the shelf auto-hide behavior. 316 // Sets/gets the shelf auto-hide behavior.
315 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); 317 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior);
316 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; 318 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const;
317 319
318 void SetShelfAlignment(ShelfAlignment alignment); 320 void SetShelfAlignment(ShelfAlignment alignment);
319 ShelfAlignment GetShelfAlignment(); 321 ShelfAlignment GetShelfAlignment();
320 322
321 // Dims or undims the screen. 323 // Dims or undims the screen.
322 void SetDimming(bool should_dim); 324 void SetDimming(bool should_dim);
323 325
324 // Creates modal background, which is a partially-opaque fullscreen 326 // Creates modal background, which is a partially-opaque fullscreen
325 // window, on all displays. 327 // window, on all displays.
326 void CreateModalBackground(); 328 void CreateModalBackground();
327 329
328 // Called when a modal window is removed. It will activate 330 // Called when a modal window is removed. It will activate
329 // another modal window if any, or remove modal screens 331 // another modal window if any, or remove modal screens
330 // on all displays. 332 // on all displays.
331 void OnModalWindowRemoved(aura::Window* removed); 333 void OnModalWindowRemoved(aura::Window* removed);
332 334
333 // TODO(sky): don't expose this! 335 // TODO(sky): don't expose this!
334 internal::ShelfLayoutManager* shelf() const { return shelf_; } 336 internal::ShelfLayoutManager* shelf() const;
335 337
336 internal::StatusAreaWidget* status_area_widget() const { 338 internal::StatusAreaWidget* status_area_widget() const;
337 return status_area_widget_;
338 }
oshima 2012/10/10 22:39:19 Methods whose body have been moved to RootWindowCo
339 339
340 // Convenience accessor for members of StatusAreaWidget. 340 // Convenience accessor for members of StatusAreaWidget.
341 SystemTrayDelegate* tray_delegate(); 341 SystemTrayDelegate* tray_delegate();
342 SystemTray* system_tray(); 342 SystemTray* system_tray();
343 343
344 static void set_initially_hide_cursor(bool hide) { 344 static void set_initially_hide_cursor(bool hide) {
345 initially_hide_cursor_ = hide; 345 initially_hide_cursor_ = hide;
346 } 346 }
347 347
348 internal::ResizeShadowController* resize_shadow_controller() { 348 internal::ResizeShadowController* resize_shadow_controller() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 #if !defined(OS_MACOSX) 422 #if !defined(OS_MACOSX)
423 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; 423 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
424 424
425 scoped_ptr<AcceleratorController> accelerator_controller_; 425 scoped_ptr<AcceleratorController> accelerator_controller_;
426 #endif // !defined(OS_MACOSX) 426 #endif // !defined(OS_MACOSX)
427 427
428 scoped_ptr<ShellDelegate> delegate_; 428 scoped_ptr<ShellDelegate> delegate_;
429 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; 429 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
430 scoped_ptr<CapsLockDelegate> caps_lock_delegate_; 430 scoped_ptr<CapsLockDelegate> caps_lock_delegate_;
431 431
432 scoped_ptr<Launcher> launcher_;
433
434 scoped_ptr<internal::AppListController> app_list_controller_; 432 scoped_ptr<internal::AppListController> app_list_controller_;
435 433
436 scoped_ptr<internal::ShellContextMenu> shell_context_menu_; 434 scoped_ptr<internal::ShellContextMenu> shell_context_menu_;
437 scoped_ptr<internal::StackingController> stacking_controller_; 435 scoped_ptr<internal::StackingController> stacking_controller_;
438 scoped_ptr<internal::ActivationController> activation_controller_; 436 scoped_ptr<internal::ActivationController> activation_controller_;
439 scoped_ptr<internal::CaptureController> capture_controller_; 437 scoped_ptr<internal::CaptureController> capture_controller_;
440 scoped_ptr<internal::WindowModalityController> window_modality_controller_; 438 scoped_ptr<internal::WindowModalityController> window_modality_controller_;
441 scoped_ptr<internal::DragDropController> drag_drop_controller_; 439 scoped_ptr<internal::DragDropController> drag_drop_controller_;
442 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; 440 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_;
443 scoped_ptr<internal::ShadowController> shadow_controller_; 441 scoped_ptr<internal::ShadowController> shadow_controller_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 480
483 #if defined(OS_CHROMEOS) 481 #if defined(OS_CHROMEOS)
484 // Controls video output device state. 482 // Controls video output device state.
485 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 483 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
486 scoped_ptr<internal::OutputConfiguratorAnimation> 484 scoped_ptr<internal::OutputConfiguratorAnimation>
487 output_configurator_animation_; 485 output_configurator_animation_;
488 #endif // defined(OS_CHROMEOS) 486 #endif // defined(OS_CHROMEOS)
489 487
490 CursorManager cursor_manager_; 488 CursorManager cursor_manager_;
491 489
492 // The shelf for managing the launcher and the status widget in non-compact
493 // mode. Shell does not own the shelf. Instead, it is owned by container of
494 // the status area.
495 internal::ShelfLayoutManager* shelf_;
496
497 // Manages layout of panels. Owned by PanelContainer.
498 internal::PanelLayoutManager* panel_layout_manager_;
499
500 ObserverList<ShellObserver> observers_; 490 ObserverList<ShellObserver> observers_;
501 491
502 // Widget containing system tray.
503 internal::StatusAreaWidget* status_area_widget_;
504
505 // Used by ash/shell. 492 // Used by ash/shell.
506 content::BrowserContext* browser_context_; 493 content::BrowserContext* browser_context_;
507 494
508 DISALLOW_COPY_AND_ASSIGN(Shell); 495 DISALLOW_COPY_AND_ASSIGN(Shell);
509 }; 496 };
510 497
511 } // namespace ash 498 } // namespace ash
512 499
513 #endif // ASH_SHELL_H_ 500 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698