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

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

Issue 2647363002: mus: Remove aura version of WindowCompositorFrameSink. (Closed)
Patch Set: tot merge Created 3 years, 11 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
« no previous file with comments | « ui/aura/mus/window_compositor_frame_sink.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/ui/public/cpp/window_compositor_frame_sink.h"
16 #include "services/ui/public/interfaces/cursor.mojom.h" 17 #include "services/ui/public/interfaces/cursor.mojom.h"
17 #include "services/ui/public/interfaces/window_tree.mojom.h" 18 #include "services/ui/public/interfaces/window_tree.mojom.h"
18 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" 19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
19 #include "ui/aura/aura_export.h" 20 #include "ui/aura/aura_export.h"
20 #include "ui/aura/mus/mus_types.h" 21 #include "ui/aura/mus/mus_types.h"
21 #include "ui/aura/mus/window_compositor_frame_sink.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 aura { 27 namespace aura {
28 28
29 class ClientSurfaceEmbedder; 29 class ClientSurfaceEmbedder;
30 class PropertyConverter; 30 class PropertyConverter;
31 class Window; 31 class Window;
(...skipping 23 matching lines...) Expand all
55 55
56 ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; } 56 ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; }
57 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); 57 void SetPredefinedCursor(ui::mojom::Cursor cursor_id);
58 58
59 // Embeds a new client in this Window. See WindowTreeClient::Embed() for 59 // Embeds a new client in this Window. See WindowTreeClient::Embed() for
60 // details on arguments. 60 // details on arguments.
61 void Embed(ui::mojom::WindowTreeClientPtr client, 61 void Embed(ui::mojom::WindowTreeClientPtr client,
62 uint32_t flags, 62 uint32_t flags,
63 const ui::mojom::WindowTree::EmbedCallback& callback); 63 const ui::mojom::WindowTree::EmbedCallback& callback);
64 64
65 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink( 65 std::unique_ptr<ui::WindowCompositorFrameSink> RequestCompositorFrameSink(
66 scoped_refptr<cc::ContextProvider> context_provider, 66 scoped_refptr<cc::ContextProvider> context_provider,
67 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); 67 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
68 68
69 void AttachCompositorFrameSink( 69 void AttachCompositorFrameSink(
70 std::unique_ptr<WindowCompositorFrameSinkBinding> 70 std::unique_ptr<ui::WindowCompositorFrameSinkBinding>
71 compositor_frame_sink_binding); 71 compositor_frame_sink_binding);
72 72
73 private: 73 private:
74 friend class WindowPortMusTestApi; 74 friend class WindowPortMusTestApi;
75 friend class WindowTreeClient; 75 friend class WindowTreeClient;
76 friend class WindowTreeClientPrivate; 76 friend class WindowTreeClientPrivate;
77 friend class WindowTreeHostMus; 77 friend class WindowTreeHostMus;
78 78
79 using ServerChangeIdType = uint8_t; 79 using ServerChangeIdType = uint8_t;
80 80
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 cc::SurfaceInfo surface_info_; 246 cc::SurfaceInfo surface_info_;
247 247
248 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 248 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
249 249
250 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 250 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
251 }; 251 };
252 252
253 } // namespace aura 253 } // namespace aura
254 254
255 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 255 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_compositor_frame_sink.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698