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

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

Issue 2613903003: Reland of "Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embe… (Closed)
Patch Set: fix 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/client_surface_embedder.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/interfaces/cursor.mojom.h" 16 #include "services/ui/public/interfaces/cursor.mojom.h"
17 #include "services/ui/public/interfaces/window_tree.mojom.h" 17 #include "services/ui/public/interfaces/window_tree.mojom.h"
18 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" 18 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
19 #include "ui/aura/aura_export.h" 19 #include "ui/aura/aura_export.h"
20 #include "ui/aura/mus/mus_types.h" 20 #include "ui/aura/mus/mus_types.h"
21 #include "ui/aura/mus/window_compositor_frame_sink.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 PropertyConverter; 30 class PropertyConverter;
30 class SurfaceIdHandler; 31 class SurfaceIdHandler;
31 class Window; 32 class Window;
32 class WindowPortMusTestApi; 33 class WindowPortMusTestApi;
33 class WindowTreeClient; 34 class WindowTreeClient;
34 class WindowTreeClientPrivate; 35 class WindowTreeClientPrivate;
35 class WindowTreeHostMus; 36 class WindowTreeHostMus;
36 37
37 // WindowPortMus is a WindowPort that forwards calls to WindowTreeClient 38 // WindowPortMus is a WindowPort that forwards calls to WindowTreeClient
38 // so that changes are propagated to the server. All changes from 39 // so that changes are propagated to the server. All changes from
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 const gfx::Rect& new_bounds) override; 237 const gfx::Rect& new_bounds) override;
237 std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty( 238 std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty(
238 const void* key) override; 239 const void* key) override;
239 void OnPropertyChanged(const void* key, 240 void OnPropertyChanged(const void* key,
240 std::unique_ptr<WindowPortPropertyData> data) override; 241 std::unique_ptr<WindowPortPropertyData> data) override;
241 242
242 WindowTreeClient* window_tree_client_; 243 WindowTreeClient* window_tree_client_;
243 244
244 Window* window_ = nullptr; 245 Window* window_ = nullptr;
245 246
247 // Used when this window is embedding a client.
248 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder;
249
246 ServerChangeIdType next_server_change_id_ = 0; 250 ServerChangeIdType next_server_change_id_ = 0;
247 ServerChanges server_changes_; 251 ServerChanges server_changes_;
248 252
249 SurfaceIdHandler* surface_id_handler_ = nullptr; 253 SurfaceIdHandler* surface_id_handler_ = nullptr;
250 cc::SurfaceInfo surface_info_; 254 cc::SurfaceInfo surface_info_;
251 255
252 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 256 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
253 257
254 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 258 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
255 }; 259 };
256 260
257 } // namespace aura 261 } // namespace aura
258 262
259 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 263 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/client_surface_embedder.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698