Chromium Code Reviews

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

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 "view_manager/public/cpp/view_manager_client_factory.h" 5 #include "view_manager/cpp/view_manager_client_factory.h"
6 6
7 #include "mojo/public/interfaces/application/shell.mojom.h" 7 #include "mojo/public/interfaces/application/shell.mojom.h"
8 #include "view_manager/public/cpp/lib/view_manager_client_impl.h" 8 #include "view_manager/cpp/lib/view_manager_client_impl.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 ViewManagerClientFactory::ViewManagerClientFactory( 12 ViewManagerClientFactory::ViewManagerClientFactory(
13 Shell* shell, 13 Shell* shell,
14 ViewManagerDelegate* delegate) 14 ViewManagerDelegate* delegate)
15 : shell_(shell), delegate_(delegate) { 15 : shell_(shell), delegate_(delegate) {}
16 }
17 16
18 ViewManagerClientFactory::~ViewManagerClientFactory() { 17 ViewManagerClientFactory::~ViewManagerClientFactory() {}
19 }
20 18
21 // static 19 // static
22 ViewManagerClient* ViewManagerClientFactory::WeakBindViewManagerToPipe( 20 ViewManagerClient* ViewManagerClientFactory::WeakBindViewManagerToPipe(
23 InterfaceRequest<ViewManagerClient> request, 21 InterfaceRequest<ViewManagerClient> request,
24 ViewManagerServicePtr view_manager_service, 22 ViewManagerServicePtr view_manager_service,
25 Shell* shell, 23 Shell* shell,
26 ViewManagerDelegate* delegate) { 24 ViewManagerDelegate* delegate) {
27 const bool delete_on_error = false; 25 const bool delete_on_error = false;
28 auto client = new ViewManagerClientImpl(delegate, shell, request.Pass(), 26 auto client = new ViewManagerClientImpl(delegate, shell, request.Pass(),
29 delete_on_error); 27 delete_on_error);
30 client->SetViewManagerService(view_manager_service.Pass()); 28 client->SetViewManagerService(view_manager_service.Pass());
31 return client; 29 return client;
32 } 30 }
33 31
34 // InterfaceFactory<ViewManagerClient> implementation. 32 // InterfaceFactory<ViewManagerClient> implementation.
35 void ViewManagerClientFactory::Create( 33 void ViewManagerClientFactory::Create(
36 ApplicationConnection* connection, 34 ApplicationConnection* connection,
37 InterfaceRequest<ViewManagerClient> request) { 35 InterfaceRequest<ViewManagerClient> request) {
38 const bool delete_on_error = true; 36 const bool delete_on_error = true;
39 new ViewManagerClientImpl(delegate_, shell_, request.Pass(), delete_on_error); 37 new ViewManagerClientImpl(delegate_, shell_, request.Pass(), delete_on_error);
40 } 38 }
41 39
42 } // namespace mojo 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