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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "components/mus/public/interfaces/display.mojom.h" | 15 #include "components/mus/public/interfaces/display.mojom.h" |
16 #include "components/mus/public/interfaces/gpu.mojom.h" | 16 #include "components/mus/public/interfaces/gpu.mojom.h" |
17 #include "components/mus/public/interfaces/window_manager_factory.mojom.h" | 17 #include "components/mus/public/interfaces/window_manager_factory.mojom.h" |
18 #include "components/mus/public/interfaces/window_tree.mojom.h" | 18 #include "components/mus/public/interfaces/window_tree.mojom.h" |
19 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 19 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
20 #include "components/mus/ws/connection_manager_delegate.h" | 20 #include "components/mus/ws/connection_manager_delegate.h" |
21 #include "mojo/public/cpp/bindings/weak_binding_set.h" | 21 #include "mojo/public/cpp/bindings/binding_set.h" |
22 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 22 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
23 #include "mojo/shell/public/cpp/interface_factory.h" | 23 #include "mojo/shell/public/cpp/interface_factory.h" |
24 #include "mojo/shell/public/cpp/shell_client.h" | 24 #include "mojo/shell/public/cpp/shell_client.h" |
25 | 25 |
26 namespace mojo { | 26 namespace mojo { |
27 class Shell; | 27 class Shell; |
28 } | 28 } |
29 | 29 |
30 namespace ui { | 30 namespace ui { |
31 class PlatformEventSource; | 31 class PlatformEventSource; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 mojo::InterfaceRequest<mojom::WindowTreeHostFactory> request) override; | 97 mojo::InterfaceRequest<mojom::WindowTreeHostFactory> request) override; |
98 | 98 |
99 // mojo::InterfaceFactory<mojom::Gpu> implementation. | 99 // mojo::InterfaceFactory<mojom::Gpu> implementation. |
100 void Create(mojo::Connection* connection, | 100 void Create(mojo::Connection* connection, |
101 mojo::InterfaceRequest<mojom::Gpu> request) override; | 101 mojo::InterfaceRequest<mojom::Gpu> request) override; |
102 | 102 |
103 // mojom::WindowTreeHostFactory implementation. | 103 // mojom::WindowTreeHostFactory implementation. |
104 void CreateWindowTreeHost(mojo::InterfaceRequest<mojom::WindowTreeHost> host, | 104 void CreateWindowTreeHost(mojo::InterfaceRequest<mojom::WindowTreeHost> host, |
105 mojom::WindowTreeClientPtr tree_client) override; | 105 mojom::WindowTreeClientPtr tree_client) override; |
106 | 106 |
107 mojo::WeakBindingSet<mojom::WindowTreeHostFactory> factory_bindings_; | 107 mojo::BindingSet<mojom::WindowTreeHostFactory> factory_bindings_; |
108 mojo::Shell* shell_; | 108 mojo::Shell* shell_; |
109 scoped_ptr<ws::ConnectionManager> connection_manager_; | 109 scoped_ptr<ws::ConnectionManager> connection_manager_; |
110 scoped_refptr<GpuState> gpu_state_; | 110 scoped_refptr<GpuState> gpu_state_; |
111 scoped_ptr<ui::PlatformEventSource> event_source_; | 111 scoped_ptr<ui::PlatformEventSource> event_source_; |
112 mojo::TracingImpl tracing_; | 112 mojo::TracingImpl tracing_; |
113 using PendingRequests = std::vector<scoped_ptr<PendingRequest>>; | 113 using PendingRequests = std::vector<scoped_ptr<PendingRequest>>; |
114 PendingRequests pending_requests_; | 114 PendingRequests pending_requests_; |
115 scoped_ptr<ws::WindowTreeFactory> window_tree_factory_; | 115 scoped_ptr<ws::WindowTreeFactory> window_tree_factory_; |
116 | 116 |
117 // Surfaces | 117 // Surfaces |
118 scoped_refptr<SurfacesState> surfaces_state_; | 118 scoped_refptr<SurfacesState> surfaces_state_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp); | 120 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace mus | 123 } // namespace mus |
124 | 124 |
125 #endif // COMPONENTS_MUS_MUS_APP_H_ | 125 #endif // COMPONENTS_MUS_MUS_APP_H_ |
OLD | NEW |