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 "components/mus/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/ws/accelerator.h" | 8 #include "components/mus/ws/accelerator.h" |
9 #include "components/mus/ws/display_manager.h" | 9 #include "components/mus/ws/display_manager.h" |
10 #include "components/mus/ws/platform_display.h" | 10 #include "components/mus/ws/platform_display.h" |
11 #include "components/mus/ws/server_window.h" | 11 #include "components/mus/ws/server_window.h" |
12 #include "components/mus/ws/user_display_manager.h" | 12 #include "components/mus/ws/user_display_manager.h" |
13 #include "components/mus/ws/user_id_tracker.h" | 13 #include "components/mus/ws/user_id_tracker.h" |
14 #include "components/mus/ws/window_server.h" | 14 #include "components/mus/ws/window_server.h" |
15 #include "components/mus/ws/window_tree.h" | 15 #include "components/mus/ws/window_tree.h" |
16 #include "mojo/shell/public/interfaces/connector.mojom.h" | 16 #include "services/shell/public/interfaces/connector.mojom.h" |
17 #include "ui/events/event.h" | 17 #include "ui/events/event.h" |
18 | 18 |
19 namespace mus { | 19 namespace mus { |
20 namespace ws { | 20 namespace ws { |
21 namespace { | 21 namespace { |
22 | 22 |
23 base::TimeDelta GetDefaultAckTimerDelay() { | 23 base::TimeDelta GetDefaultAckTimerDelay() { |
24 #if defined(NDEBUG) | 24 #if defined(NDEBUG) |
25 return base::TimeDelta::FromMilliseconds(100); | 25 return base::TimeDelta::FromMilliseconds(100); |
26 #else | 26 #else |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 base::WeakPtr<Accelerator> weak_accelerator; | 376 base::WeakPtr<Accelerator> weak_accelerator; |
377 if (accelerator) | 377 if (accelerator) |
378 weak_accelerator = accelerator->GetWeakPtr(); | 378 weak_accelerator = accelerator->GetWeakPtr(); |
379 DispatchInputEventToWindowImpl(target, in_nonclient_area, event, | 379 DispatchInputEventToWindowImpl(target, in_nonclient_area, event, |
380 weak_accelerator); | 380 weak_accelerator); |
381 } | 381 } |
382 | 382 |
383 } // namespace ws | 383 } // namespace ws |
384 } // namespace mus | 384 } // namespace mus |
OLD | NEW |