| 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 #include "ash/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "ash/common/system/locale/locale_notification_controller.h" | 31 #include "ash/common/system/locale/locale_notification_controller.h" |
| 32 #include "ash/common/system/status_area_widget.h" | 32 #include "ash/common/system/status_area_widget.h" |
| 33 #include "ash/common/system/tray/system_tray_delegate.h" | 33 #include "ash/common/system/tray/system_tray_delegate.h" |
| 34 #include "ash/common/wallpaper/wallpaper_delegate.h" | 34 #include "ash/common/wallpaper/wallpaper_delegate.h" |
| 35 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | 35 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
| 36 #include "ash/common/wm/maximize_mode/maximize_mode_window_manager.h" | 36 #include "ash/common/wm/maximize_mode/maximize_mode_window_manager.h" |
| 37 #include "ash/common/wm/mru_window_tracker.h" | 37 #include "ash/common/wm/mru_window_tracker.h" |
| 38 #include "ash/common/wm/root_window_finder.h" | 38 #include "ash/common/wm/root_window_finder.h" |
| 39 #include "ash/common/wm/window_positioner.h" | 39 #include "ash/common/wm/window_positioner.h" |
| 40 #include "ash/common/wm_shell.h" | 40 #include "ash/common/wm_shell.h" |
| 41 #include "ash/desktop_background/desktop_background_controller.h" | |
| 42 #include "ash/desktop_background/desktop_background_view.h" | |
| 43 #include "ash/display/cursor_window_controller.h" | 41 #include "ash/display/cursor_window_controller.h" |
| 44 #include "ash/display/display_configuration_controller.h" | 42 #include "ash/display/display_configuration_controller.h" |
| 45 #include "ash/display/display_manager.h" | 43 #include "ash/display/display_manager.h" |
| 46 #include "ash/display/event_transformation_handler.h" | 44 #include "ash/display/event_transformation_handler.h" |
| 47 #include "ash/display/mouse_cursor_event_filter.h" | 45 #include "ash/display/mouse_cursor_event_filter.h" |
| 48 #include "ash/display/screen_position_controller.h" | 46 #include "ash/display/screen_position_controller.h" |
| 49 #include "ash/display/window_tree_host_manager.h" | 47 #include "ash/display/window_tree_host_manager.h" |
| 50 #include "ash/drag_drop/drag_drop_controller.h" | 48 #include "ash/drag_drop/drag_drop_controller.h" |
| 51 #include "ash/first_run/first_run_helper_impl.h" | 49 #include "ash/first_run/first_run_helper_impl.h" |
| 52 #include "ash/high_contrast/high_contrast_controller.h" | 50 #include "ash/high_contrast/high_contrast_controller.h" |
| 53 #include "ash/host/ash_window_tree_host_init_params.h" | 51 #include "ash/host/ash_window_tree_host_init_params.h" |
| 54 #include "ash/ime/input_method_event_handler.h" | 52 #include "ash/ime/input_method_event_handler.h" |
| 55 #include "ash/magnifier/magnification_controller.h" | 53 #include "ash/magnifier/magnification_controller.h" |
| 56 #include "ash/magnifier/partial_magnification_controller.h" | 54 #include "ash/magnifier/partial_magnification_controller.h" |
| 57 #include "ash/root_window_controller.h" | 55 #include "ash/root_window_controller.h" |
| 58 #include "ash/shell_init_params.h" | 56 #include "ash/shell_init_params.h" |
| 59 #include "ash/utility/screenshot_controller.h" | 57 #include "ash/utility/screenshot_controller.h" |
| 58 #include "ash/wallpaper/wallpaper_controller.h" |
| 59 #include "ash/wallpaper/wallpaper_view.h" |
| 60 #include "ash/wm/ash_focus_rules.h" | 60 #include "ash/wm/ash_focus_rules.h" |
| 61 #include "ash/wm/ash_native_cursor_manager.h" | 61 #include "ash/wm/ash_native_cursor_manager.h" |
| 62 #include "ash/wm/event_client_impl.h" | 62 #include "ash/wm/event_client_impl.h" |
| 63 #include "ash/wm/immersive_handler_factory_ash.h" | 63 #include "ash/wm/immersive_handler_factory_ash.h" |
| 64 #include "ash/wm/lock_state_controller.h" | 64 #include "ash/wm/lock_state_controller.h" |
| 65 #include "ash/wm/overlay_event_filter.h" | 65 #include "ash/wm/overlay_event_filter.h" |
| 66 #include "ash/wm/overview/scoped_overview_animation_settings_factory_aura.h" | 66 #include "ash/wm/overview/scoped_overview_animation_settings_factory_aura.h" |
| 67 #include "ash/wm/power_button_controller.h" | 67 #include "ash/wm/power_button_controller.h" |
| 68 #include "ash/wm/resize_shadow_controller.h" | 68 #include "ash/wm/resize_shadow_controller.h" |
| 69 #include "ash/wm/screen_pinning_controller.h" | 69 #include "ash/wm/screen_pinning_controller.h" |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 visibility_controller_.reset(); | 630 visibility_controller_.reset(); |
| 631 | 631 |
| 632 power_button_controller_.reset(); | 632 power_button_controller_.reset(); |
| 633 lock_state_controller_.reset(); | 633 lock_state_controller_.reset(); |
| 634 | 634 |
| 635 screen_pinning_controller_.reset(); | 635 screen_pinning_controller_.reset(); |
| 636 | 636 |
| 637 #if defined(OS_CHROMEOS) | 637 #if defined(OS_CHROMEOS) |
| 638 resolution_notification_controller_.reset(); | 638 resolution_notification_controller_.reset(); |
| 639 #endif | 639 #endif |
| 640 desktop_background_controller_.reset(); | 640 wallpaper_controller_.reset(); |
| 641 screenshot_controller_.reset(); | 641 screenshot_controller_.reset(); |
| 642 mouse_cursor_filter_.reset(); | 642 mouse_cursor_filter_.reset(); |
| 643 modality_filter_.reset(); | 643 modality_filter_.reset(); |
| 644 | 644 |
| 645 #if defined(OS_CHROMEOS) | 645 #if defined(OS_CHROMEOS) |
| 646 touch_transformer_controller_.reset(); | 646 touch_transformer_controller_.reset(); |
| 647 stylus_metrics_recorder_.reset(); | 647 stylus_metrics_recorder_.reset(); |
| 648 audio_a11y_controller_.reset(); | 648 audio_a11y_controller_.reset(); |
| 649 #endif // defined(OS_CHROMEOS) | 649 #endif // defined(OS_CHROMEOS) |
| 650 | 650 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 tooltip_controller_.reset(new views::corewm::TooltipController( | 892 tooltip_controller_.reset(new views::corewm::TooltipController( |
| 893 std::unique_ptr<views::corewm::Tooltip>(new views::corewm::TooltipAura))); | 893 std::unique_ptr<views::corewm::Tooltip>(new views::corewm::TooltipAura))); |
| 894 AddPreTargetHandler(tooltip_controller_.get()); | 894 AddPreTargetHandler(tooltip_controller_.get()); |
| 895 | 895 |
| 896 modality_filter_.reset(new SystemModalContainerEventFilter(this)); | 896 modality_filter_.reset(new SystemModalContainerEventFilter(this)); |
| 897 AddPreTargetHandler(modality_filter_.get()); | 897 AddPreTargetHandler(modality_filter_.get()); |
| 898 | 898 |
| 899 event_client_.reset(new EventClientImpl); | 899 event_client_.reset(new EventClientImpl); |
| 900 | 900 |
| 901 // This controller needs to be set before SetupManagedWindowMode. | 901 // This controller needs to be set before SetupManagedWindowMode. |
| 902 desktop_background_controller_.reset( | 902 wallpaper_controller_.reset(new WallpaperController(blocking_pool_)); |
| 903 new DesktopBackgroundController(blocking_pool_)); | |
| 904 | 903 |
| 905 session_state_delegate_.reset( | 904 session_state_delegate_.reset( |
| 906 wm_shell_->delegate()->CreateSessionStateDelegate()); | 905 wm_shell_->delegate()->CreateSessionStateDelegate()); |
| 907 wm_shell_->CreatePointerWatcherAdapter(); | 906 wm_shell_->CreatePointerWatcherAdapter(); |
| 908 | 907 |
| 909 resize_shadow_controller_.reset(new ResizeShadowController()); | 908 resize_shadow_controller_.reset(new ResizeShadowController()); |
| 910 shadow_controller_.reset(new ::wm::ShadowController(activation_client_)); | 909 shadow_controller_.reset(new ::wm::ShadowController(activation_client_)); |
| 911 | 910 |
| 912 wm_shell_->SetSystemTrayDelegate( | 911 wm_shell_->SetSystemTrayDelegate( |
| 913 base::WrapUnique(wm_shell_->delegate()->CreateSystemTrayDelegate())); | 912 base::WrapUnique(wm_shell_->delegate()->CreateSystemTrayDelegate())); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { | 1035 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { |
| 1037 return std::unique_ptr<ui::EventTargetIterator>(); | 1036 return std::unique_ptr<ui::EventTargetIterator>(); |
| 1038 } | 1037 } |
| 1039 | 1038 |
| 1040 ui::EventTargeter* Shell::GetEventTargeter() { | 1039 ui::EventTargeter* Shell::GetEventTargeter() { |
| 1041 NOTREACHED(); | 1040 NOTREACHED(); |
| 1042 return nullptr; | 1041 return nullptr; |
| 1043 } | 1042 } |
| 1044 | 1043 |
| 1045 } // namespace ash | 1044 } // namespace ash |
| OLD | NEW |