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

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

Issue 2576533003: Converts some services to use aura-mus (Closed)
Patch Set: remove log Created 4 years 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/BUILD.gn ('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 "services/ui/public/interfaces/cursor.mojom.h" 15 #include "services/ui/public/interfaces/cursor.mojom.h"
16 #include "services/ui/public/interfaces/window_tree.mojom.h"
16 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" 17 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
17 #include "ui/aura/aura_export.h" 18 #include "ui/aura/aura_export.h"
18 #include "ui/aura/mus/mus_types.h" 19 #include "ui/aura/mus/mus_types.h"
19 #include "ui/aura/mus/window_compositor_frame_sink.h" 20 #include "ui/aura/mus/window_compositor_frame_sink.h"
20 #include "ui/aura/mus/window_mus.h" 21 #include "ui/aura/mus/window_mus.h"
21 #include "ui/aura/window_port.h" 22 #include "ui/aura/window_port.h"
22 #include "ui/gfx/geometry/rect.h" 23 #include "ui/gfx/geometry/rect.h"
23 #include "ui/platform_window/mojo/text_input_state.mojom.h" 24 #include "ui/platform_window/mojo/text_input_state.mojom.h"
24 25
25 namespace aura { 26 namespace aura {
(...skipping 21 matching lines...) Expand all
47 48
48 Window* window() { return window_; } 49 Window* window() { return window_; }
49 const Window* window() const { return window_; } 50 const Window* window() const { return window_; }
50 51
51 void SetTextInputState(mojo::TextInputStatePtr state); 52 void SetTextInputState(mojo::TextInputStatePtr state);
52 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); 53 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state);
53 54
54 ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; } 55 ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; }
55 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); 56 void SetPredefinedCursor(ui::mojom::Cursor cursor_id);
56 57
58 // Embeds a new client in this Window. See WindowTreeClient::Embed() for
59 // details on arguments.
60 void Embed(ui::mojom::WindowTreeClientPtr client,
61 uint32_t flags,
62 const ui::mojom::WindowTree::EmbedCallback& callback);
63
57 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink( 64 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink(
58 ui::mojom::CompositorFrameSinkType type, 65 ui::mojom::CompositorFrameSinkType type,
59 scoped_refptr<cc::ContextProvider> context_provider, 66 scoped_refptr<cc::ContextProvider> context_provider,
60 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); 67 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
61 68
62 void AttachCompositorFrameSink( 69 void AttachCompositorFrameSink(
63 ui::mojom::CompositorFrameSinkType type, 70 ui::mojom::CompositorFrameSinkType type,
64 std::unique_ptr<WindowCompositorFrameSinkBinding> 71 std::unique_ptr<WindowCompositorFrameSinkBinding>
65 compositor_frame_sink_binding); 72 compositor_frame_sink_binding);
66 73
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::unique_ptr<SurfaceInfo> surface_info_; 250 std::unique_ptr<SurfaceInfo> surface_info_;
244 251
245 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 252 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
246 253
247 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 254 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
248 }; 255 };
249 256
250 } // namespace aura 257 } // namespace aura
251 258
252 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 259 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/BUILD.gn ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698