| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_GFX_COMPOSITOR_COMPOSITOR_APP_H_ | 5 #ifndef SERVICES_GFX_COMPOSITOR_COMPOSITOR_APP_H_ |
| 6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_APP_H_ | 6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_APP_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 CompositorApp(); | 26 CompositorApp(); |
| 27 ~CompositorApp() override; | 27 ~CompositorApp() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // |ApplicationDelegate|: | 30 // |ApplicationDelegate|: |
| 31 void Initialize(mojo::ApplicationImpl* app_impl) override; | 31 void Initialize(mojo::ApplicationImpl* app_impl) override; |
| 32 bool ConfigureIncomingConnection( | 32 bool ConfigureIncomingConnection( |
| 33 mojo::ApplicationConnection* connection) override; | 33 mojo::ApplicationConnection* connection) override; |
| 34 | 34 |
| 35 // |InterfaceFactory<Compositor>|: | 35 // |InterfaceFactory<Compositor>|: |
| 36 void Create(mojo::ApplicationConnection* connection, | 36 void Create(const mojo::ConnectionContext& connection_context, |
| 37 mojo::InterfaceRequest<mojo::gfx::composition::Compositor> | 37 mojo::InterfaceRequest<mojo::gfx::composition::Compositor> |
| 38 request) override; | 38 request) override; |
| 39 | 39 |
| 40 mojo::ApplicationImpl* app_impl_; | 40 mojo::ApplicationImpl* app_impl_; |
| 41 mojo::TracingImpl tracing_; | 41 mojo::TracingImpl tracing_; |
| 42 | 42 |
| 43 mojo::StrongBindingSet<mojo::gfx::composition::Compositor> | 43 mojo::StrongBindingSet<mojo::gfx::composition::Compositor> |
| 44 compositor_bindings_; | 44 compositor_bindings_; |
| 45 std::unique_ptr<CompositorEngine> engine_; | 45 std::unique_ptr<CompositorEngine> engine_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(CompositorApp); | 47 DISALLOW_COPY_AND_ASSIGN(CompositorApp); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace compositor | 50 } // namespace compositor |
| 51 | 51 |
| 52 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_APP_H_ | 52 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_APP_H_ |
| OLD | NEW |