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 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 class ShellObserver; | 85 class ShellObserver; |
86 class SystemTray; | 86 class SystemTray; |
87 class SystemTrayDelegate; | 87 class SystemTrayDelegate; |
88 class SystemTrayNotifier; | 88 class SystemTrayNotifier; |
89 class UserActivityDetector; | 89 class UserActivityDetector; |
90 class UserWallpaperDelegate; | 90 class UserWallpaperDelegate; |
91 class VideoDetector; | 91 class VideoDetector; |
92 class WebNotificationTray; | 92 class WebNotificationTray; |
93 class WindowCycleController; | 93 class WindowCycleController; |
94 | 94 |
| 95 namespace message_center { |
| 96 class MessageCenter; |
| 97 } |
| 98 |
95 namespace internal { | 99 namespace internal { |
96 class AcceleratorFilter; | 100 class AcceleratorFilter; |
97 class ActivationController; | 101 class ActivationController; |
98 class AppListController; | 102 class AppListController; |
99 class CaptureController; | 103 class CaptureController; |
100 class DisplayChangeObserverX11; | 104 class DisplayChangeObserverX11; |
101 class DisplayManager; | 105 class DisplayManager; |
102 class DragDropController; | 106 class DragDropController; |
103 class EventClientImpl; | 107 class EventClientImpl; |
104 class EventRewriterEventFilter; | 108 class EventRewriterEventFilter; |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 426 |
423 #if defined(OS_CHROMEOS) | 427 #if defined(OS_CHROMEOS) |
424 chromeos::OutputConfigurator* output_configurator() { | 428 chromeos::OutputConfigurator* output_configurator() { |
425 return output_configurator_.get(); | 429 return output_configurator_.get(); |
426 } | 430 } |
427 internal::OutputConfiguratorAnimation* output_configurator_animation() { | 431 internal::OutputConfiguratorAnimation* output_configurator_animation() { |
428 return output_configurator_animation_.get(); | 432 return output_configurator_animation_.get(); |
429 } | 433 } |
430 #endif // defined(OS_CHROMEOS) | 434 #endif // defined(OS_CHROMEOS) |
431 | 435 |
432 aura::client::StackingClient* stacking_client(); | 436 aura::client::StackingClient* stacking_client(); |
433 | 437 |
434 RootWindowHostFactory* root_window_host_factory() { | 438 RootWindowHostFactory* root_window_host_factory() { |
435 return root_window_host_factory_.get(); | 439 return root_window_host_factory_.get(); |
436 } | 440 } |
| 441 |
| 442 // MessageCenter is a global list of currently displayed notifications. |
| 443 message_center::MessageCenter* message_center(); |
437 | 444 |
438 private: | 445 private: |
439 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 446 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
440 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 447 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
441 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 448 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
442 friend class internal::RootWindowController; | 449 friend class internal::RootWindowController; |
443 friend class test::ShellTestApi; | 450 friend class test::ShellTestApi; |
444 friend class shell::WindowWatcher; | 451 friend class shell::WindowWatcher; |
445 | 452 |
446 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 453 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 #if defined(OS_CHROMEOS) | 577 #if defined(OS_CHROMEOS) |
571 // Controls video output device state. | 578 // Controls video output device state. |
572 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; | 579 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; |
573 scoped_ptr<internal::OutputConfiguratorAnimation> | 580 scoped_ptr<internal::OutputConfiguratorAnimation> |
574 output_configurator_animation_; | 581 output_configurator_animation_; |
575 | 582 |
576 // Receives output change events and udpates the display manager. | 583 // Receives output change events and udpates the display manager. |
577 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; | 584 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; |
578 #endif // defined(OS_CHROMEOS) | 585 #endif // defined(OS_CHROMEOS) |
579 | 586 |
| 587 scoped_ptr<message_center::MessageCenter> message_center_; |
| 588 |
580 CursorManager cursor_manager_; | 589 CursorManager cursor_manager_; |
581 | 590 |
582 ObserverList<ShellObserver> observers_; | 591 ObserverList<ShellObserver> observers_; |
583 | 592 |
584 // Used by ash/shell. | 593 // Used by ash/shell. |
585 content::BrowserContext* browser_context_; | 594 content::BrowserContext* browser_context_; |
586 | 595 |
587 // For testing only: simulate that a modal window is open | 596 // For testing only: simulate that a modal window is open |
588 bool simulate_modal_window_open_for_testing_; | 597 bool simulate_modal_window_open_for_testing_; |
589 | 598 |
590 DISALLOW_COPY_AND_ASSIGN(Shell); | 599 DISALLOW_COPY_AND_ASSIGN(Shell); |
591 }; | 600 }; |
592 | 601 |
593 } // namespace ash | 602 } // namespace ash |
594 | 603 |
595 #endif // ASH_SHELL_H_ | 604 #endif // ASH_SHELL_H_ |
OLD | NEW |