Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: ui/aura/mus/window_port_mus.h

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Update Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "cc/surfaces/surface_info.h" 15 #include "cc/surfaces/surface_info.h"
16 #include "components/viz/client/client_compositor_frame_sink.h" 16 #include "components/viz/client/client_compositor_frame_sink.h"
17 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" 17 #include "services/ui/public/interfaces/cursor/cursor.mojom.h"
18 #include "services/ui/public/interfaces/window_tree.mojom.h" 18 #include "services/ui/public/interfaces/window_tree.mojom.h"
19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" 19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
20 #include "ui/aura/aura_export.h" 20 #include "ui/aura/aura_export.h"
21 #include "ui/aura/mus/mus_types.h" 21 #include "ui/aura/mus/mus_types.h"
22 #include "ui/aura/mus/window_mus.h" 22 #include "ui/aura/mus/window_mus.h"
23 #include "ui/aura/window_port.h" 23 #include "ui/aura/window_port.h"
24 #include "ui/gfx/geometry/rect.h" 24 #include "ui/gfx/geometry/rect.h"
25 #include "ui/platform_window/mojo/text_input_state.mojom.h" 25 #include "ui/platform_window/mojo/text_input_state.mojom.h"
26 26
27 namespace viz {
28 class ClientCompositorFrameSink;
29 }
30
27 namespace aura { 31 namespace aura {
28 32
29 class ClientSurfaceEmbedder; 33 class ClientSurfaceEmbedder;
30 class PropertyConverter; 34 class PropertyConverter;
31 class Window; 35 class Window;
32 class WindowPortMusTestApi; 36 class WindowPortMusTestApi;
33 class WindowTreeClient; 37 class WindowTreeClient;
34 class WindowTreeClientPrivate; 38 class WindowTreeClientPrivate;
35 class WindowTreeHostMus; 39 class WindowTreeHostMus;
36 40
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 const base::Optional<cc::LocalSurfaceId>& local_surface_id) override; 216 const base::Optional<cc::LocalSurfaceId>& local_surface_id) override;
213 void SetVisibleFromServer(bool visible) override; 217 void SetVisibleFromServer(bool visible) override;
214 void SetOpacityFromServer(float opacity) override; 218 void SetOpacityFromServer(float opacity) override;
215 void SetCursorFromServer(const ui::CursorData& cursor) override; 219 void SetCursorFromServer(const ui::CursorData& cursor) override;
216 void SetPropertyFromServer( 220 void SetPropertyFromServer(
217 const std::string& property_name, 221 const std::string& property_name,
218 const std::vector<uint8_t>* property_data) override; 222 const std::vector<uint8_t>* property_data) override;
219 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override; 223 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override;
220 const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId( 224 const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
221 const gfx::Size& surface_size) override; 225 const gfx::Size& surface_size) override;
222 void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) override; 226 void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override;
223 void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) override;
224 void DestroyFromServer() override; 227 void DestroyFromServer() override;
225 void AddTransientChildFromServer(WindowMus* child) override; 228 void AddTransientChildFromServer(WindowMus* child) override;
226 void RemoveTransientChildFromServer(WindowMus* child) override; 229 void RemoveTransientChildFromServer(WindowMus* child) override;
227 ChangeSource OnTransientChildAdded(WindowMus* child) override; 230 ChangeSource OnTransientChildAdded(WindowMus* child) override;
228 ChangeSource OnTransientChildRemoved(WindowMus* child) override; 231 ChangeSource OnTransientChildRemoved(WindowMus* child) override;
229 const cc::LocalSurfaceId& GetLocalSurfaceId() override; 232 const cc::LocalSurfaceId& GetLocalSurfaceId() override;
230 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( 233 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange(
231 const gfx::Rect& bounds) override; 234 const gfx::Rect& bounds) override;
232 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( 235 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange(
233 bool value) override; 236 bool value) override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 275
273 cc::SurfaceInfo primary_surface_info_; 276 cc::SurfaceInfo primary_surface_info_;
274 cc::SurfaceInfo fallback_surface_info_; 277 cc::SurfaceInfo fallback_surface_info_;
275 278
276 cc::LocalSurfaceId local_surface_id_; 279 cc::LocalSurfaceId local_surface_id_;
277 cc::LocalSurfaceIdAllocator local_surface_id_allocator_; 280 cc::LocalSurfaceIdAllocator local_surface_id_allocator_;
278 gfx::Size last_surface_size_; 281 gfx::Size last_surface_size_;
279 282
280 ui::CursorData cursor_; 283 ui::CursorData cursor_;
281 284
285 base::WeakPtr<viz::ClientCompositorFrameSink> frame_sink_for_local_window_;
286
282 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 287 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
283 }; 288 };
284 289
285 } // namespace aura 290 } // namespace aura
286 291
287 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 292 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698