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 |
| 11 #include "ash/accelerators/accelerator_controller.h" |
11 #include "ash/accelerators/accelerator_controller_delegate_aura.h" | 12 #include "ash/accelerators/accelerator_controller_delegate_aura.h" |
12 #include "ash/accelerators/accelerator_delegate.h" | 13 #include "ash/accelerators/accelerator_delegate.h" |
13 #include "ash/accelerators/magnifier_key_scroller.h" | 14 #include "ash/accelerators/magnifier_key_scroller.h" |
14 #include "ash/accelerators/spoken_feedback_toggler.h" | 15 #include "ash/accelerators/spoken_feedback_toggler.h" |
15 #include "ash/app_list/app_list_delegate_impl.h" | 16 #include "ash/app_list/app_list_delegate_impl.h" |
| 17 #include "ash/ash_constants.h" |
16 #include "ash/aura/wm_shell_aura.h" | 18 #include "ash/aura/wm_shell_aura.h" |
17 #include "ash/autoclick/autoclick_controller.h" | 19 #include "ash/autoclick/autoclick_controller.h" |
18 #include "ash/common/accelerators/accelerator_controller.h" | |
19 #include "ash/common/ash_constants.h" | |
20 #include "ash/common/frame/custom_frame_view_ash.h" | |
21 #include "ash/common/gpu_support.h" | |
22 #include "ash/common/keyboard/keyboard_ui.h" | |
23 #include "ash/common/login_status.h" | |
24 #include "ash/common/session/session_state_delegate.h" | |
25 #include "ash/common/shelf/app_list_shelf_item_delegate.h" | |
26 #include "ash/common/shelf/shelf_delegate.h" | |
27 #include "ash/common/shelf/shelf_item_delegate.h" | |
28 #include "ash/common/shelf/shelf_model.h" | |
29 #include "ash/common/shelf/wm_shelf.h" | |
30 #include "ash/common/shell_delegate.h" | |
31 #include "ash/common/wallpaper/wallpaper_delegate.h" | |
32 #include "ash/common/wm/container_finder.h" | |
33 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | |
34 #include "ash/common/wm/maximize_mode/maximize_mode_window_manager.h" | |
35 #include "ash/common/wm/mru_window_tracker.h" | |
36 #include "ash/common/wm/root_window_finder.h" | |
37 #include "ash/common/wm/system_modal_container_layout_manager.h" | |
38 #include "ash/common/wm/window_positioner.h" | |
39 #include "ash/common/wm/workspace_controller.h" | |
40 #include "ash/common/wm_shell.h" | |
41 #include "ash/common/wm_window.h" | |
42 #include "ash/display/cursor_window_controller.h" | 20 #include "ash/display/cursor_window_controller.h" |
43 #include "ash/display/display_color_manager_chromeos.h" | 21 #include "ash/display/display_color_manager_chromeos.h" |
44 #include "ash/display/display_configuration_controller.h" | 22 #include "ash/display/display_configuration_controller.h" |
45 #include "ash/display/display_error_observer_chromeos.h" | 23 #include "ash/display/display_error_observer_chromeos.h" |
46 #include "ash/display/event_transformation_handler.h" | 24 #include "ash/display/event_transformation_handler.h" |
47 #include "ash/display/mouse_cursor_event_filter.h" | 25 #include "ash/display/mouse_cursor_event_filter.h" |
48 #include "ash/display/projecting_observer_chromeos.h" | 26 #include "ash/display/projecting_observer_chromeos.h" |
49 #include "ash/display/resolution_notification_controller.h" | 27 #include "ash/display/resolution_notification_controller.h" |
50 #include "ash/display/screen_ash.h" | 28 #include "ash/display/screen_ash.h" |
51 #include "ash/display/screen_orientation_controller_chromeos.h" | 29 #include "ash/display/screen_orientation_controller_chromeos.h" |
52 #include "ash/display/screen_position_controller.h" | 30 #include "ash/display/screen_position_controller.h" |
53 #include "ash/display/shutdown_observer_chromeos.h" | 31 #include "ash/display/shutdown_observer_chromeos.h" |
54 #include "ash/display/window_tree_host_manager.h" | 32 #include "ash/display/window_tree_host_manager.h" |
55 #include "ash/drag_drop/drag_drop_controller.h" | 33 #include "ash/drag_drop/drag_drop_controller.h" |
56 #include "ash/first_run/first_run_helper_impl.h" | 34 #include "ash/first_run/first_run_helper_impl.h" |
| 35 #include "ash/frame/custom_frame_view_ash.h" |
| 36 #include "ash/gpu_support.h" |
57 #include "ash/high_contrast/high_contrast_controller.h" | 37 #include "ash/high_contrast/high_contrast_controller.h" |
58 #include "ash/ime/input_method_event_handler.h" | 38 #include "ash/ime/input_method_event_handler.h" |
| 39 #include "ash/keyboard/keyboard_ui.h" |
59 #include "ash/laser/laser_pointer_controller.h" | 40 #include "ash/laser/laser_pointer_controller.h" |
| 41 #include "ash/login_status.h" |
60 #include "ash/magnifier/magnification_controller.h" | 42 #include "ash/magnifier/magnification_controller.h" |
61 #include "ash/magnifier/partial_magnification_controller.h" | 43 #include "ash/magnifier/partial_magnification_controller.h" |
62 #include "ash/public/cpp/shell_window_ids.h" | 44 #include "ash/public/cpp/shell_window_ids.h" |
63 #include "ash/root_window_controller.h" | 45 #include "ash/root_window_controller.h" |
| 46 #include "ash/session/session_state_delegate.h" |
| 47 #include "ash/shelf/app_list_shelf_item_delegate.h" |
| 48 #include "ash/shelf/shelf_delegate.h" |
| 49 #include "ash/shelf/shelf_item_delegate.h" |
| 50 #include "ash/shelf/shelf_model.h" |
| 51 #include "ash/shelf/wm_shelf.h" |
| 52 #include "ash/shell_delegate.h" |
64 #include "ash/shell_init_params.h" | 53 #include "ash/shell_init_params.h" |
65 #include "ash/sticky_keys/sticky_keys_controller.h" | 54 #include "ash/sticky_keys/sticky_keys_controller.h" |
66 #include "ash/system/bluetooth/bluetooth_notification_controller.h" | 55 #include "ash/system/bluetooth/bluetooth_notification_controller.h" |
67 #include "ash/system/network/sms_observer.h" | 56 #include "ash/system/network/sms_observer.h" |
68 #include "ash/system/power/power_event_observer.h" | 57 #include "ash/system/power/power_event_observer.h" |
69 #include "ash/system/power/power_status.h" | 58 #include "ash/system/power/power_status.h" |
70 #include "ash/system/power/video_activity_notifier.h" | 59 #include "ash/system/power/video_activity_notifier.h" |
71 #include "ash/system/screen_layout_observer.h" | 60 #include "ash/system/screen_layout_observer.h" |
72 #include "ash/system/status_area_widget.h" | 61 #include "ash/system/status_area_widget.h" |
73 #include "ash/system/tray/system_tray_delegate.h" | 62 #include "ash/system/tray/system_tray_delegate.h" |
74 #include "ash/touch/ash_touch_transform_controller.h" | 63 #include "ash/touch/ash_touch_transform_controller.h" |
75 #include "ash/utility/screenshot_controller.h" | 64 #include "ash/utility/screenshot_controller.h" |
76 #include "ash/virtual_keyboard_controller.h" | 65 #include "ash/virtual_keyboard_controller.h" |
| 66 #include "ash/wallpaper/wallpaper_delegate.h" |
77 #include "ash/wm/ash_focus_rules.h" | 67 #include "ash/wm/ash_focus_rules.h" |
78 #include "ash/wm/ash_native_cursor_manager.h" | 68 #include "ash/wm/ash_native_cursor_manager.h" |
| 69 #include "ash/wm/container_finder.h" |
79 #include "ash/wm/event_client_impl.h" | 70 #include "ash/wm/event_client_impl.h" |
80 #include "ash/wm/immersive_handler_factory_ash.h" | 71 #include "ash/wm/immersive_handler_factory_ash.h" |
81 #include "ash/wm/lock_state_controller.h" | 72 #include "ash/wm/lock_state_controller.h" |
| 73 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 74 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" |
| 75 #include "ash/wm/mru_window_tracker.h" |
82 #include "ash/wm/overlay_event_filter.h" | 76 #include "ash/wm/overlay_event_filter.h" |
83 #include "ash/wm/overview/scoped_overview_animation_settings_factory_aura.h" | 77 #include "ash/wm/overview/scoped_overview_animation_settings_factory_aura.h" |
84 #include "ash/wm/power_button_controller.h" | 78 #include "ash/wm/power_button_controller.h" |
85 #include "ash/wm/resize_shadow_controller.h" | 79 #include "ash/wm/resize_shadow_controller.h" |
| 80 #include "ash/wm/root_window_finder.h" |
86 #include "ash/wm/screen_pinning_controller.h" | 81 #include "ash/wm/screen_pinning_controller.h" |
87 #include "ash/wm/system_gesture_event_filter.h" | 82 #include "ash/wm/system_gesture_event_filter.h" |
88 #include "ash/wm/system_modal_container_event_filter.h" | 83 #include "ash/wm/system_modal_container_event_filter.h" |
| 84 #include "ash/wm/system_modal_container_layout_manager.h" |
89 #include "ash/wm/toplevel_window_event_handler.h" | 85 #include "ash/wm/toplevel_window_event_handler.h" |
90 #include "ash/wm/video_detector.h" | 86 #include "ash/wm/video_detector.h" |
91 #include "ash/wm/window_animations.h" | 87 #include "ash/wm/window_animations.h" |
| 88 #include "ash/wm/window_positioner.h" |
92 #include "ash/wm/window_properties.h" | 89 #include "ash/wm/window_properties.h" |
93 #include "ash/wm/window_util.h" | 90 #include "ash/wm/window_util.h" |
| 91 #include "ash/wm/workspace_controller.h" |
| 92 #include "ash/wm_shell.h" |
| 93 #include "ash/wm_window.h" |
94 #include "base/bind.h" | 94 #include "base/bind.h" |
95 #include "base/bind_helpers.h" | 95 #include "base/bind_helpers.h" |
96 #include "base/command_line.h" | 96 #include "base/command_line.h" |
97 #include "base/memory/ptr_util.h" | 97 #include "base/memory/ptr_util.h" |
98 #include "base/sys_info.h" | 98 #include "base/sys_info.h" |
99 #include "base/threading/sequenced_worker_pool.h" | 99 #include "base/threading/sequenced_worker_pool.h" |
100 #include "base/trace_event/trace_event.h" | 100 #include "base/trace_event/trace_event.h" |
101 #include "chromeos/audio/audio_a11y_controller.h" | 101 #include "chromeos/audio/audio_a11y_controller.h" |
102 #include "chromeos/chromeos_switches.h" | 102 #include "chromeos/chromeos_switches.h" |
103 #include "chromeos/dbus/dbus_thread_manager.h" | 103 #include "chromeos/dbus/dbus_thread_manager.h" |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { | 951 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { |
952 return std::unique_ptr<ui::EventTargetIterator>(); | 952 return std::unique_ptr<ui::EventTargetIterator>(); |
953 } | 953 } |
954 | 954 |
955 ui::EventTargeter* Shell::GetEventTargeter() { | 955 ui::EventTargeter* Shell::GetEventTargeter() { |
956 NOTREACHED(); | 956 NOTREACHED(); |
957 return nullptr; | 957 return nullptr; |
958 } | 958 } |
959 | 959 |
960 } // namespace ash | 960 } // namespace ash |
OLD | NEW |