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 "components/mus/ws/window_manager_state.h" | 5 #include "services/ui/ws/window_manager_state.h" |
6 | 6 |
7 #include "base/memory/weak_ptr.h" | 7 #include "base/memory/weak_ptr.h" |
8 #include "components/mus/common/event_matcher_util.h" | |
9 #include "components/mus/ws/accelerator.h" | |
10 #include "components/mus/ws/display_manager.h" | |
11 #include "components/mus/ws/platform_display.h" | |
12 #include "components/mus/ws/server_window.h" | |
13 #include "components/mus/ws/user_display_manager.h" | |
14 #include "components/mus/ws/user_id_tracker.h" | |
15 #include "components/mus/ws/window_manager_display_root.h" | |
16 #include "components/mus/ws/window_server.h" | |
17 #include "components/mus/ws/window_tree.h" | |
18 #include "services/shell/public/interfaces/connector.mojom.h" | 8 #include "services/shell/public/interfaces/connector.mojom.h" |
| 9 #include "services/ui/common/event_matcher_util.h" |
| 10 #include "services/ui/ws/accelerator.h" |
| 11 #include "services/ui/ws/display_manager.h" |
| 12 #include "services/ui/ws/platform_display.h" |
| 13 #include "services/ui/ws/server_window.h" |
| 14 #include "services/ui/ws/user_display_manager.h" |
| 15 #include "services/ui/ws/user_id_tracker.h" |
| 16 #include "services/ui/ws/window_manager_display_root.h" |
| 17 #include "services/ui/ws/window_server.h" |
| 18 #include "services/ui/ws/window_tree.h" |
19 #include "ui/events/event.h" | 19 #include "ui/events/event.h" |
20 | 20 |
21 namespace mus { | 21 namespace mus { |
22 namespace ws { | 22 namespace ws { |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Debug accelerator IDs start far above the highest valid Windows command ID | 25 // Debug accelerator IDs start far above the highest valid Windows command ID |
26 // (0xDFFF) and Chrome's highest IDC command ID. | 26 // (0xDFFF) and Chrome's highest IDC command ID. |
27 const uint32_t kPrintWindowsDebugAcceleratorId = 1u << 31; | 27 const uint32_t kPrintWindowsDebugAcceleratorId = 1u << 31; |
28 | 28 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 return display_root ? display_root->root() : nullptr; | 476 return display_root ? display_root->root() : nullptr; |
477 } | 477 } |
478 | 478 |
479 void WindowManagerState::OnEventTargetNotFound(const ui::Event& event) { | 479 void WindowManagerState::OnEventTargetNotFound(const ui::Event& event) { |
480 window_server()->SendToEventObservers(event, user_id(), | 480 window_server()->SendToEventObservers(event, user_id(), |
481 nullptr /* ignore_tree */); | 481 nullptr /* ignore_tree */); |
482 } | 482 } |
483 | 483 |
484 } // namespace ws | 484 } // namespace ws |
485 } // namespace mus | 485 } // namespace mus |
OLD | NEW |