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 private: | 79 private: |
84 friend class WindowPortMusTestApi; | 80 friend class WindowPortMusTestApi; |
85 friend class WindowTreeClient; | 81 friend class WindowTreeClient; |
86 friend class WindowTreeClientPrivate; | 82 friend class WindowTreeClientPrivate; |
87 friend class WindowTreeHostMus; | 83 friend class WindowTreeHostMus; |
88 | 84 |
89 using ServerChangeIdType = uint8_t; | 85 using ServerChangeIdType = uint8_t; |
90 | 86 |
91 // Changes to the underlying Window originating from the server must be done | 87 // Changes to the underlying Window originating from the server must be done |
92 // in such a way that the same change is not applied back to the server. To | 88 // in such a way that the same change is not applied back to the server. To |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 void OnWillRemoveChild(Window* child) override; | 239 void OnWillRemoveChild(Window* child) override; |
244 void OnWillMoveChild(size_t current_index, size_t dest_index) override; | 240 void OnWillMoveChild(size_t current_index, size_t dest_index) override; |
245 void OnVisibilityChanged(bool visible) override; | 241 void OnVisibilityChanged(bool visible) override; |
246 void OnDidChangeBounds(const gfx::Rect& old_bounds, | 242 void OnDidChangeBounds(const gfx::Rect& old_bounds, |
247 const gfx::Rect& new_bounds) override; | 243 const gfx::Rect& new_bounds) override; |
248 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( | 244 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( |
249 const void* key) override; | 245 const void* key) override; |
250 void OnPropertyChanged(const void* key, | 246 void OnPropertyChanged(const void* key, |
251 int64_t old_value, | 247 int64_t old_value, |
252 std::unique_ptr<ui::PropertyData> data) override; | 248 std::unique_ptr<ui::PropertyData> data) override; |
253 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink() override; | 249 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 250 scoped_refptr<cc::ContextProvider> context_provider, |
| 251 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) override; |
254 cc::SurfaceId GetSurfaceId() const override; | 252 cc::SurfaceId GetSurfaceId() const override; |
255 void OnWindowAddedToRootWindow() override {} | 253 void OnWindowAddedToRootWindow() override {} |
256 void OnWillRemoveWindowFromRootWindow() override {} | 254 void OnWillRemoveWindowFromRootWindow() override {} |
257 | 255 |
258 void UpdatePrimarySurfaceInfo(); | 256 void UpdatePrimarySurfaceInfo(); |
259 void UpdateClientSurfaceEmbedder(); | 257 void UpdateClientSurfaceEmbedder(); |
260 | 258 |
261 WindowTreeClient* window_tree_client_; | 259 WindowTreeClient* window_tree_client_; |
262 | 260 |
263 Window* window_ = nullptr; | 261 Window* window_ = nullptr; |
(...skipping 14 matching lines...) Expand all Loading... |
278 gfx::Size last_surface_size_; | 276 gfx::Size last_surface_size_; |
279 | 277 |
280 ui::CursorData cursor_; | 278 ui::CursorData cursor_; |
281 | 279 |
282 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 280 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
283 }; | 281 }; |
284 | 282 |
285 } // namespace aura | 283 } // namespace aura |
286 | 284 |
287 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 285 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
OLD | NEW |