| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 class TouchTransformerController; | 155 class TouchTransformerController; |
| 156 class TouchObserverHUD; | 156 class TouchObserverHUD; |
| 157 class UserWallpaperDelegate; | 157 class UserWallpaperDelegate; |
| 158 class VirtualKeyboardController; | 158 class VirtualKeyboardController; |
| 159 class VideoActivityNotifier; | 159 class VideoActivityNotifier; |
| 160 class VideoDetector; | 160 class VideoDetector; |
| 161 class WebNotificationTray; | 161 class WebNotificationTray; |
| 162 class WindowCycleController; | 162 class WindowCycleController; |
| 163 class WindowPositioner; | 163 class WindowPositioner; |
| 164 class WindowSelectorController; | 164 class WindowSelectorController; |
| 165 class WmShellAura; |
| 165 | 166 |
| 166 namespace shell { | 167 namespace shell { |
| 167 class WindowWatcher; | 168 class WindowWatcher; |
| 168 } | 169 } |
| 169 | 170 |
| 170 namespace test { | 171 namespace test { |
| 171 class ShellTestApi; | 172 class ShellTestApi; |
| 172 } | 173 } |
| 173 | 174 |
| 174 namespace wm { | |
| 175 class WmGlobalsAura; | |
| 176 } | |
| 177 | |
| 178 // Shell is a singleton object that presents the Shell API and implements the | 175 // Shell is a singleton object that presents the Shell API and implements the |
| 179 // RootWindow's delegate interface. | 176 // RootWindow's delegate interface. |
| 180 // | 177 // |
| 181 // Upon creation, the Shell sets itself as the RootWindow's delegate, which | 178 // Upon creation, the Shell sets itself as the RootWindow's delegate, which |
| 182 // takes ownership of the Shell. | 179 // takes ownership of the Shell. |
| 183 class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, | 180 class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, |
| 184 public ui::EventTarget, | 181 public ui::EventTarget, |
| 185 public aura::client::ActivationChangeObserver { | 182 public aura::client::ActivationChangeObserver { |
| 186 public: | 183 public: |
| 187 typedef std::vector<RootWindowController*> RootWindowControllerList; | 184 typedef std::vector<RootWindowController*> RootWindowControllerList; |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 aura::Window* lost_active) override; | 651 aura::Window* lost_active) override; |
| 655 | 652 |
| 656 static Shell* instance_; | 653 static Shell* instance_; |
| 657 | 654 |
| 658 // If set before the Shell is initialized, the mouse cursor will be hidden | 655 // If set before the Shell is initialized, the mouse cursor will be hidden |
| 659 // when the screen is initially created. | 656 // when the screen is initially created. |
| 660 static bool initially_hide_cursor_; | 657 static bool initially_hide_cursor_; |
| 661 | 658 |
| 662 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> | 659 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> |
| 663 scoped_overview_animation_settings_factory_; | 660 scoped_overview_animation_settings_factory_; |
| 664 std::unique_ptr<wm::WmGlobalsAura> wm_globals_; | 661 std::unique_ptr<WmShellAura> wm_shell_; |
| 665 | 662 |
| 666 // When no explicit target display/RootWindow is given, new windows are | 663 // When no explicit target display/RootWindow is given, new windows are |
| 667 // created on |scoped_target_root_window_| , unless NULL in | 664 // created on |scoped_target_root_window_| , unless NULL in |
| 668 // which case they are created on |target_root_window_|. | 665 // which case they are created on |target_root_window_|. |
| 669 // |target_root_window_| never becomes NULL during the session. | 666 // |target_root_window_| never becomes NULL during the session. |
| 670 aura::Window* target_root_window_; | 667 aura::Window* target_root_window_; |
| 671 aura::Window* scoped_target_root_window_; | 668 aura::Window* scoped_target_root_window_; |
| 672 | 669 |
| 673 // The CompoundEventFilter owned by aura::Env object. | 670 // The CompoundEventFilter owned by aura::Env object. |
| 674 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; | 671 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 bool in_mus_ = false; | 805 bool in_mus_ = false; |
| 809 | 806 |
| 810 std::unique_ptr<KeyboardUI> keyboard_ui_; | 807 std::unique_ptr<KeyboardUI> keyboard_ui_; |
| 811 | 808 |
| 812 DISALLOW_COPY_AND_ASSIGN(Shell); | 809 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 813 }; | 810 }; |
| 814 | 811 |
| 815 } // namespace ash | 812 } // namespace ash |
| 816 | 813 |
| 817 #endif // ASH_SHELL_H_ | 814 #endif // ASH_SHELL_H_ |
| OLD | NEW |