| 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_RENDERER_IMPL_H_ | 5 #ifndef SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ |
| 6 #define SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ | 6 #define SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "mojo/common/binding_set.h" | 10 #include "mojo/common/binding_set.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 void set_connection_error_handler(const base::Closure& handler) { | 29 void set_connection_error_handler(const base::Closure& handler) { |
| 30 renderer_binding_.set_connection_error_handler(handler); | 30 renderer_binding_.set_connection_error_handler(handler); |
| 31 } | 31 } |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // |Renderer|: | 34 // |Renderer|: |
| 35 void SetRootScene(mojo::gfx::composition::SceneTokenPtr scene_token, | 35 void SetRootScene(mojo::gfx::composition::SceneTokenPtr scene_token, |
| 36 uint32 scene_version, | 36 uint32 scene_version, |
| 37 mojo::RectPtr viewport) override; | 37 mojo::RectPtr viewport) override; |
| 38 void ResetRootScene() override; |
| 38 void GetHitTester(mojo::InterfaceRequest<mojo::gfx::composition::HitTester> | 39 void GetHitTester(mojo::InterfaceRequest<mojo::gfx::composition::HitTester> |
| 39 hit_tester_request) override; | 40 hit_tester_request) override; |
| 40 | 41 |
| 41 // |HitTester|: | 42 // |HitTester|: |
| 42 void HitTest(mojo::PointPtr point, const HitTestCallback& callback) override; | 43 void HitTest(mojo::PointPtr point, const HitTestCallback& callback) override; |
| 43 | 44 |
| 44 CompositorEngine* const engine_; | 45 CompositorEngine* const engine_; |
| 45 RendererState* const state_; | 46 RendererState* const state_; |
| 46 mojo::Binding<mojo::gfx::composition::Renderer> renderer_binding_; | 47 mojo::Binding<mojo::gfx::composition::Renderer> renderer_binding_; |
| 47 mojo::BindingSet<mojo::gfx::composition::HitTester> hit_tester_bindings; | 48 mojo::BindingSet<mojo::gfx::composition::HitTester> hit_tester_bindings; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 50 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace compositor | 53 } // namespace compositor |
| 53 | 54 |
| 54 #endif // SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ | 55 #endif // SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ |
| OLD | NEW |