| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/aura/wm_shell_aura.h" | 5 #include "ash/aura/wm_shell_aura.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/accelerators/accelerator_controller_delegate_aura.h" | 9 #include "ash/accelerators/accelerator_controller_delegate_aura.h" |
| 10 #include "ash/aura/key_event_watcher_aura.h" | 10 #include "ash/aura/key_event_watcher_aura.h" |
| 11 #include "ash/aura/pointer_watcher_adapter.h" | 11 #include "ash/aura/pointer_watcher_adapter.h" |
| 12 #include "ash/common/accelerators/accelerator_controller.h" | 12 #include "ash/common/accelerators/accelerator_controller.h" |
| 13 #include "ash/common/keyboard/keyboard_ui.h" |
| 13 #include "ash/common/session/session_state_delegate.h" | 14 #include "ash/common/session/session_state_delegate.h" |
| 14 #include "ash/common/shell_delegate.h" | 15 #include "ash/common/shell_delegate.h" |
| 15 #include "ash/common/shell_observer.h" | 16 #include "ash/common/shell_observer.h" |
| 16 #include "ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard
.h" | 17 #include "ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard
.h" |
| 17 #include "ash/common/wm/mru_window_tracker.h" | 18 #include "ash/common/wm/mru_window_tracker.h" |
| 18 #include "ash/common/wm/overview/window_selector_controller.h" | 19 #include "ash/common/wm/overview/window_selector_controller.h" |
| 19 #include "ash/common/wm_display_observer.h" | 20 #include "ash/common/wm_display_observer.h" |
| 20 #include "ash/common/wm_window.h" | 21 #include "ash/common/wm_window.h" |
| 21 #include "ash/display/window_tree_host_manager.h" | 22 #include "ash/display/window_tree_host_manager.h" |
| 22 #include "ash/host/ash_window_tree_host_init_params.h" | 23 #include "ash/host/ash_window_tree_host_init_params.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 return base::WrapUnique(new ScopedDisableInternalMouseAndKeyboardOzone); | 209 return base::WrapUnique(new ScopedDisableInternalMouseAndKeyboardOzone); |
| 209 #endif | 210 #endif |
| 210 return nullptr; | 211 return nullptr; |
| 211 } | 212 } |
| 212 | 213 |
| 213 std::unique_ptr<ImmersiveFullscreenController> | 214 std::unique_ptr<ImmersiveFullscreenController> |
| 214 WmShellAura::CreateImmersiveFullscreenController() { | 215 WmShellAura::CreateImmersiveFullscreenController() { |
| 215 return base::MakeUnique<ImmersiveFullscreenController>(); | 216 return base::MakeUnique<ImmersiveFullscreenController>(); |
| 216 } | 217 } |
| 217 | 218 |
| 219 std::unique_ptr<KeyboardUI> WmShellAura::CreateKeyboardUI() { |
| 220 return KeyboardUI::Create(); |
| 221 } |
| 222 |
| 218 std::unique_ptr<KeyEventWatcher> WmShellAura::CreateKeyEventWatcher() { | 223 std::unique_ptr<KeyEventWatcher> WmShellAura::CreateKeyEventWatcher() { |
| 219 return base::MakeUnique<KeyEventWatcherAura>(); | 224 return base::MakeUnique<KeyEventWatcherAura>(); |
| 220 } | 225 } |
| 221 | 226 |
| 222 SessionStateDelegate* WmShellAura::GetSessionStateDelegate() { | 227 SessionStateDelegate* WmShellAura::GetSessionStateDelegate() { |
| 223 return Shell::GetInstance()->session_state_delegate(); | 228 return Shell::GetInstance()->session_state_delegate(); |
| 224 } | 229 } |
| 225 | 230 |
| 226 void WmShellAura::AddDisplayObserver(WmDisplayObserver* observer) { | 231 void WmShellAura::AddDisplayObserver(WmDisplayObserver* observer) { |
| 227 if (!added_display_observer_) { | 232 if (!added_display_observer_) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 for (auto& observer : display_observers_) | 304 for (auto& observer : display_observers_) |
| 300 observer.OnDisplayConfigurationChanging(); | 305 observer.OnDisplayConfigurationChanging(); |
| 301 } | 306 } |
| 302 | 307 |
| 303 void WmShellAura::OnDisplayConfigurationChanged() { | 308 void WmShellAura::OnDisplayConfigurationChanged() { |
| 304 for (auto& observer : display_observers_) | 309 for (auto& observer : display_observers_) |
| 305 observer.OnDisplayConfigurationChanged(); | 310 observer.OnDisplayConfigurationChanged(); |
| 306 } | 311 } |
| 307 | 312 |
| 308 } // namespace ash | 313 } // namespace ash |
| OLD | NEW |