| 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/shell_common.h" |
| 14 #include "ash/metrics/user_metrics_recorder.h" | 15 #include "ash/metrics/user_metrics_recorder.h" |
| 15 #include "ash/system/user/login_status.h" | 16 #include "ash/system/user/login_status.h" |
| 16 #include "ash/wm/cursor_manager_chromeos.h" | 17 #include "ash/wm/cursor_manager_chromeos.h" |
| 17 #include "ash/wm/system_modal_container_event_filter_delegate.h" | 18 #include "ash/wm/system_modal_container_event_filter_delegate.h" |
| 18 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
| 19 #include "base/gtest_prod_util.h" | 20 #include "base/gtest_prod_util.h" |
| 20 #include "base/macros.h" | 21 #include "base/macros.h" |
| 21 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
| 22 #include "base/observer_list.h" | 23 #include "base/observer_list.h" |
| 23 #include "ui/aura/window.h" | 24 #include "ui/aura/window.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 class ScreenAsh; | 133 class ScreenAsh; |
| 133 class ScreenOrientationController; | 134 class ScreenOrientationController; |
| 134 class ScreenshotController; | 135 class ScreenshotController; |
| 135 class ScreenPositionController; | 136 class ScreenPositionController; |
| 136 class SessionStateDelegate; | 137 class SessionStateDelegate; |
| 137 class Shelf; | 138 class Shelf; |
| 138 class ShelfDelegate; | 139 class ShelfDelegate; |
| 139 class ShelfItemDelegateManager; | 140 class ShelfItemDelegateManager; |
| 140 class ShelfModel; | 141 class ShelfModel; |
| 141 class ShelfWindowWatcher; | 142 class ShelfWindowWatcher; |
| 143 class ShellCommon; |
| 142 class ShellDelegate; | 144 class ShellDelegate; |
| 143 struct ShellInitParams; | 145 struct ShellInitParams; |
| 144 class ShellObserver; | 146 class ShellObserver; |
| 145 class SlowAnimationEventFilter; | 147 class SlowAnimationEventFilter; |
| 146 class StatusAreaWidget; | 148 class StatusAreaWidget; |
| 147 class StickyKeysController; | 149 class StickyKeysController; |
| 148 class SystemGestureEventFilter; | 150 class SystemGestureEventFilter; |
| 149 class SystemModalContainerEventFilter; | 151 class SystemModalContainerEventFilter; |
| 150 class SystemTray; | 152 class SystemTray; |
| 151 class SystemTrayDelegate; | 153 class SystemTrayDelegate; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 LinkHandlerModelFactory* link_handler_model_factory) { | 381 LinkHandlerModelFactory* link_handler_model_factory) { |
| 380 link_handler_model_factory_ = link_handler_model_factory; | 382 link_handler_model_factory_ = link_handler_model_factory; |
| 381 } | 383 } |
| 382 PowerButtonController* power_button_controller() { | 384 PowerButtonController* power_button_controller() { |
| 383 return power_button_controller_.get(); | 385 return power_button_controller_.get(); |
| 384 } | 386 } |
| 385 LockStateController* lock_state_controller() { | 387 LockStateController* lock_state_controller() { |
| 386 return lock_state_controller_.get(); | 388 return lock_state_controller_.get(); |
| 387 } | 389 } |
| 388 MruWindowTracker* mru_window_tracker() { | 390 MruWindowTracker* mru_window_tracker() { |
| 389 return mru_window_tracker_.get(); | 391 return shell_common_->mru_window_tracker(); |
| 390 } | 392 } |
| 391 VideoDetector* video_detector() { | 393 VideoDetector* video_detector() { |
| 392 return video_detector_.get(); | 394 return video_detector_.get(); |
| 393 } | 395 } |
| 394 WindowCycleController* window_cycle_controller() { | 396 WindowCycleController* window_cycle_controller() { |
| 395 return window_cycle_controller_.get(); | 397 return window_cycle_controller_.get(); |
| 396 } | 398 } |
| 397 WindowSelectorController* window_selector_controller() { | 399 WindowSelectorController* window_selector_controller() { |
| 398 return window_selector_controller_.get(); | 400 return window_selector_controller_.get(); |
| 399 } | 401 } |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 aura::Window* lost_active) override; | 653 aura::Window* lost_active) override; |
| 652 | 654 |
| 653 static Shell* instance_; | 655 static Shell* instance_; |
| 654 | 656 |
| 655 // If set before the Shell is initialized, the mouse cursor will be hidden | 657 // If set before the Shell is initialized, the mouse cursor will be hidden |
| 656 // when the screen is initially created. | 658 // when the screen is initially created. |
| 657 static bool initially_hide_cursor_; | 659 static bool initially_hide_cursor_; |
| 658 | 660 |
| 659 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> | 661 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> |
| 660 scoped_overview_animation_settings_factory_; | 662 scoped_overview_animation_settings_factory_; |
| 663 std::unique_ptr<ShellCommon> shell_common_; |
| 661 std::unique_ptr<WmShellAura> wm_shell_; | 664 std::unique_ptr<WmShellAura> wm_shell_; |
| 662 | 665 |
| 663 // When no explicit target display/RootWindow is given, new windows are | 666 // When no explicit target display/RootWindow is given, new windows are |
| 664 // created on |scoped_target_root_window_| , unless NULL in | 667 // created on |scoped_target_root_window_| , unless NULL in |
| 665 // which case they are created on |target_root_window_|. | 668 // which case they are created on |target_root_window_|. |
| 666 // |target_root_window_| never becomes NULL during the session. | 669 // |target_root_window_| never becomes NULL during the session. |
| 667 aura::Window* target_root_window_; | 670 aura::Window* target_root_window_; |
| 668 aura::Window* scoped_target_root_window_; | 671 aura::Window* scoped_target_root_window_; |
| 669 | 672 |
| 670 // The CompoundEventFilter owned by aura::Env object. | 673 // The CompoundEventFilter owned by aura::Env object. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 694 std::unique_ptr<DragDropController> drag_drop_controller_; | 697 std::unique_ptr<DragDropController> drag_drop_controller_; |
| 695 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; | 698 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; |
| 696 std::unique_ptr<::wm::ShadowController> shadow_controller_; | 699 std::unique_ptr<::wm::ShadowController> shadow_controller_; |
| 697 std::unique_ptr<::wm::VisibilityController> visibility_controller_; | 700 std::unique_ptr<::wm::VisibilityController> visibility_controller_; |
| 698 std::unique_ptr<::wm::WindowModalityController> window_modality_controller_; | 701 std::unique_ptr<::wm::WindowModalityController> window_modality_controller_; |
| 699 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_; | 702 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_; |
| 700 std::unique_ptr<DesktopBackgroundController> desktop_background_controller_; | 703 std::unique_ptr<DesktopBackgroundController> desktop_background_controller_; |
| 701 LinkHandlerModelFactory* link_handler_model_factory_; | 704 LinkHandlerModelFactory* link_handler_model_factory_; |
| 702 std::unique_ptr<PowerButtonController> power_button_controller_; | 705 std::unique_ptr<PowerButtonController> power_button_controller_; |
| 703 std::unique_ptr<LockStateController> lock_state_controller_; | 706 std::unique_ptr<LockStateController> lock_state_controller_; |
| 704 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | |
| 705 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_; | 707 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_; |
| 706 std::unique_ptr<VideoDetector> video_detector_; | 708 std::unique_ptr<VideoDetector> video_detector_; |
| 707 std::unique_ptr<WindowCycleController> window_cycle_controller_; | 709 std::unique_ptr<WindowCycleController> window_cycle_controller_; |
| 708 std::unique_ptr<WindowSelectorController> window_selector_controller_; | 710 std::unique_ptr<WindowSelectorController> window_selector_controller_; |
| 709 std::unique_ptr<FocusCycler> focus_cycler_; | 711 std::unique_ptr<FocusCycler> focus_cycler_; |
| 710 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; | 712 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; |
| 711 std::unique_ptr<HighContrastController> high_contrast_controller_; | 713 std::unique_ptr<HighContrastController> high_contrast_controller_; |
| 712 std::unique_ptr<MagnificationController> magnification_controller_; | 714 std::unique_ptr<MagnificationController> magnification_controller_; |
| 713 std::unique_ptr<PartialMagnificationController> | 715 std::unique_ptr<PartialMagnificationController> |
| 714 partial_magnification_controller_; | 716 partial_magnification_controller_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 bool in_mus_ = false; | 807 bool in_mus_ = false; |
| 806 | 808 |
| 807 std::unique_ptr<KeyboardUI> keyboard_ui_; | 809 std::unique_ptr<KeyboardUI> keyboard_ui_; |
| 808 | 810 |
| 809 DISALLOW_COPY_AND_ASSIGN(Shell); | 811 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 810 }; | 812 }; |
| 811 | 813 |
| 812 } // namespace ash | 814 } // namespace ash |
| 813 | 815 |
| 814 #endif // ASH_SHELL_H_ | 816 #endif // ASH_SHELL_H_ |
| OLD | NEW |