| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ | 6 #define CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "mojo/public/cpp/bindings/binding.h" | 9 #include "mojo/public/cpp/bindings/binding.h" |
| 10 #include "services/ui/common/types.h" | 10 #include "services/ui/common/types.h" |
| 11 #include "services/ui/public/interfaces/window_tree.mojom.h" | 11 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 class CompositorFrameSink; | 14 class CompositorFrameSink; |
| 15 class ContextProvider; | 15 class ContextProvider; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace gpu { | 18 namespace gpu { |
| 19 class GpuMemoryBufferManager; | 19 class GpuMemoryBufferManager; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace ui { | 22 namespace ui { |
| 23 class WindowCompositorFrameSinkBinding; | 23 class ClientCompositorFrameSinkBinding; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 | 27 |
| 28 // ui.mojom.WindowTreeClient implementation for RenderWidget. This lives and | 28 // ui.mojom.WindowTreeClient implementation for RenderWidget. This lives and |
| 29 // operates on the renderer's main thread. | 29 // operates on the renderer's main thread. |
| 30 class RendererWindowTreeClient : public ui::mojom::WindowTreeClient { | 30 class RendererWindowTreeClient : public ui::mojom::WindowTreeClient { |
| 31 public: | 31 public: |
| 32 // Creates a RendererWindowTreeClient instance for the RenderWidget instance | 32 // Creates a RendererWindowTreeClient instance for the RenderWidget instance |
| 33 // associated with |routing_id| (if one doesn't already exist). The instance | 33 // associated with |routing_id| (if one doesn't already exist). The instance |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 void OnDragDropDone() override; | 143 void OnDragDropDone() override; |
| 144 void OnChangeCompleted(uint32_t change_id, bool success) override; | 144 void OnChangeCompleted(uint32_t change_id, bool success) override; |
| 145 void RequestClose(uint32_t window_id) override; | 145 void RequestClose(uint32_t window_id) override; |
| 146 void GetWindowManager( | 146 void GetWindowManager( |
| 147 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManager> internal) | 147 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManager> internal) |
| 148 override; | 148 override; |
| 149 | 149 |
| 150 const int routing_id_; | 150 const int routing_id_; |
| 151 ui::Id root_window_id_; | 151 ui::Id root_window_id_; |
| 152 ui::mojom::WindowTreePtr tree_; | 152 ui::mojom::WindowTreePtr tree_; |
| 153 std::unique_ptr<ui::WindowCompositorFrameSinkBinding> pending_frame_sink_; | 153 std::unique_ptr<ui::ClientCompositorFrameSinkBinding> pending_frame_sink_; |
| 154 mojo::Binding<ui::mojom::WindowTreeClient> binding_; | 154 mojo::Binding<ui::mojom::WindowTreeClient> binding_; |
| 155 | 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(RendererWindowTreeClient); | 156 DISALLOW_COPY_AND_ASSIGN(RendererWindowTreeClient); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace content | 159 } // namespace content |
| 160 | 160 |
| 161 #endif // CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ | 161 #endif // CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |