| 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 "cc/surfaces/surface_info.h" | 15 #include "cc/surfaces/surface_info.h" |
| 16 #include "services/ui/public/cpp/client_compositor_frame_sink.h" | 16 #include "services/ui/public/cpp/client_compositor_frame_sink.h" |
| 17 #include "services/ui/public/interfaces/cursor.mojom.h" | 17 #include "services/ui/public/interfaces/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 cc { |
| 28 class LocalSurfaceId; |
| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 void ReorderFromServer(WindowMus* child, | 215 void ReorderFromServer(WindowMus* child, |
| 212 WindowMus* relative, | 216 WindowMus* relative, |
| 213 ui::mojom::OrderDirection) override; | 217 ui::mojom::OrderDirection) override; |
| 214 void SetBoundsFromServer(const gfx::Rect& bounds) override; | 218 void SetBoundsFromServer(const gfx::Rect& bounds) override; |
| 215 void SetVisibleFromServer(bool visible) override; | 219 void SetVisibleFromServer(bool visible) override; |
| 216 void SetOpacityFromServer(float opacity) override; | 220 void SetOpacityFromServer(float opacity) override; |
| 217 void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) override; | 221 void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) override; |
| 218 void SetPropertyFromServer( | 222 void SetPropertyFromServer( |
| 219 const std::string& property_name, | 223 const std::string& property_name, |
| 220 const std::vector<uint8_t>* property_data) override; | 224 const std::vector<uint8_t>* property_data) override; |
| 225 void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) override; |
| 226 void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) override; |
| 221 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override; | 227 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override; |
| 222 void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override; | 228 const cc::LocalSurfaceId& GetLocalSurfaceId() override; |
| 229 const cc::LocalSurfaceId& AllocateLocalSurfaceIdForSize( |
| 230 const gfx::Size& new_size) override; |
| 223 void DestroyFromServer() override; | 231 void DestroyFromServer() override; |
| 224 void AddTransientChildFromServer(WindowMus* child) override; | 232 void AddTransientChildFromServer(WindowMus* child) override; |
| 225 void RemoveTransientChildFromServer(WindowMus* child) override; | 233 void RemoveTransientChildFromServer(WindowMus* child) override; |
| 226 ChangeSource OnTransientChildAdded(WindowMus* child) override; | 234 ChangeSource OnTransientChildAdded(WindowMus* child) override; |
| 227 ChangeSource OnTransientChildRemoved(WindowMus* child) override; | 235 ChangeSource OnTransientChildRemoved(WindowMus* child) override; |
| 228 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( | 236 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( |
| 229 const gfx::Rect& bounds) override; | 237 const gfx::Rect& bounds) override; |
| 230 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( | 238 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( |
| 231 bool value) override; | 239 bool value) override; |
| 232 void PrepareForDestroy() override; | 240 void PrepareForDestroy() override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 257 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder; | 265 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder; |
| 258 | 266 |
| 259 ServerChangeIdType next_server_change_id_ = 0; | 267 ServerChangeIdType next_server_change_id_ = 0; |
| 260 ServerChanges server_changes_; | 268 ServerChanges server_changes_; |
| 261 | 269 |
| 262 cc::FrameSinkId frame_sink_id_; | 270 cc::FrameSinkId frame_sink_id_; |
| 263 base::Closure pending_compositor_frame_sink_request_; | 271 base::Closure pending_compositor_frame_sink_request_; |
| 264 | 272 |
| 265 cc::SurfaceInfo surface_info_; | 273 cc::SurfaceInfo surface_info_; |
| 266 | 274 |
| 275 cc::LocalSurfaceId local_surface_id_; |
| 276 cc::LocalSurfaceIdAllocator local_surface_id_allocator_; |
| 277 gfx::Size last_size_; |
| 278 |
| 267 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; | 279 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; |
| 268 | 280 |
| 269 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 281 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
| 270 }; | 282 }; |
| 271 | 283 |
| 272 } // namespace aura | 284 } // namespace aura |
| 273 | 285 |
| 274 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 286 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
| OLD | NEW |