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

Side by Side Diff: mojo/services/view_manager/cpp/lib/view_manager_client_factory.cc

Issue 1531403003: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: rebase 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "view_manager/cpp/view_manager_client_factory.h"
6
7 #include "mojo/public/interfaces/application/shell.mojom.h"
8 #include "view_manager/cpp/lib/view_manager_client_impl.h"
9
10 namespace mojo {
11
12 ViewManagerClientFactory::ViewManagerClientFactory(
13 Shell* shell,
14 ViewManagerDelegate* delegate)
15 : shell_(shell), delegate_(delegate) {}
16
17 ViewManagerClientFactory::~ViewManagerClientFactory() {}
18
19 // static
20 ViewManagerClient* ViewManagerClientFactory::WeakBindViewManagerToPipe(
21 InterfaceRequest<ViewManagerClient> request,
22 ViewManagerServicePtr view_manager_service,
23 Shell* shell,
24 ViewManagerDelegate* delegate) {
25 const bool delete_on_error = false;
26 auto client = new ViewManagerClientImpl(delegate, shell, request.Pass(),
27 delete_on_error);
28 client->SetViewManagerService(view_manager_service.Pass());
29 return client;
30 }
31
32 // InterfaceFactory<ViewManagerClient> implementation.
33 void ViewManagerClientFactory::Create(
34 ApplicationConnection* connection,
35 InterfaceRequest<ViewManagerClient> request) {
36 const bool delete_on_error = true;
37 new ViewManagerClientImpl(delegate_, shell_, request.Pass(), delete_on_error);
38 }
39
40 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/cpp/lib/view.cc ('k') | mojo/services/view_manager/cpp/lib/view_manager_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698