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> |
11 | 11 |
12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
13 #include "ash/common/shelf/shelf_types.h" | 13 #include "ash/common/shelf/shelf_types.h" |
14 #include "ash/common/wm_shell_common.h" | |
15 #include "ash/metrics/user_metrics_recorder.h" | 14 #include "ash/metrics/user_metrics_recorder.h" |
16 #include "ash/wm/cursor_manager_chromeos.h" | 15 #include "ash/wm/cursor_manager_chromeos.h" |
17 #include "ash/wm/system_modal_container_event_filter_delegate.h" | 16 #include "ash/wm/system_modal_container_event_filter_delegate.h" |
18 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
19 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
20 #include "base/macros.h" | 19 #include "base/macros.h" |
21 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
22 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
23 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
24 #include "ui/base/ui_base_types.h" | 23 #include "ui/base/ui_base_types.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 class HighContrastController; | 103 class HighContrastController; |
105 class KeyboardUMAEventFilter; | 104 class KeyboardUMAEventFilter; |
106 class LinkHandlerModelFactory; | 105 class LinkHandlerModelFactory; |
107 class LocaleNotificationController; | 106 class LocaleNotificationController; |
108 class LockStateController; | 107 class LockStateController; |
109 enum class LoginStatus; | 108 enum class LoginStatus; |
110 class MagnificationController; | 109 class MagnificationController; |
111 class MaximizeModeController; | 110 class MaximizeModeController; |
112 class MaximizeModeWindowManager; | 111 class MaximizeModeWindowManager; |
113 class MouseCursorEventFilter; | 112 class MouseCursorEventFilter; |
114 class MruWindowTracker; | |
115 class NewWindowDelegate; | 113 class NewWindowDelegate; |
116 class OverlayEventFilter; | 114 class OverlayEventFilter; |
117 class PartialMagnificationController; | 115 class PartialMagnificationController; |
118 class PointerWatcherDelegate; | 116 class PointerWatcherDelegate; |
119 class PowerButtonController; | 117 class PowerButtonController; |
120 class PowerEventObserver; | 118 class PowerEventObserver; |
121 class ProjectingObserver; | 119 class ProjectingObserver; |
122 class ResizeShadowController; | 120 class ResizeShadowController; |
123 class ResolutionNotificationController; | 121 class ResolutionNotificationController; |
124 class RootWindowController; | 122 class RootWindowController; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 void set_link_handler_model_factory( | 339 void set_link_handler_model_factory( |
342 LinkHandlerModelFactory* link_handler_model_factory) { | 340 LinkHandlerModelFactory* link_handler_model_factory) { |
343 link_handler_model_factory_ = link_handler_model_factory; | 341 link_handler_model_factory_ = link_handler_model_factory; |
344 } | 342 } |
345 PowerButtonController* power_button_controller() { | 343 PowerButtonController* power_button_controller() { |
346 return power_button_controller_.get(); | 344 return power_button_controller_.get(); |
347 } | 345 } |
348 LockStateController* lock_state_controller() { | 346 LockStateController* lock_state_controller() { |
349 return lock_state_controller_.get(); | 347 return lock_state_controller_.get(); |
350 } | 348 } |
351 MruWindowTracker* mru_window_tracker() { | |
352 return wm_shell_common_->mru_window_tracker(); | |
353 } | |
354 VideoDetector* video_detector() { return video_detector_.get(); } | 349 VideoDetector* video_detector() { return video_detector_.get(); } |
355 WindowCycleController* window_cycle_controller() { | 350 WindowCycleController* window_cycle_controller() { |
356 return window_cycle_controller_.get(); | 351 return window_cycle_controller_.get(); |
357 } | 352 } |
358 WindowTreeHostManager* window_tree_host_manager() { | 353 WindowTreeHostManager* window_tree_host_manager() { |
359 return window_tree_host_manager_.get(); | 354 return window_tree_host_manager_.get(); |
360 } | 355 } |
361 #if defined(OS_CHROMEOS) | 356 #if defined(OS_CHROMEOS) |
362 PowerEventObserver* power_event_observer() { | 357 PowerEventObserver* power_event_observer() { |
363 return power_event_observer_.get(); | 358 return power_event_observer_.get(); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 aura::Window* lost_active) override; | 581 aura::Window* lost_active) override; |
587 | 582 |
588 static Shell* instance_; | 583 static Shell* instance_; |
589 | 584 |
590 // If set before the Shell is initialized, the mouse cursor will be hidden | 585 // If set before the Shell is initialized, the mouse cursor will be hidden |
591 // when the screen is initially created. | 586 // when the screen is initially created. |
592 static bool initially_hide_cursor_; | 587 static bool initially_hide_cursor_; |
593 | 588 |
594 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> | 589 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> |
595 scoped_overview_animation_settings_factory_; | 590 scoped_overview_animation_settings_factory_; |
596 std::unique_ptr<WmShellCommon> wm_shell_common_; | |
597 std::unique_ptr<WmShellAura> wm_shell_; | 591 std::unique_ptr<WmShellAura> wm_shell_; |
598 | 592 |
599 // When no explicit target display/RootWindow is given, new windows are | 593 // When no explicit target display/RootWindow is given, new windows are |
600 // created on |scoped_target_root_window_| , unless NULL in | 594 // created on |scoped_target_root_window_| , unless NULL in |
601 // which case they are created on |target_root_window_|. | 595 // which case they are created on |target_root_window_|. |
602 // |target_root_window_| never becomes NULL during the session. | 596 // |target_root_window_| never becomes NULL during the session. |
603 aura::Window* target_root_window_; | 597 aura::Window* target_root_window_; |
604 aura::Window* scoped_target_root_window_; | 598 aura::Window* scoped_target_root_window_; |
605 | 599 |
606 // The CompoundEventFilter owned by aura::Env object. | 600 // The CompoundEventFilter owned by aura::Env object. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 base::SequencedWorkerPool* blocking_pool_; | 722 base::SequencedWorkerPool* blocking_pool_; |
729 | 723 |
730 bool in_mus_ = false; | 724 bool in_mus_ = false; |
731 | 725 |
732 DISALLOW_COPY_AND_ASSIGN(Shell); | 726 DISALLOW_COPY_AND_ASSIGN(Shell); |
733 }; | 727 }; |
734 | 728 |
735 } // namespace ash | 729 } // namespace ash |
736 | 730 |
737 #endif // ASH_SHELL_H_ | 731 #endif // ASH_SHELL_H_ |
OLD | NEW |