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 #ifndef COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
6 #define COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 6 #define COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "cc/surfaces/surface_manager.h" | 11 #include "cc/surfaces/surface_manager.h" |
12 #include "components/view_manager/connection_manager_delegate.h" | 12 #include "components/view_manager/connection_manager_delegate.h" |
13 #include "components/view_manager/public/interfaces/gpu.mojom.h" | 13 #include "components/view_manager/public/interfaces/gpu.mojom.h" |
14 #include "components/view_manager/public/interfaces/surfaces.mojom.h" | 14 #include "components/view_manager/public/interfaces/surfaces.mojom.h" |
15 #include "components/view_manager/public/interfaces/view_manager.mojom.h" | |
16 #include "components/view_manager/public/interfaces/view_manager_root.mojom.h" | 15 #include "components/view_manager/public/interfaces/view_manager_root.mojom.h" |
| 16 #include "components/view_manager/public/interfaces/view_tree.mojom.h" |
17 #include "components/view_manager/surfaces/surfaces_delegate.h" | 17 #include "components/view_manager/surfaces/surfaces_delegate.h" |
18 #include "mojo/application/public/cpp/app_lifetime_helper.h" | 18 #include "mojo/application/public/cpp/app_lifetime_helper.h" |
19 #include "mojo/application/public/cpp/application_delegate.h" | 19 #include "mojo/application/public/cpp/application_delegate.h" |
20 #include "mojo/application/public/cpp/interface_factory.h" | 20 #include "mojo/application/public/cpp/interface_factory.h" |
21 #include "mojo/common/tracing_impl.h" | 21 #include "mojo/common/tracing_impl.h" |
22 | 22 |
23 namespace gles2 { | 23 namespace gles2 { |
24 class GpuState; | 24 class GpuState; |
25 } | 25 } |
26 | 26 |
(...skipping 29 matching lines...) Expand all Loading... |
56 private: | 56 private: |
57 // ApplicationDelegate: | 57 // ApplicationDelegate: |
58 void Initialize(mojo::ApplicationImpl* app) override; | 58 void Initialize(mojo::ApplicationImpl* app) override; |
59 bool ConfigureIncomingConnection( | 59 bool ConfigureIncomingConnection( |
60 mojo::ApplicationConnection* connection) override; | 60 mojo::ApplicationConnection* connection) override; |
61 | 61 |
62 // ConnectionManagerDelegate: | 62 // ConnectionManagerDelegate: |
63 void OnNoMoreRootConnections() override; | 63 void OnNoMoreRootConnections() override; |
64 ClientConnection* CreateClientConnectionForEmbedAtView( | 64 ClientConnection* CreateClientConnectionForEmbedAtView( |
65 ConnectionManager* connection_manager, | 65 ConnectionManager* connection_manager, |
66 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, | 66 mojo::InterfaceRequest<mojo::ViewTree> tree_request, |
67 mojo::ConnectionSpecificId creator_id, | 67 mojo::ConnectionSpecificId creator_id, |
68 mojo::URLRequestPtr request, | 68 mojo::URLRequestPtr request, |
69 const ViewId& root_id) override; | 69 const ViewId& root_id) override; |
70 ClientConnection* CreateClientConnectionForEmbedAtView( | 70 ClientConnection* CreateClientConnectionForEmbedAtView( |
71 ConnectionManager* connection_manager, | 71 ConnectionManager* connection_manager, |
72 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, | 72 mojo::InterfaceRequest<mojo::ViewTree> tree_request, |
73 mojo::ConnectionSpecificId creator_id, | 73 mojo::ConnectionSpecificId creator_id, |
74 const ViewId& root_id, | 74 const ViewId& root_id, |
75 mojo::ViewManagerClientPtr view_manager_client) override; | 75 mojo::ViewTreeClientPtr client) override; |
76 | 76 |
77 // mojo::InterfaceFactory<mojo::ViewManagerRoot>: | 77 // mojo::InterfaceFactory<mojo::ViewManagerRoot>: |
78 void Create(mojo::ApplicationConnection* connection, | 78 void Create(mojo::ApplicationConnection* connection, |
79 mojo::InterfaceRequest<mojo::ViewManagerRoot> request) override; | 79 mojo::InterfaceRequest<mojo::ViewManagerRoot> request) override; |
80 | 80 |
81 // mojo::InterfaceFactory<mojo::Gpu> implementation. | 81 // mojo::InterfaceFactory<mojo::Gpu> implementation. |
82 void Create(mojo::ApplicationConnection* connection, | 82 void Create(mojo::ApplicationConnection* connection, |
83 mojo::InterfaceRequest<mojo::Gpu> request) override; | 83 mojo::InterfaceRequest<mojo::Gpu> request) override; |
84 | 84 |
85 // InterfaceFactory<Surface> implementation. | 85 // InterfaceFactory<Surface> implementation. |
(...skipping 14 matching lines...) Expand all Loading... |
100 // Surfaces | 100 // Surfaces |
101 std::set<surfaces::SurfacesImpl*> surfaces_; | 101 std::set<surfaces::SurfacesImpl*> surfaces_; |
102 scoped_refptr<surfaces::SurfacesState> surfaces_state_; | 102 scoped_refptr<surfaces::SurfacesState> surfaces_state_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); | 104 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace view_manager | 107 } // namespace view_manager |
108 | 108 |
109 #endif // COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 109 #endif // COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
OLD | NEW |