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> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 static WindowPortMus* Get(Window* window); | 48 static WindowPortMus* Get(Window* window); |
49 | 49 |
50 Window* window() { return window_; } | 50 Window* window() { return window_; } |
51 const Window* window() const { return window_; } | 51 const Window* window() const { return window_; } |
52 | 52 |
53 ClientSurfaceEmbedder* client_surface_embedder() const { | 53 ClientSurfaceEmbedder* client_surface_embedder() const { |
54 return client_surface_embedder_.get(); | 54 return client_surface_embedder_.get(); |
55 } | 55 } |
56 | 56 |
| 57 const cc::SurfaceInfo& PrimarySurfaceInfoForTesting() const { |
| 58 return primary_surface_info_; |
| 59 } |
| 60 |
57 void SetTextInputState(mojo::TextInputStatePtr state); | 61 void SetTextInputState(mojo::TextInputStatePtr state); |
58 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); | 62 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); |
59 | 63 |
60 ui::mojom::CursorType predefined_cursor() const { return predefined_cursor_; } | 64 ui::mojom::CursorType predefined_cursor() const { return predefined_cursor_; } |
61 void SetPredefinedCursor(ui::mojom::CursorType cursor_id); | 65 void SetPredefinedCursor(ui::mojom::CursorType cursor_id); |
62 | 66 |
63 // Sets the EventTargetingPolicy, default is TARGET_AND_DESCENDANTS. | 67 // Sets the EventTargetingPolicy, default is TARGET_AND_DESCENDANTS. |
64 void SetEventTargetingPolicy(ui::mojom::EventTargetingPolicy policy); | 68 void SetEventTargetingPolicy(ui::mojom::EventTargetingPolicy policy); |
65 | 69 |
66 // Sets whether this window can accept drops, defaults to false. | 70 // Sets whether this window can accept drops, defaults to false. |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // Used when this window is embedding a client. | 273 // Used when this window is embedding a client. |
270 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder_; | 274 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder_; |
271 | 275 |
272 ServerChangeIdType next_server_change_id_ = 0; | 276 ServerChangeIdType next_server_change_id_ = 0; |
273 ServerChanges server_changes_; | 277 ServerChanges server_changes_; |
274 | 278 |
275 cc::FrameSinkId frame_sink_id_; | 279 cc::FrameSinkId frame_sink_id_; |
276 base::Closure pending_compositor_frame_sink_request_; | 280 base::Closure pending_compositor_frame_sink_request_; |
277 | 281 |
278 cc::SurfaceInfo primary_surface_info_; | 282 cc::SurfaceInfo primary_surface_info_; |
| 283 cc::SurfaceInfo fallback_surface_info_; |
279 | 284 |
280 cc::LocalSurfaceId local_surface_id_; | 285 cc::LocalSurfaceId local_surface_id_; |
281 cc::LocalSurfaceIdAllocator local_surface_id_allocator_; | 286 cc::LocalSurfaceIdAllocator local_surface_id_allocator_; |
282 gfx::Size last_surface_size_; | 287 gfx::Size last_surface_size_; |
283 | 288 |
284 ui::mojom::CursorType predefined_cursor_ = ui::mojom::CursorType::CURSOR_NULL; | 289 ui::mojom::CursorType predefined_cursor_ = ui::mojom::CursorType::CURSOR_NULL; |
285 | 290 |
286 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 291 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
287 }; | 292 }; |
288 | 293 |
289 } // namespace aura | 294 } // namespace aura |
290 | 295 |
291 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 296 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
OLD | NEW |