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" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 WindowManagerState::QueuedEvent::QueuedEvent() {} | 87 WindowManagerState::QueuedEvent::QueuedEvent() {} |
88 WindowManagerState::QueuedEvent::~QueuedEvent() {} | 88 WindowManagerState::QueuedEvent::~QueuedEvent() {} |
89 | 89 |
90 WindowManagerState::WindowManagerState(Display* display, | 90 WindowManagerState::WindowManagerState(Display* display, |
91 PlatformDisplay* platform_display, | 91 PlatformDisplay* platform_display, |
92 cc::SurfaceId surface_id) | 92 cc::SurfaceId surface_id) |
93 : WindowManagerState(display, | 93 : WindowManagerState(display, |
94 platform_display, | 94 platform_display, |
95 surface_id, | 95 surface_id, |
96 false, | 96 false, |
97 mojo::shell::mojom::kRootUserID) {} | 97 shell::mojom::kRootUserID) {} |
98 | 98 |
99 WindowManagerState::WindowManagerState(Display* display, | 99 WindowManagerState::WindowManagerState(Display* display, |
100 PlatformDisplay* platform_display, | 100 PlatformDisplay* platform_display, |
101 cc::SurfaceId surface_id, | 101 cc::SurfaceId surface_id, |
102 const UserId& user_id) | 102 const UserId& user_id) |
103 : WindowManagerState(display, platform_display, surface_id, true, user_id) { | 103 : WindowManagerState(display, platform_display, surface_id, true, user_id) { |
104 } | 104 } |
105 | 105 |
106 WindowManagerState::~WindowManagerState() {} | 106 WindowManagerState::~WindowManagerState() {} |
107 | 107 |
(...skipping 267 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 |