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

Unified Diff: components/view_manager/public/cpp/lib/view_tree_host_factory.cc

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
Index: components/view_manager/public/cpp/lib/view_tree_host_factory.cc
diff --git a/components/view_manager/public/cpp/lib/view_tree_host_factory.cc b/components/view_manager/public/cpp/lib/view_tree_host_factory.cc
deleted file mode 100644
index 1e591a00579c009d71b200280ecd27e3c036e18a..0000000000000000000000000000000000000000
--- a/components/view_manager/public/cpp/lib/view_tree_host_factory.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/view_manager/public/cpp/view_tree_host_factory.h"
-
-#include "components/view_manager/public/cpp/view_tree_connection.h"
-#include "components/view_manager/public/cpp/view_tree_delegate.h"
-#include "mojo/application/public/cpp/application_impl.h"
-
-namespace mojo {
-
-void CreateViewTreeHost(ViewTreeHostFactory* factory,
- ViewTreeHostClientPtr host_client,
- ViewTreeDelegate* delegate,
- ViewTreeHostPtr* host) {
- ViewTreeClientPtr tree_client;
- ViewTreeConnection::Create(delegate, GetProxy(&tree_client));
- factory->CreateViewTreeHost(GetProxy(host), host_client.Pass(),
- tree_client.Pass());
-}
-
-void CreateSingleViewTreeHost(ApplicationImpl* app,
- ViewTreeDelegate* delegate,
- ViewTreeHostPtr* host) {
- mojo::ViewTreeHostFactoryPtr factory;
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = "mojo:view_manager";
- app->ConnectToService(request.Pass(), &factory);
- CreateViewTreeHost(factory.get(), mojo::ViewTreeHostClientPtr(), delegate,
- host);
-}
-
-} // namespace mojo
« no previous file with comments | « components/view_manager/public/cpp/lib/view_tree_delegate.cc ('k') | components/view_manager/public/cpp/scoped_view_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698