OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Sets whether this window can accept drops, defaults to false. | 70 // Sets whether this window can accept drops, defaults to false. |
71 void SetCanAcceptDrops(bool can_accept_drops); | 71 void SetCanAcceptDrops(bool can_accept_drops); |
72 | 72 |
73 // Embeds a new client in this Window. See WindowTreeClient::Embed() for | 73 // Embeds a new client in this Window. See WindowTreeClient::Embed() for |
74 // details on arguments. | 74 // details on arguments. |
75 void Embed(ui::mojom::WindowTreeClientPtr client, | 75 void Embed(ui::mojom::WindowTreeClientPtr client, |
76 uint32_t flags, | 76 uint32_t flags, |
77 const ui::mojom::WindowTree::EmbedCallback& callback); | 77 const ui::mojom::WindowTree::EmbedCallback& callback); |
78 | 78 |
79 std::unique_ptr<cc::CompositorFrameSink> RequestCompositorFrameSink( | |
80 scoped_refptr<cc::ContextProvider> context_provider, | |
81 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | |
82 | |
83 void AttachCompositorFrameSink( | 79 void AttachCompositorFrameSink( |
84 std::unique_ptr<ui::ClientCompositorFrameSinkBinding> | 80 std::unique_ptr<ui::ClientCompositorFrameSinkBinding> |
85 compositor_frame_sink_binding); | 81 compositor_frame_sink_binding); |
86 | 82 |
87 private: | 83 private: |
88 friend class WindowPortMusTestApi; | 84 friend class WindowPortMusTestApi; |
89 friend class WindowTreeClient; | 85 friend class WindowTreeClient; |
90 friend class WindowTreeClientPrivate; | 86 friend class WindowTreeClientPrivate; |
91 friend class WindowTreeHostMus; | 87 friend class WindowTreeHostMus; |
92 | 88 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 void OnWillRemoveChild(Window* child) override; | 243 void OnWillRemoveChild(Window* child) override; |
248 void OnWillMoveChild(size_t current_index, size_t dest_index) override; | 244 void OnWillMoveChild(size_t current_index, size_t dest_index) override; |
249 void OnVisibilityChanged(bool visible) override; | 245 void OnVisibilityChanged(bool visible) override; |
250 void OnDidChangeBounds(const gfx::Rect& old_bounds, | 246 void OnDidChangeBounds(const gfx::Rect& old_bounds, |
251 const gfx::Rect& new_bounds) override; | 247 const gfx::Rect& new_bounds) override; |
252 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( | 248 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( |
253 const void* key) override; | 249 const void* key) override; |
254 void OnPropertyChanged(const void* key, | 250 void OnPropertyChanged(const void* key, |
255 int64_t old_value, | 251 int64_t old_value, |
256 std::unique_ptr<ui::PropertyData> data) override; | 252 std::unique_ptr<ui::PropertyData> data) override; |
257 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink() override; | 253 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 254 scoped_refptr<cc::ContextProvider> context_provider, |
| 255 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) override; |
258 cc::SurfaceId GetSurfaceId() const override; | 256 cc::SurfaceId GetSurfaceId() const override; |
259 void OnWindowAddedToRootWindow() override {} | 257 void OnWindowAddedToRootWindow() override {} |
260 void OnWillRemoveWindowFromRootWindow() override {} | 258 void OnWillRemoveWindowFromRootWindow() override {} |
261 | 259 |
262 void UpdatePrimarySurfaceInfo(); | 260 void UpdatePrimarySurfaceInfo(); |
263 void UpdateClientSurfaceEmbedder(); | 261 void UpdateClientSurfaceEmbedder(); |
264 | 262 |
265 WindowTreeClient* window_tree_client_; | 263 WindowTreeClient* window_tree_client_; |
266 | 264 |
267 Window* window_ = nullptr; | 265 Window* window_ = nullptr; |
(...skipping 14 matching lines...) Expand all Loading... |
282 gfx::Size last_surface_size_; | 280 gfx::Size last_surface_size_; |
283 | 281 |
284 ui::CursorData cursor_; | 282 ui::CursorData cursor_; |
285 | 283 |
286 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 284 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
287 }; | 285 }; |
288 | 286 |
289 } // namespace aura | 287 } // namespace aura |
290 | 288 |
291 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 289 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
OLD | NEW |