| 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> |
| 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.mojom.h" |
| 17 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" | 17 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" |
| 18 #include "ui/aura/aura_export.h" | 18 #include "ui/aura/aura_export.h" |
| 19 #include "ui/aura/mus/mus_types.h" | 19 #include "ui/aura/mus/mus_types.h" |
| 20 #include "ui/aura/mus/window_compositor_frame_sink.h" | 20 #include "ui/aura/mus/window_compositor_frame_sink.h" |
| 21 #include "ui/aura/mus/window_mus.h" | 21 #include "ui/aura/mus/window_mus.h" |
| 22 #include "ui/aura/window_port.h" | 22 #include "ui/aura/window_port.h" |
| 23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
| 24 #include "ui/platform_window/mojo/text_input_state.mojom.h" | 24 #include "ui/platform_window/mojo/text_input_state.mojom.h" |
| 25 | 25 |
| 26 namespace aura { | 26 namespace aura { |
| 27 | 27 |
| 28 class ClientSurfaceEmbedder; |
| 28 class PropertyConverter; | 29 class PropertyConverter; |
| 29 class SurfaceIdHandler; | 30 class SurfaceIdHandler; |
| 30 class Window; | 31 class Window; |
| 31 class WindowPortMusTestApi; | 32 class WindowPortMusTestApi; |
| 32 class WindowTreeClient; | 33 class WindowTreeClient; |
| 33 class WindowTreeClientPrivate; | 34 class WindowTreeClientPrivate; |
| 34 class WindowTreeHostMus; | 35 class WindowTreeHostMus; |
| 35 | 36 |
| 36 // WindowPortMus is a WindowPort that forwards calls to WindowTreeClient | 37 // WindowPortMus is a WindowPort that forwards calls to WindowTreeClient |
| 37 // so that changes are propagated to the server. All changes from | 38 // so that changes are propagated to the server. All changes from |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 std::unique_ptr<SurfaceInfo> surface_info_; | 254 std::unique_ptr<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_ |
| OLD | NEW |