OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mus/window_manager.h" | 5 #include "ash/mus/window_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "ash/common/shell_window_ids.h" | |
12 #include "ash/mus/accelerators/accelerator_handler.h" | 11 #include "ash/mus/accelerators/accelerator_handler.h" |
13 #include "ash/mus/accelerators/accelerator_ids.h" | 12 #include "ash/mus/accelerators/accelerator_ids.h" |
14 #include "ash/mus/app_list_presenter_mus.h" | 13 #include "ash/mus/app_list_presenter_mus.h" |
15 #include "ash/mus/bridge/wm_lookup_mus.h" | 14 #include "ash/mus/bridge/wm_lookup_mus.h" |
16 #include "ash/mus/bridge/wm_root_window_controller_mus.h" | 15 #include "ash/mus/bridge/wm_root_window_controller_mus.h" |
17 #include "ash/mus/bridge/wm_shell_mus.h" | 16 #include "ash/mus/bridge/wm_shell_mus.h" |
18 #include "ash/mus/bridge/wm_window_mus.h" | 17 #include "ash/mus/bridge/wm_window_mus.h" |
19 #include "ash/mus/move_event_handler.h" | 18 #include "ash/mus/move_event_handler.h" |
20 #include "ash/mus/non_client_frame_controller.h" | 19 #include "ash/mus/non_client_frame_controller.h" |
21 #include "ash/mus/property_util.h" | 20 #include "ash/mus/property_util.h" |
22 #include "ash/mus/root_window_controller.h" | 21 #include "ash/mus/root_window_controller.h" |
23 #include "ash/mus/shadow_controller.h" | 22 #include "ash/mus/shadow_controller.h" |
24 #include "ash/mus/shell_delegate_mus.h" | 23 #include "ash/mus/shell_delegate_mus.h" |
25 #include "ash/mus/window_manager_observer.h" | 24 #include "ash/mus/window_manager_observer.h" |
26 #include "ash/public/interfaces/container.mojom.h" | 25 #include "ash/public/cpp/shell_window_ids.h" |
27 #include "base/memory/ptr_util.h" | 26 #include "base/memory/ptr_util.h" |
28 #include "services/ui/common/event_matcher_util.h" | 27 #include "services/ui/common/event_matcher_util.h" |
29 #include "services/ui/common/types.h" | 28 #include "services/ui/common/types.h" |
30 #include "services/ui/public/cpp/property_type_converters.h" | 29 #include "services/ui/public/cpp/property_type_converters.h" |
31 #include "services/ui/public/cpp/window.h" | 30 #include "services/ui/public/cpp/window.h" |
32 #include "services/ui/public/cpp/window_property.h" | 31 #include "services/ui/public/cpp/window_property.h" |
33 #include "services/ui/public/cpp/window_tree_client.h" | 32 #include "services/ui/public/cpp/window_tree_client.h" |
34 #include "services/ui/public/interfaces/mus_constants.mojom.h" | 33 #include "services/ui/public/interfaces/mus_constants.mojom.h" |
35 #include "services/ui/public/interfaces/window_manager.mojom.h" | 34 #include "services/ui/public/interfaces/window_manager.mojom.h" |
36 #include "ui/base/hit_test.h" | 35 #include "ui/base/hit_test.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 const ui::Event& event) { | 364 const ui::Event& event) { |
366 auto iter = accelerator_handlers_.find(GetAcceleratorNamespaceId(id)); | 365 auto iter = accelerator_handlers_.find(GetAcceleratorNamespaceId(id)); |
367 if (iter == accelerator_handlers_.end()) | 366 if (iter == accelerator_handlers_.end()) |
368 return ui::mojom::EventResult::HANDLED; | 367 return ui::mojom::EventResult::HANDLED; |
369 | 368 |
370 return iter->second->OnAccelerator(id, event); | 369 return iter->second->OnAccelerator(id, event); |
371 } | 370 } |
372 | 371 |
373 } // namespace mus | 372 } // namespace mus |
374 } // namespace ash | 373 } // namespace ash |
OLD | NEW |