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

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

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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/display.cc ('k') | components/mus/ws/platform_display.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/display_binding.h" 5 #include "components/mus/ws/display_binding.h"
6 6
7 #include "components/mus/ws/display.h" 7 #include "components/mus/ws/display.h"
8 #include "components/mus/ws/window_manager_access_policy.h" 8 #include "components/mus/ws/window_manager_access_policy.h"
9 #include "components/mus/ws/window_server.h" 9 #include "components/mus/ws/window_server.h"
10 #include "components/mus/ws/window_tree.h" 10 #include "components/mus/ws/window_tree.h"
11 #include "mojo/shell/public/interfaces/connector.mojom.h" 11 #include "services/shell/public/interfaces/connector.mojom.h"
12 12
13 namespace mus { 13 namespace mus {
14 namespace ws { 14 namespace ws {
15 15
16 DisplayBindingImpl::DisplayBindingImpl(mojom::WindowTreeHostRequest request, 16 DisplayBindingImpl::DisplayBindingImpl(mojom::WindowTreeHostRequest request,
17 Display* display, 17 Display* display,
18 const UserId& user_id, 18 const UserId& user_id,
19 mojom::WindowTreeClientPtr client, 19 mojom::WindowTreeClientPtr client,
20 WindowServer* window_server) 20 WindowServer* window_server)
21 : window_server_(window_server), 21 : window_server_(window_server),
22 user_id_(user_id), 22 user_id_(user_id),
23 binding_(display, std::move(request)), 23 binding_(display, std::move(request)),
24 client_(std::move(client)) {} 24 client_(std::move(client)) {}
25 25
26 DisplayBindingImpl::~DisplayBindingImpl() {} 26 DisplayBindingImpl::~DisplayBindingImpl() {}
27 27
28 WindowTree* DisplayBindingImpl::CreateWindowTree(ServerWindow* root) { 28 WindowTree* DisplayBindingImpl::CreateWindowTree(ServerWindow* root) {
29 WindowTree* tree = window_server_->EmbedAtWindow( 29 WindowTree* tree = window_server_->EmbedAtWindow(
30 root, user_id_, std::move(client_), 30 root, user_id_, std::move(client_),
31 make_scoped_ptr(new WindowManagerAccessPolicy)); 31 make_scoped_ptr(new WindowManagerAccessPolicy));
32 tree->ConfigureWindowManager(); 32 tree->ConfigureWindowManager();
33 return tree; 33 return tree;
34 } 34 }
35 35
36 } // namespace ws 36 } // namespace ws
37 } // namespace mus 37 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/display.cc ('k') | components/mus/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698