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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 return window_cycle_controller_.get(); | 263 return window_cycle_controller_.get(); |
264 } | 264 } |
265 internal::FocusCycler* focus_cycler() { | 265 internal::FocusCycler* focus_cycler() { |
266 return focus_cycler_.get(); | 266 return focus_cycler_.get(); |
267 } | 267 } |
268 internal::MonitorController* monitor_controller() { | 268 internal::MonitorController* monitor_controller() { |
269 return monitor_controller_.get(); | 269 return monitor_controller_.get(); |
270 } | 270 } |
271 | 271 |
272 ShellDelegate* delegate() { return delegate_.get(); } | 272 ShellDelegate* delegate() { return delegate_.get(); } |
273 SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); } | 273 |
274 UserWallpaperDelegate* user_wallpaper_delegate() { | 274 UserWallpaperDelegate* user_wallpaper_delegate() { |
275 return user_wallpaper_delegate_.get(); | 275 return user_wallpaper_delegate_.get(); |
276 } | 276 } |
277 | 277 |
278 HighContrastController* high_contrast_controller() { | 278 HighContrastController* high_contrast_controller() { |
279 return high_contrast_controller_.get(); | 279 return high_contrast_controller_.get(); |
280 } | 280 } |
281 | 281 |
282 internal::MagnificationController* magnification_controller() { | 282 internal::MagnificationController* magnification_controller() { |
283 return magnification_controller_.get(); | 283 return magnification_controller_.get(); |
(...skipping 17 matching lines...) Expand all Loading... |
301 void SetShelfAlignment(ShelfAlignment alignment); | 301 void SetShelfAlignment(ShelfAlignment alignment); |
302 ShelfAlignment GetShelfAlignment(); | 302 ShelfAlignment GetShelfAlignment(); |
303 | 303 |
304 // TODO(sky): don't expose this! | 304 // TODO(sky): don't expose this! |
305 internal::ShelfLayoutManager* shelf() const { return shelf_; } | 305 internal::ShelfLayoutManager* shelf() const { return shelf_; } |
306 | 306 |
307 internal::StatusAreaWidget* status_area_widget() const { | 307 internal::StatusAreaWidget* status_area_widget() const { |
308 return status_area_widget_; | 308 return status_area_widget_; |
309 } | 309 } |
310 | 310 |
311 SystemTray* system_tray() const { return system_tray_.get(); } | 311 // Convenience accessor for members of StatusAreaWidget. |
| 312 SystemTrayDelegate* tray_delegate(); |
| 313 SystemTray* system_tray(); |
312 | 314 |
313 // Returns the size of the grid. | 315 // Returns the size of the grid. |
314 int GetGridSize() const; | 316 int GetGridSize() const; |
315 | 317 |
316 // Returns true if in maximized or fullscreen mode. | 318 // Returns true if in maximized or fullscreen mode. |
317 bool IsInMaximizedMode() const; | 319 bool IsInMaximizedMode() const; |
318 | 320 |
319 static void set_initially_hide_cursor(bool hide) { | 321 static void set_initially_hide_cursor(bool hide) { |
320 initially_hide_cursor_ = hide; | 322 initially_hide_cursor_ = hide; |
321 } | 323 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 383 |
382 std::vector<WindowAndBoundsPair> to_restore_; | 384 std::vector<WindowAndBoundsPair> to_restore_; |
383 | 385 |
384 #if !defined(OS_MACOSX) | 386 #if !defined(OS_MACOSX) |
385 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; | 387 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; |
386 | 388 |
387 scoped_ptr<AcceleratorController> accelerator_controller_; | 389 scoped_ptr<AcceleratorController> accelerator_controller_; |
388 #endif // !defined(OS_MACOSX) | 390 #endif // !defined(OS_MACOSX) |
389 | 391 |
390 scoped_ptr<ShellDelegate> delegate_; | 392 scoped_ptr<ShellDelegate> delegate_; |
391 scoped_ptr<SystemTrayDelegate> tray_delegate_; | |
392 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; | 393 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; |
393 | 394 |
394 scoped_ptr<Launcher> launcher_; | 395 scoped_ptr<Launcher> launcher_; |
395 | 396 |
396 scoped_ptr<internal::AppListController> app_list_controller_; | 397 scoped_ptr<internal::AppListController> app_list_controller_; |
397 | 398 |
398 scoped_ptr<internal::ShellContextMenu> shell_context_menu_; | 399 scoped_ptr<internal::ShellContextMenu> shell_context_menu_; |
399 scoped_ptr<internal::StackingController> stacking_controller_; | 400 scoped_ptr<internal::StackingController> stacking_controller_; |
400 scoped_ptr<internal::ActivationController> activation_controller_; | 401 scoped_ptr<internal::ActivationController> activation_controller_; |
401 scoped_ptr<internal::CaptureController> capture_controller_; | 402 scoped_ptr<internal::CaptureController> capture_controller_; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 internal::PanelLayoutManager* panel_layout_manager_; | 461 internal::PanelLayoutManager* panel_layout_manager_; |
461 | 462 |
462 ObserverList<ShellObserver> observers_; | 463 ObserverList<ShellObserver> observers_; |
463 | 464 |
464 // Owned by aura::RootWindow, cached here for type safety. | 465 // Owned by aura::RootWindow, cached here for type safety. |
465 internal::RootWindowLayoutManager* root_window_layout_; | 466 internal::RootWindowLayoutManager* root_window_layout_; |
466 | 467 |
467 // Widget containing system tray. | 468 // Widget containing system tray. |
468 internal::StatusAreaWidget* status_area_widget_; | 469 internal::StatusAreaWidget* status_area_widget_; |
469 | 470 |
470 // System tray with clock, Wi-Fi signal, etc. | |
471 scoped_ptr<SystemTray> system_tray_; | |
472 | |
473 // Used by ash/shell. | 471 // Used by ash/shell. |
474 content::BrowserContext* browser_context_; | 472 content::BrowserContext* browser_context_; |
475 | 473 |
476 DISALLOW_COPY_AND_ASSIGN(Shell); | 474 DISALLOW_COPY_AND_ASSIGN(Shell); |
477 }; | 475 }; |
478 | 476 |
479 } // namespace ash | 477 } // namespace ash |
480 | 478 |
481 #endif // ASH_SHELL_H_ | 479 #endif // ASH_SHELL_H_ |
OLD | NEW |