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

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

Issue 1345783002: Updates mojo:view_manager -> mojo:mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/BUILD.gn ('k') | components/mus/view_tree_apptest.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/public/cpp/view_tree_host_factory.h" 5 #include "components/mus/public/cpp/view_tree_host_factory.h"
6 6
7 #include "components/mus/public/cpp/view_tree_connection.h" 7 #include "components/mus/public/cpp/view_tree_connection.h"
8 #include "components/mus/public/cpp/view_tree_delegate.h" 8 #include "components/mus/public/cpp/view_tree_delegate.h"
9 #include "mojo/application/public/cpp/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 void CreateViewTreeHost(ViewTreeHostFactory* factory, 13 void CreateViewTreeHost(ViewTreeHostFactory* factory,
14 ViewTreeHostClientPtr host_client, 14 ViewTreeHostClientPtr host_client,
15 ViewTreeDelegate* delegate, 15 ViewTreeDelegate* delegate,
16 ViewTreeHostPtr* host) { 16 ViewTreeHostPtr* host) {
17 ViewTreeClientPtr tree_client; 17 ViewTreeClientPtr tree_client;
18 ViewTreeConnection::Create(delegate, GetProxy(&tree_client)); 18 ViewTreeConnection::Create(delegate, GetProxy(&tree_client));
19 factory->CreateViewTreeHost(GetProxy(host), host_client.Pass(), 19 factory->CreateViewTreeHost(GetProxy(host), host_client.Pass(),
20 tree_client.Pass()); 20 tree_client.Pass());
21 } 21 }
22 22
23 void CreateSingleViewTreeHost(ApplicationImpl* app, 23 void CreateSingleViewTreeHost(ApplicationImpl* app,
24 ViewTreeDelegate* delegate, 24 ViewTreeDelegate* delegate,
25 ViewTreeHostPtr* host) { 25 ViewTreeHostPtr* host) {
26 mojo::ViewTreeHostFactoryPtr factory; 26 mojo::ViewTreeHostFactoryPtr factory;
27 mojo::URLRequestPtr request(mojo::URLRequest::New()); 27 mojo::URLRequestPtr request(mojo::URLRequest::New());
28 request->url = "mojo:view_manager"; 28 request->url = "mojo:mus";
29 app->ConnectToService(request.Pass(), &factory); 29 app->ConnectToService(request.Pass(), &factory);
30 CreateViewTreeHost(factory.get(), mojo::ViewTreeHostClientPtr(), delegate, 30 CreateViewTreeHost(factory.get(), mojo::ViewTreeHostClientPtr(), delegate,
31 host); 31 host);
32 } 32 }
33 33
34 } // namespace mojo 34 } // namespace mojo
OLDNEW
« no previous file with comments | « components/mus/BUILD.gn ('k') | components/mus/view_tree_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698