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 "mojo/public/cpp/application/application_connection.h" | 5 #include "mojo/public/cpp/application/application_connection.h" |
6 #include "mojo/public/cpp/application/application_delegate.h" | 6 #include "mojo/public/cpp/application/application_delegate.h" |
7 #include "mojo/services/view_manager/view_manager_init_service_context.h" | 7 #include "mojo/services/view_manager/view_manager_init_service_context.h" |
8 #include "mojo/services/view_manager/view_manager_init_service_impl.h" | 8 #include "mojo/services/view_manager/view_manager_init_service_impl.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 namespace view_manager { | |
12 namespace service { | 11 namespace service { |
13 | 12 |
14 class ViewManagerApp : public ApplicationDelegate, | 13 class ViewManagerApp : public ApplicationDelegate, |
15 public InterfaceFactory<ViewManagerInitService> { | 14 public InterfaceFactory<ViewManagerInitService> { |
16 public: | 15 public: |
17 ViewManagerApp() {} | 16 ViewManagerApp() {} |
18 virtual ~ViewManagerApp() {} | 17 virtual ~ViewManagerApp() {} |
19 | 18 |
20 virtual bool ConfigureIncomingConnection( | 19 virtual bool ConfigureIncomingConnection( |
21 ApplicationConnection* connection) OVERRIDE { | 20 ApplicationConnection* connection) OVERRIDE { |
(...skipping 11 matching lines...) Expand all Loading... |
33 &request); | 32 &request); |
34 } | 33 } |
35 | 34 |
36 private: | 35 private: |
37 ViewManagerInitServiceContext context_; | 36 ViewManagerInitServiceContext context_; |
38 | 37 |
39 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); | 38 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); |
40 }; | 39 }; |
41 | 40 |
42 } // namespace service | 41 } // namespace service |
43 } // namespace view_manager | |
44 | 42 |
45 // static | 43 // static |
46 ApplicationDelegate* ApplicationDelegate::Create() { | 44 ApplicationDelegate* ApplicationDelegate::Create() { |
47 return new mojo::view_manager::service::ViewManagerApp(); | 45 return new mojo::service::ViewManagerApp(); |
48 } | 46 } |
49 | 47 |
50 } // namespace mojo | 48 } // namespace mojo |
OLD | NEW |