| OLD | NEW |
| 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 "components/view_manager/public/cpp/view_manager_client_factory.h" |
| 6 | 6 |
| 7 #include "mojo/public/interfaces/application/shell.mojom.h" | 7 #include "components/view_manager/public/cpp/lib/view_manager_client_impl.h" |
| 8 #include "view_manager/public/cpp/lib/view_manager_client_impl.h" | 8 #include "third_party/mojo/src/mojo/public/interfaces/application/shell.mojom.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 } | 16 } |
| 17 | 17 |
| 18 ViewManagerClientFactory::~ViewManagerClientFactory() { | 18 ViewManagerClientFactory::~ViewManagerClientFactory() { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // InterfaceFactory<ViewManagerClient> implementation. | 34 // InterfaceFactory<ViewManagerClient> implementation. |
| 35 void ViewManagerClientFactory::Create( | 35 void ViewManagerClientFactory::Create( |
| 36 ApplicationConnection* connection, | 36 ApplicationConnection* connection, |
| 37 InterfaceRequest<ViewManagerClient> request) { | 37 InterfaceRequest<ViewManagerClient> request) { |
| 38 const bool delete_on_error = true; | 38 const bool delete_on_error = true; |
| 39 new ViewManagerClientImpl(delegate_, shell_, request.Pass(), delete_on_error); | 39 new ViewManagerClientImpl(delegate_, shell_, request.Pass(), delete_on_error); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace mojo | 42 } // namespace mojo |
| OLD | NEW |