| 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_MUS_MUS_APP_H_ | 5 #ifndef COMPONENTS_MUS_MUS_APP_H_ |
| 6 #define COMPONENTS_MUS_MUS_APP_H_ | 6 #define COMPONENTS_MUS_MUS_APP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // mojo::ShellClient: | 65 // mojo::ShellClient: |
| 66 void Initialize(mojo::Connector* connector, const std::string& url, | 66 void Initialize(mojo::Connector* connector, const std::string& url, |
| 67 uint32_t id, uint32_t user_id) override; | 67 uint32_t id, uint32_t user_id) override; |
| 68 bool AcceptConnection(mojo::Connection* connection) override; | 68 bool AcceptConnection(mojo::Connection* connection) override; |
| 69 | 69 |
| 70 // ConnectionManagerDelegate: | 70 // ConnectionManagerDelegate: |
| 71 void OnFirstRootConnectionCreated() override; | 71 void OnFirstRootConnectionCreated() override; |
| 72 void OnNoMoreRootConnections() override; | 72 void OnNoMoreRootConnections() override; |
| 73 ws::ClientConnection* CreateClientConnectionForEmbedAtWindow( | 73 ws::ClientConnection* CreateClientConnectionForEmbedAtWindow( |
| 74 ws::ConnectionManager* connection_manager, | 74 ws::ConnectionManager* connection_manager, |
| 75 mojo::InterfaceRequest<mojom::WindowTree> tree_request, | 75 mojom::WindowTreeRequest tree_request, |
| 76 ws::ServerWindow* root, | 76 ws::ServerWindow* root, |
| 77 uint32_t policy_bitmask, | 77 uint32_t policy_bitmask, |
| 78 mojom::WindowTreeClientPtr client) override; | 78 mojom::WindowTreeClientPtr client) override; |
| 79 ws::ClientConnection* CreateClientConnectionForWindowManager( |
| 80 ws::WindowTreeHostImpl* tree_host, |
| 81 ws::ServerWindow* root, |
| 82 const mojom::Display& display, |
| 83 uint32_t user_id, |
| 84 mojom::WindowManagerFactory* factory) override; |
| 85 void CreateDefaultWindowTreeHosts() override; |
| 79 | 86 |
| 80 // mojo::InterfaceFactory<mojom::DisplayManager> implementation. | 87 // mojo::InterfaceFactory<mojom::DisplayManager> implementation. |
| 81 void Create(mojo::Connection* connection, | 88 void Create(mojo::Connection* connection, |
| 82 mojo::InterfaceRequest<mojom::DisplayManager> request) override; | 89 mojom::DisplayManagerRequest request) override; |
| 83 | 90 |
| 84 // mojo::InterfaceFactory<mojom::WindowManagerFactoryService> implementation. | 91 // mojo::InterfaceFactory<mojom::WindowManagerFactoryService> implementation. |
| 85 void Create(mojo::Connection* connection, | 92 void Create(mojo::Connection* connection, |
| 86 mojo::InterfaceRequest<mojom::WindowManagerFactoryService> | 93 mojom::WindowManagerFactoryServiceRequest request) override; |
| 87 request) override; | |
| 88 | 94 |
| 89 // mojo::InterfaceFactory<mojom::WindowTreeFactory>: | 95 // mojo::InterfaceFactory<mojom::WindowTreeFactory>: |
| 90 void Create( | 96 void Create(mojo::Connection* connection, |
| 91 mojo::Connection* connection, | 97 mojom::WindowTreeFactoryRequest request) override; |
| 92 mojo::InterfaceRequest<mojom::WindowTreeFactory> request) override; | |
| 93 | 98 |
| 94 // mojo::InterfaceFactory<mojom::WindowTreeHostFactory>: | 99 // mojo::InterfaceFactory<mojom::WindowTreeHostFactory>: |
| 95 void Create( | 100 void Create(mojo::Connection* connection, |
| 96 mojo::Connection* connection, | 101 mojom::WindowTreeHostFactoryRequest request) override; |
| 97 mojo::InterfaceRequest<mojom::WindowTreeHostFactory> request) override; | |
| 98 | 102 |
| 99 // mojo::InterfaceFactory<mojom::Gpu> implementation. | 103 // mojo::InterfaceFactory<mojom::Gpu> implementation. |
| 100 void Create(mojo::Connection* connection, | 104 void Create(mojo::Connection* connection, mojom::GpuRequest request) override; |
| 101 mojo::InterfaceRequest<mojom::Gpu> request) override; | |
| 102 | 105 |
| 103 // mojom::WindowTreeHostFactory implementation. | 106 // mojom::WindowTreeHostFactory implementation. |
| 104 void CreateWindowTreeHost(mojo::InterfaceRequest<mojom::WindowTreeHost> host, | 107 void CreateWindowTreeHost(mojom::WindowTreeHostRequest host, |
| 105 mojom::WindowTreeClientPtr tree_client) override; | 108 mojom::WindowTreeClientPtr tree_client) override; |
| 106 | 109 |
| 107 mojo::BindingSet<mojom::WindowTreeHostFactory> factory_bindings_; | 110 mojo::BindingSet<mojom::WindowTreeHostFactory> factory_bindings_; |
| 108 mojo::Connector* connector_; | 111 mojo::Connector* connector_; |
| 109 scoped_ptr<ws::ConnectionManager> connection_manager_; | 112 scoped_ptr<ws::ConnectionManager> connection_manager_; |
| 110 scoped_refptr<GpuState> gpu_state_; | 113 scoped_refptr<GpuState> gpu_state_; |
| 111 scoped_ptr<ui::PlatformEventSource> event_source_; | 114 scoped_ptr<ui::PlatformEventSource> event_source_; |
| 112 mojo::TracingImpl tracing_; | 115 mojo::TracingImpl tracing_; |
| 113 using PendingRequests = std::vector<scoped_ptr<PendingRequest>>; | 116 using PendingRequests = std::vector<scoped_ptr<PendingRequest>>; |
| 114 PendingRequests pending_requests_; | 117 PendingRequests pending_requests_; |
| 115 scoped_ptr<ws::WindowTreeFactory> window_tree_factory_; | 118 scoped_ptr<ws::WindowTreeFactory> window_tree_factory_; |
| 116 | 119 |
| 117 // Surfaces | 120 // Surfaces |
| 118 scoped_refptr<SurfacesState> surfaces_state_; | 121 scoped_refptr<SurfacesState> surfaces_state_; |
| 119 | 122 |
| 120 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp); | 123 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp); |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace mus | 126 } // namespace mus |
| 124 | 127 |
| 125 #endif // COMPONENTS_MUS_MUS_APP_H_ | 128 #endif // COMPONENTS_MUS_MUS_APP_H_ |
| OLD | NEW |