| 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 "components/mus/ws/window_tree_host_impl.h" | 5 #include "components/mus/ws/window_tree_host_impl.h" |
| 6 | 6 |
| 7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "components/mus/common/types.h" | 9 #include "components/mus/common/types.h" |
| 10 #include "components/mus/public/interfaces/input_event_constants.mojom.h" | 10 #include "components/mus/public/interfaces/input_event_constants.mojom.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 WindowTreeHostImpl::QueuedEvent::QueuedEvent() {} | 85 WindowTreeHostImpl::QueuedEvent::QueuedEvent() {} |
| 86 WindowTreeHostImpl::QueuedEvent::~QueuedEvent() {} | 86 WindowTreeHostImpl::QueuedEvent::~QueuedEvent() {} |
| 87 | 87 |
| 88 WindowTreeHostImpl::WindowTreeHostImpl( | 88 WindowTreeHostImpl::WindowTreeHostImpl( |
| 89 mojom::WindowTreeHostClientPtr client, | 89 mojom::WindowTreeHostClientPtr client, |
| 90 ConnectionManager* connection_manager, | 90 ConnectionManager* connection_manager, |
| 91 mojo::ApplicationImpl* app_impl, | 91 mojo::ApplicationImpl* app_impl, |
| 92 const scoped_refptr<GpuState>& gpu_state, | 92 const scoped_refptr<GpuState>& gpu_state, |
| 93 const scoped_refptr<SurfacesState>& surfaces_state, | 93 const scoped_refptr<SurfacesState>& surfaces_state, |
| 94 mojom::WindowManagerPtr window_manager) | 94 mojom::WindowManagerDeprecatedPtr window_manager) |
| 95 : id_(next_id++), | 95 : id_(next_id++), |
| 96 delegate_(nullptr), | 96 delegate_(nullptr), |
| 97 connection_manager_(connection_manager), | 97 connection_manager_(connection_manager), |
| 98 client_(std::move(client)), | 98 client_(std::move(client)), |
| 99 event_dispatcher_(this), | 99 event_dispatcher_(this), |
| 100 display_manager_( | 100 display_manager_( |
| 101 DisplayManager::Create(app_impl, gpu_state, surfaces_state)), | 101 DisplayManager::Create(app_impl, gpu_state, surfaces_state)), |
| 102 window_manager_(std::move(window_manager)), | 102 window_manager_(std::move(window_manager)), |
| 103 tree_awaiting_input_ack_(nullptr), | 103 tree_awaiting_input_ack_(nullptr), |
| 104 last_cursor_(0) { | 104 last_cursor_(0) { |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); | 545 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); |
| 546 } | 546 } |
| 547 | 547 |
| 548 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { | 548 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { |
| 549 windows_needing_frame_destruction_.erase(window); | 549 windows_needing_frame_destruction_.erase(window); |
| 550 window->RemoveObserver(this); | 550 window->RemoveObserver(this); |
| 551 } | 551 } |
| 552 | 552 |
| 553 } // namespace ws | 553 } // namespace ws |
| 554 } // namespace mus | 554 } // namespace mus |
| OLD | NEW |