OLD | NEW |
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> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 class NestedDispatcherController; | 66 class NestedDispatcherController; |
67 class PowerButtonController; | 67 class PowerButtonController; |
68 class ScreenAsh; | 68 class ScreenAsh; |
69 class ShellDelegate; | 69 class ShellDelegate; |
70 class ShellObserver; | 70 class ShellObserver; |
71 class SystemTrayDelegate; | 71 class SystemTrayDelegate; |
72 class SystemTray; | 72 class SystemTray; |
73 class UserActivityDetector; | 73 class UserActivityDetector; |
74 class UserWallpaperDelegate; | 74 class UserWallpaperDelegate; |
75 class VideoDetector; | 75 class VideoDetector; |
| 76 class WebNotificationTray; |
76 class WindowCycleController; | 77 class WindowCycleController; |
77 | 78 |
78 namespace internal { | 79 namespace internal { |
79 class AcceleratorFilter; | 80 class AcceleratorFilter; |
80 class ActivationController; | 81 class ActivationController; |
81 class AppListController; | 82 class AppListController; |
82 class DragDropController; | 83 class DragDropController; |
83 class EventClientImpl; | 84 class EventClientImpl; |
84 class FocusCycler; | 85 class FocusCycler; |
85 class KeyRewriterEventFilter; | 86 class KeyRewriterEventFilter; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 return window_cycle_controller_.get(); | 260 return window_cycle_controller_.get(); |
260 } | 261 } |
261 internal::FocusCycler* focus_cycler() { | 262 internal::FocusCycler* focus_cycler() { |
262 return focus_cycler_.get(); | 263 return focus_cycler_.get(); |
263 } | 264 } |
264 internal::MonitorController* monitor_controller() { | 265 internal::MonitorController* monitor_controller() { |
265 return monitor_controller_.get(); | 266 return monitor_controller_.get(); |
266 } | 267 } |
267 | 268 |
268 ShellDelegate* delegate() { return delegate_.get(); } | 269 ShellDelegate* delegate() { return delegate_.get(); } |
269 SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); } | 270 |
270 UserWallpaperDelegate* user_wallpaper_delegate() { | 271 UserWallpaperDelegate* user_wallpaper_delegate() { |
271 return user_wallpaper_delegate_.get(); | 272 return user_wallpaper_delegate_.get(); |
272 } | 273 } |
273 | 274 |
274 HighContrastController* high_contrast_controller() { | 275 HighContrastController* high_contrast_controller() { |
275 return high_contrast_controller_.get(); | 276 return high_contrast_controller_.get(); |
276 } | 277 } |
277 | 278 |
278 internal::MagnificationController* magnification_controller() { | 279 internal::MagnificationController* magnification_controller() { |
279 return magnification_controller_.get(); | 280 return magnification_controller_.get(); |
(...skipping 17 matching lines...) Expand all Loading... |
297 void SetShelfAlignment(ShelfAlignment alignment); | 298 void SetShelfAlignment(ShelfAlignment alignment); |
298 ShelfAlignment GetShelfAlignment(); | 299 ShelfAlignment GetShelfAlignment(); |
299 | 300 |
300 // TODO(sky): don't expose this! | 301 // TODO(sky): don't expose this! |
301 internal::ShelfLayoutManager* shelf() const { return shelf_; } | 302 internal::ShelfLayoutManager* shelf() const { return shelf_; } |
302 | 303 |
303 internal::StatusAreaWidget* status_area_widget() const { | 304 internal::StatusAreaWidget* status_area_widget() const { |
304 return status_area_widget_; | 305 return status_area_widget_; |
305 } | 306 } |
306 | 307 |
307 SystemTray* system_tray() const { return system_tray_.get(); } | 308 // Convenience accessor for members of StatusAreaWidget. |
| 309 // TODO(stevenjb): remove these and move code to StatusAreaWidget instead. |
| 310 SystemTrayDelegate* tray_delegate(); |
| 311 SystemTray* system_tray(); |
308 | 312 |
309 // Returns the size of the grid. | 313 // Returns the size of the grid. |
310 int GetGridSize() const; | 314 int GetGridSize() const; |
311 | 315 |
312 // Returns true if in maximized or fullscreen mode. | 316 // Returns true if in maximized or fullscreen mode. |
313 bool IsInMaximizedMode() const; | 317 bool IsInMaximizedMode() const; |
314 | 318 |
315 static void set_initially_hide_cursor(bool hide) { | 319 static void set_initially_hide_cursor(bool hide) { |
316 initially_hide_cursor_ = hide; | 320 initially_hide_cursor_ = hide; |
317 } | 321 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 381 |
378 std::vector<WindowAndBoundsPair> to_restore_; | 382 std::vector<WindowAndBoundsPair> to_restore_; |
379 | 383 |
380 #if !defined(OS_MACOSX) | 384 #if !defined(OS_MACOSX) |
381 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; | 385 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; |
382 | 386 |
383 scoped_ptr<AcceleratorController> accelerator_controller_; | 387 scoped_ptr<AcceleratorController> accelerator_controller_; |
384 #endif // !defined(OS_MACOSX) | 388 #endif // !defined(OS_MACOSX) |
385 | 389 |
386 scoped_ptr<ShellDelegate> delegate_; | 390 scoped_ptr<ShellDelegate> delegate_; |
387 scoped_ptr<SystemTrayDelegate> tray_delegate_; | |
388 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; | 391 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; |
389 | 392 |
390 scoped_ptr<Launcher> launcher_; | 393 scoped_ptr<Launcher> launcher_; |
391 | 394 |
392 scoped_ptr<internal::AppListController> app_list_controller_; | 395 scoped_ptr<internal::AppListController> app_list_controller_; |
393 | 396 |
394 scoped_ptr<internal::ShellContextMenu> shell_context_menu_; | 397 scoped_ptr<internal::ShellContextMenu> shell_context_menu_; |
395 scoped_ptr<internal::StackingController> stacking_controller_; | 398 scoped_ptr<internal::StackingController> stacking_controller_; |
396 scoped_ptr<internal::ActivationController> activation_controller_; | 399 scoped_ptr<internal::ActivationController> activation_controller_; |
397 scoped_ptr<internal::WindowModalityController> window_modality_controller_; | 400 scoped_ptr<internal::WindowModalityController> window_modality_controller_; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 internal::ShelfLayoutManager* shelf_; | 455 internal::ShelfLayoutManager* shelf_; |
453 | 456 |
454 // Manages layout of panels. Owned by PanelContainer. | 457 // Manages layout of panels. Owned by PanelContainer. |
455 internal::PanelLayoutManager* panel_layout_manager_; | 458 internal::PanelLayoutManager* panel_layout_manager_; |
456 | 459 |
457 ObserverList<ShellObserver> observers_; | 460 ObserverList<ShellObserver> observers_; |
458 | 461 |
459 // Owned by aura::RootWindow, cached here for type safety. | 462 // Owned by aura::RootWindow, cached here for type safety. |
460 internal::RootWindowLayoutManager* root_window_layout_; | 463 internal::RootWindowLayoutManager* root_window_layout_; |
461 | 464 |
462 // Widget containing system tray. | 465 // Widget containing system tray and web notification tray. |
463 internal::StatusAreaWidget* status_area_widget_; | 466 internal::StatusAreaWidget* status_area_widget_; |
464 | 467 |
465 // System tray with clock, Wi-Fi signal, etc. | |
466 scoped_ptr<SystemTray> system_tray_; | |
467 | |
468 // Used by ash/shell. | 468 // Used by ash/shell. |
469 content::BrowserContext* browser_context_; | 469 content::BrowserContext* browser_context_; |
470 | 470 |
471 DISALLOW_COPY_AND_ASSIGN(Shell); | 471 DISALLOW_COPY_AND_ASSIGN(Shell); |
472 }; | 472 }; |
473 | 473 |
474 } // namespace ash | 474 } // namespace ash |
475 | 475 |
476 #endif // ASH_SHELL_H_ | 476 #endif // ASH_SHELL_H_ |
OLD | NEW |