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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_host_factory.cc

Issue 1644773004: Renames some WindowManager classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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
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/public/cpp/window_tree_host_factory.h" 5 #include "components/mus/public/cpp/window_tree_host_factory.h"
6 6
7 #include "components/mus/public/cpp/window_tree_connection.h" 7 #include "components/mus/public/cpp/window_tree_connection.h"
8 #include "components/mus/public/cpp/window_tree_delegate.h" 8 #include "components/mus/public/cpp/window_tree_delegate.h"
9 #include "mojo/shell/public/cpp/application_impl.h" 9 #include "mojo/shell/public/cpp/application_impl.h"
10 10
11 namespace mus { 11 namespace mus {
12 12
13 void CreateWindowTreeHost(mojom::WindowTreeHostFactory* factory, 13 void CreateWindowTreeHost(mojom::WindowTreeHostFactory* factory,
14 mojom::WindowTreeHostClientPtr host_client, 14 mojom::WindowTreeHostClientPtr host_client,
15 WindowTreeDelegate* delegate, 15 WindowTreeDelegate* delegate,
16 mojom::WindowTreeHostPtr* host, 16 mojom::WindowTreeHostPtr* host,
17 mojom::WindowManagerPtr window_manager, 17 mojom::WindowManagerDeprecatedPtr window_manager,
18 WindowManagerDelegate* window_manager_delegate) { 18 WindowManagerDelegate* window_manager_delegate) {
19 mojom::WindowTreeClientPtr tree_client; 19 mojom::WindowTreeClientPtr tree_client;
20 WindowTreeConnection::CreateForWindowManager( 20 WindowTreeConnection::CreateForWindowManager(
21 delegate, GetProxy(&tree_client), 21 delegate, GetProxy(&tree_client),
22 WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED, 22 WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED,
23 window_manager_delegate); 23 window_manager_delegate);
24 factory->CreateWindowTreeHost(GetProxy(host), std::move(host_client), 24 factory->CreateWindowTreeHost(GetProxy(host), std::move(host_client),
25 std::move(tree_client), 25 std::move(tree_client),
26 std::move(window_manager)); 26 std::move(window_manager));
27 } 27 }
28 28
29 void CreateSingleWindowTreeHost( 29 void CreateSingleWindowTreeHost(
30 mojo::ApplicationImpl* app, 30 mojo::ApplicationImpl* app,
31 mojom::WindowTreeHostClientPtr host_client, 31 mojom::WindowTreeHostClientPtr host_client,
32 WindowTreeDelegate* delegate, 32 WindowTreeDelegate* delegate,
33 mojom::WindowTreeHostPtr* host, 33 mojom::WindowTreeHostPtr* host,
34 mojom::WindowManagerPtr window_manager, 34 mojom::WindowManagerDeprecatedPtr window_manager,
35 WindowManagerDelegate* window_manager_delegate) { 35 WindowManagerDelegate* window_manager_delegate) {
36 mojom::WindowTreeHostFactoryPtr factory; 36 mojom::WindowTreeHostFactoryPtr factory;
37 app->ConnectToService("mojo:mus", &factory); 37 app->ConnectToService("mojo:mus", &factory);
38 CreateWindowTreeHost(factory.get(), std::move(host_client), delegate, host, 38 CreateWindowTreeHost(factory.get(), std::move(host_client), delegate, host,
39 std::move(window_manager), window_manager_delegate); 39 std::move(window_manager), window_manager_delegate);
40 } 40 }
41 41
42 } // namespace mus 42 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | components/mus/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698