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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "ash/laser/laser_pointer_controller.h" | 64 #include "ash/laser/laser_pointer_controller.h" |
65 #include "ash/magnifier/magnification_controller.h" | 65 #include "ash/magnifier/magnification_controller.h" |
66 #include "ash/magnifier/partial_magnification_controller.h" | 66 #include "ash/magnifier/partial_magnification_controller.h" |
67 #include "ash/public/cpp/shell_window_ids.h" | 67 #include "ash/public/cpp/shell_window_ids.h" |
68 #include "ash/root_window_controller.h" | 68 #include "ash/root_window_controller.h" |
69 #include "ash/shell_init_params.h" | 69 #include "ash/shell_init_params.h" |
70 #include "ash/sticky_keys/sticky_keys_controller.h" | 70 #include "ash/sticky_keys/sticky_keys_controller.h" |
71 #include "ash/system/chromeos/power/power_event_observer.h" | 71 #include "ash/system/chromeos/power/power_event_observer.h" |
72 #include "ash/system/chromeos/power/video_activity_notifier.h" | 72 #include "ash/system/chromeos/power/video_activity_notifier.h" |
73 #include "ash/system/chromeos/screen_layout_observer.h" | 73 #include "ash/system/chromeos/screen_layout_observer.h" |
74 #include "ash/touch/touch_transformer_controller.h" | 74 #include "ash/touch/ash_touch_transform_controller.h" |
75 #include "ash/utility/screenshot_controller.h" | 75 #include "ash/utility/screenshot_controller.h" |
76 #include "ash/virtual_keyboard_controller.h" | 76 #include "ash/virtual_keyboard_controller.h" |
77 #include "ash/wm/ash_focus_rules.h" | 77 #include "ash/wm/ash_focus_rules.h" |
78 #include "ash/wm/ash_native_cursor_manager.h" | 78 #include "ash/wm/ash_native_cursor_manager.h" |
79 #include "ash/wm/event_client_impl.h" | 79 #include "ash/wm/event_client_impl.h" |
80 #include "ash/wm/immersive_handler_factory_ash.h" | 80 #include "ash/wm/immersive_handler_factory_ash.h" |
81 #include "ash/wm/lock_state_controller.h" | 81 #include "ash/wm/lock_state_controller.h" |
82 #include "ash/wm/overlay_event_filter.h" | 82 #include "ash/wm/overlay_event_filter.h" |
83 #include "ash/wm/overview/scoped_overview_animation_settings_factory_aura.h" | 83 #include "ash/wm/overview/scoped_overview_animation_settings_factory_aura.h" |
84 #include "ash/wm/power_button_controller.h" | 84 #include "ash/wm/power_button_controller.h" |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 session_state_delegate_.reset( | 735 session_state_delegate_.reset( |
736 wm_shell_->delegate()->CreateSessionStateDelegate()); | 736 wm_shell_->delegate()->CreateSessionStateDelegate()); |
737 wm_shell_->CreatePointerWatcherAdapter(); | 737 wm_shell_->CreatePointerWatcherAdapter(); |
738 | 738 |
739 resize_shadow_controller_.reset(new ResizeShadowController()); | 739 resize_shadow_controller_.reset(new ResizeShadowController()); |
740 shadow_controller_.reset(new ::wm::ShadowController(activation_client_)); | 740 shadow_controller_.reset(new ::wm::ShadowController(activation_client_)); |
741 | 741 |
742 wm_shell_->SetSystemTrayDelegate( | 742 wm_shell_->SetSystemTrayDelegate( |
743 base::WrapUnique(wm_shell_->delegate()->CreateSystemTrayDelegate())); | 743 base::WrapUnique(wm_shell_->delegate()->CreateSystemTrayDelegate())); |
744 | 744 |
745 // Create TouchTransformerController before | 745 // Create AshTouchTransformController before |
746 // WindowTreeHostManager::InitDisplays() | 746 // WindowTreeHostManager::InitDisplays() |
747 // since TouchTransformerController listens on | 747 // since AshTouchTransformController listens on |
748 // WindowTreeHostManager::Observer::OnDisplaysInitialized(). | 748 // WindowTreeHostManager::Observer::OnDisplaysInitialized(). |
749 touch_transformer_controller_.reset(new TouchTransformerController()); | 749 touch_transformer_controller_.reset(new AshTouchTransformController( |
| 750 display_configurator_.get(), display_manager_.get())); |
750 | 751 |
751 wm_shell_->SetKeyboardUI(KeyboardUI::Create()); | 752 wm_shell_->SetKeyboardUI(KeyboardUI::Create()); |
752 | 753 |
753 window_tree_host_manager_->InitHosts(); | 754 window_tree_host_manager_->InitHosts(); |
754 | 755 |
755 // Needs to be created after InitDisplays() since it may cause the virtual | 756 // Needs to be created after InitDisplays() since it may cause the virtual |
756 // keyboard to be deployed. | 757 // keyboard to be deployed. |
757 virtual_keyboard_controller_.reset(new VirtualKeyboardController); | 758 virtual_keyboard_controller_.reset(new VirtualKeyboardController); |
758 | 759 |
759 audio_a11y_controller_.reset(new chromeos::AudioA11yController); | 760 audio_a11y_controller_.reset(new chromeos::AudioA11yController); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { | 854 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { |
854 return std::unique_ptr<ui::EventTargetIterator>(); | 855 return std::unique_ptr<ui::EventTargetIterator>(); |
855 } | 856 } |
856 | 857 |
857 ui::EventTargeter* Shell::GetEventTargeter() { | 858 ui::EventTargeter* Shell::GetEventTargeter() { |
858 NOTREACHED(); | 859 NOTREACHED(); |
859 return nullptr; | 860 return nullptr; |
860 } | 861 } |
861 | 862 |
862 } // namespace ash | 863 } // namespace ash |
OLD | NEW |