Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: components/mus/ws/window_tree_host_impl.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/ws/window_tree_host_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::Shell* shell, 90 mojo::Connector* connector,
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(shell, gpu_state, surfaces_state)), 98 DisplayManager::Create(connector, 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); 512 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event));
513 } 513 }
514 514
515 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { 515 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) {
516 windows_needing_frame_destruction_.erase(window); 516 windows_needing_frame_destruction_.erase(window);
517 window->RemoveObserver(this); 517 window->RemoveObserver(this);
518 } 518 }
519 519
520 } // namespace ws 520 } // namespace ws
521 } // namespace mus 521 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_host_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698