| 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 <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 class WindowSelectorController; | 159 class WindowSelectorController; |
| 160 | 160 |
| 161 namespace shell { | 161 namespace shell { |
| 162 class WindowWatcher; | 162 class WindowWatcher; |
| 163 } | 163 } |
| 164 | 164 |
| 165 namespace test { | 165 namespace test { |
| 166 class ShellTestApi; | 166 class ShellTestApi; |
| 167 } | 167 } |
| 168 | 168 |
| 169 namespace wm { |
| 170 class WmGlobalsAura; |
| 171 } |
| 172 |
| 169 // Shell is a singleton object that presents the Shell API and implements the | 173 // Shell is a singleton object that presents the Shell API and implements the |
| 170 // RootWindow's delegate interface. | 174 // RootWindow's delegate interface. |
| 171 // | 175 // |
| 172 // Upon creation, the Shell sets itself as the RootWindow's delegate, which | 176 // Upon creation, the Shell sets itself as the RootWindow's delegate, which |
| 173 // takes ownership of the Shell. | 177 // takes ownership of the Shell. |
| 174 class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, | 178 class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, |
| 175 public ui::EventTarget, | 179 public ui::EventTarget, |
| 176 public aura::client::ActivationChangeObserver { | 180 public aura::client::ActivationChangeObserver { |
| 177 public: | 181 public: |
| 178 typedef std::vector<RootWindowController*> RootWindowControllerList; | 182 typedef std::vector<RootWindowController*> RootWindowControllerList; |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 aura::client::ActivationChangeObserver::ActivationReason reason, | 639 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 636 aura::Window* gained_active, | 640 aura::Window* gained_active, |
| 637 aura::Window* lost_active) override; | 641 aura::Window* lost_active) override; |
| 638 | 642 |
| 639 static Shell* instance_; | 643 static Shell* instance_; |
| 640 | 644 |
| 641 // If set before the Shell is initialized, the mouse cursor will be hidden | 645 // If set before the Shell is initialized, the mouse cursor will be hidden |
| 642 // when the screen is initially created. | 646 // when the screen is initially created. |
| 643 static bool initially_hide_cursor_; | 647 static bool initially_hide_cursor_; |
| 644 | 648 |
| 649 std::unique_ptr<wm::WmGlobalsAura> wm_globals_; |
| 650 |
| 645 // When no explicit target display/RootWindow is given, new windows are | 651 // When no explicit target display/RootWindow is given, new windows are |
| 646 // created on |scoped_target_root_window_| , unless NULL in | 652 // created on |scoped_target_root_window_| , unless NULL in |
| 647 // which case they are created on |target_root_window_|. | 653 // which case they are created on |target_root_window_|. |
| 648 // |target_root_window_| never becomes NULL during the session. | 654 // |target_root_window_| never becomes NULL during the session. |
| 649 aura::Window* target_root_window_; | 655 aura::Window* target_root_window_; |
| 650 aura::Window* scoped_target_root_window_; | 656 aura::Window* scoped_target_root_window_; |
| 651 | 657 |
| 652 // The CompoundEventFilter owned by aura::Env object. | 658 // The CompoundEventFilter owned by aura::Env object. |
| 653 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; | 659 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; |
| 654 | 660 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 std::unique_ptr<FocusCycler> focus_cycler_; | 694 std::unique_ptr<FocusCycler> focus_cycler_; |
| 689 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; | 695 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; |
| 690 std::unique_ptr<HighContrastController> high_contrast_controller_; | 696 std::unique_ptr<HighContrastController> high_contrast_controller_; |
| 691 std::unique_ptr<MagnificationController> magnification_controller_; | 697 std::unique_ptr<MagnificationController> magnification_controller_; |
| 692 std::unique_ptr<PartialMagnificationController> | 698 std::unique_ptr<PartialMagnificationController> |
| 693 partial_magnification_controller_; | 699 partial_magnification_controller_; |
| 694 std::unique_ptr<AutoclickController> autoclick_controller_; | 700 std::unique_ptr<AutoclickController> autoclick_controller_; |
| 695 std::unique_ptr<aura::client::FocusClient> focus_client_; | 701 std::unique_ptr<aura::client::FocusClient> focus_client_; |
| 696 | 702 |
| 697 aura::client::ActivationClient* activation_client_; | 703 aura::client::ActivationClient* activation_client_; |
| 704 |
| 698 std::unique_ptr<PartialScreenshotController> partial_screenshot_controller_; | 705 std::unique_ptr<PartialScreenshotController> partial_screenshot_controller_; |
| 699 | 706 |
| 700 std::unique_ptr<MouseCursorEventFilter> mouse_cursor_filter_; | 707 std::unique_ptr<MouseCursorEventFilter> mouse_cursor_filter_; |
| 701 std::unique_ptr<ScreenPositionController> screen_position_controller_; | 708 std::unique_ptr<ScreenPositionController> screen_position_controller_; |
| 702 std::unique_ptr<SystemModalContainerEventFilter> modality_filter_; | 709 std::unique_ptr<SystemModalContainerEventFilter> modality_filter_; |
| 703 std::unique_ptr<EventClientImpl> event_client_; | 710 std::unique_ptr<EventClientImpl> event_client_; |
| 704 std::unique_ptr<EventTransformationHandler> event_transformation_handler_; | 711 std::unique_ptr<EventTransformationHandler> event_transformation_handler_; |
| 705 | 712 |
| 706 // An event filter that pre-handles key events while the partial | 713 // An event filter that pre-handles key events while the partial |
| 707 // screenshot UI or the keyboard overlay is active. | 714 // screenshot UI or the keyboard overlay is active. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 bool in_mus_ = false; | 790 bool in_mus_ = false; |
| 784 | 791 |
| 785 std::unique_ptr<KeyboardUI> keyboard_ui_; | 792 std::unique_ptr<KeyboardUI> keyboard_ui_; |
| 786 | 793 |
| 787 DISALLOW_COPY_AND_ASSIGN(Shell); | 794 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 788 }; | 795 }; |
| 789 | 796 |
| 790 } // namespace ash | 797 } // namespace ash |
| 791 | 798 |
| 792 #endif // ASH_SHELL_H_ | 799 #endif // ASH_SHELL_H_ |
| OLD | NEW |