| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const bool in_nonclient_area_; | 80 const bool in_nonclient_area_; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(ProcessedEventTarget); | 82 DISALLOW_COPY_AND_ASSIGN(ProcessedEventTarget); |
| 83 }; | 83 }; |
| 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 ConnectionManager* connection_manager, | 89 ConnectionManager* connection_manager, |
| 90 mojo::ApplicationImpl* app_impl, | 90 mojo::Shell* shell, |
| 91 const scoped_refptr<GpuState>& gpu_state, | 91 const scoped_refptr<GpuState>& gpu_state, |
| 92 const scoped_refptr<SurfacesState>& surfaces_state) | 92 const scoped_refptr<SurfacesState>& surfaces_state) |
| 93 : id_(next_id++), | 93 : id_(next_id++), |
| 94 delegate_(nullptr), | 94 delegate_(nullptr), |
| 95 connection_manager_(connection_manager), | 95 connection_manager_(connection_manager), |
| 96 event_dispatcher_(this), | 96 event_dispatcher_(this), |
| 97 display_manager_( | 97 display_manager_( |
| 98 DisplayManager::Create(app_impl, gpu_state, surfaces_state)), | 98 DisplayManager::Create(shell, gpu_state, surfaces_state)), |
| 99 tree_awaiting_input_ack_(nullptr), | 99 tree_awaiting_input_ack_(nullptr), |
| 100 last_cursor_(0) { | 100 last_cursor_(0) { |
| 101 frame_decoration_values_ = mojom::FrameDecorationValues::New(); | 101 frame_decoration_values_ = mojom::FrameDecorationValues::New(); |
| 102 frame_decoration_values_->normal_client_area_insets = mojo::Insets::New(); | 102 frame_decoration_values_->normal_client_area_insets = mojo::Insets::New(); |
| 103 frame_decoration_values_->maximized_client_area_insets = mojo::Insets::New(); | 103 frame_decoration_values_->maximized_client_area_insets = mojo::Insets::New(); |
| 104 frame_decoration_values_->max_title_bar_button_width = 0u; | 104 frame_decoration_values_->max_title_bar_button_width = 0u; |
| 105 | 105 |
| 106 display_manager_->Init(this); | 106 display_manager_->Init(this); |
| 107 } | 107 } |
| 108 | 108 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); | 487 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); |
| 488 } | 488 } |
| 489 | 489 |
| 490 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { | 490 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { |
| 491 windows_needing_frame_destruction_.erase(window); | 491 windows_needing_frame_destruction_.erase(window); |
| 492 window->RemoveObserver(this); | 492 window->RemoveObserver(this); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace ws | 495 } // namespace ws |
| 496 } // namespace mus | 496 } // namespace mus |
| OLD | NEW |