OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 module ui.mojom; | 5 module ui.mojom; |
6 | 6 |
7 import "cc/ipc/surface_id.mojom"; | 7 import "cc/ipc/surface_id.mojom"; |
| 8 import "cc/ipc/surface_sequence.mojom"; |
8 import "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
9 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
10 import "services/ui/public/interfaces/mus_constants.mojom"; | 11 import "services/ui/public/interfaces/mus_constants.mojom"; |
11 import "services/ui/public/interfaces/surface.mojom"; | 12 import "services/ui/public/interfaces/surface.mojom"; |
12 import "services/ui/public/interfaces/window_manager.mojom"; | 13 import "services/ui/public/interfaces/window_manager.mojom"; |
13 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 14 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
14 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 15 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
15 import "ui/events/mojo/event.mojom"; | 16 import "ui/events/mojo/event.mojom"; |
16 import "ui/gfx/geometry/mojo/geometry.mojom"; | 17 import "ui/gfx/geometry/mojo/geometry.mojom"; |
17 import "ui/platform_window/mojo/text_input_state.mojom"; | 18 import "ui/platform_window/mojo/text_input_state.mojom"; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 136 |
136 // Sets the opacity of the specified window to |opacity|. | 137 // Sets the opacity of the specified window to |opacity|. |
137 SetWindowOpacity(uint32 change_id, uint32 window_id, float opacity); | 138 SetWindowOpacity(uint32 change_id, uint32 window_id, float opacity); |
138 | 139 |
139 // Attaches a Surface to a particular window. | 140 // Attaches a Surface to a particular window. |
140 AttachSurface(uint32 window_id, | 141 AttachSurface(uint32 window_id, |
141 SurfaceType type, | 142 SurfaceType type, |
142 Surface& surface, | 143 Surface& surface, |
143 SurfaceClient client); | 144 SurfaceClient client); |
144 | 145 |
| 146 // Returns reference to the surface. |
| 147 SatisfySurfaceSequence(uint32 window_id, |
| 148 cc.mojom.SurfaceSequence sequence); |
| 149 |
145 // Reparents a window. | 150 // Reparents a window. |
146 // This fails for any of the following reasons: | 151 // This fails for any of the following reasons: |
147 // . |parent| or |child| does not identify a valid window. | 152 // . |parent| or |child| does not identify a valid window. |
148 // . |child| is an ancestor of |parent|. | 153 // . |child| is an ancestor of |parent|. |
149 // . |child| is already a child of |parent|. | 154 // . |child| is already a child of |parent|. |
150 // | 155 // |
151 // This may result in a connection getting OnWindowDeleted(). See | 156 // This may result in a connection getting OnWindowDeleted(). See |
152 // RemoveWindowFromParent for details. | 157 // RemoveWindowFromParent for details. |
153 AddWindow(uint32 change_id, uint32 parent, uint32 child); | 158 AddWindow(uint32 change_id, uint32 parent, uint32 child); |
154 | 159 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 OnTopLevelCreated(uint32 change_id, | 338 OnTopLevelCreated(uint32 change_id, |
334 WindowData data, | 339 WindowData data, |
335 int64 display_id, | 340 int64 display_id, |
336 bool parent_drawn); | 341 bool parent_drawn); |
337 | 342 |
338 // Invoked when a window's bounds have changed. | 343 // Invoked when a window's bounds have changed. |
339 OnWindowBoundsChanged(uint32 window, | 344 OnWindowBoundsChanged(uint32 window, |
340 gfx.mojom.Rect old_bounds, | 345 gfx.mojom.Rect old_bounds, |
341 gfx.mojom.Rect new_bounds); | 346 gfx.mojom.Rect new_bounds); |
342 | 347 |
| 348 // Invoked when a client window submits a new surface ID. |
| 349 OnWindowSurfaceCreated(uint32 window_id, |
| 350 gfx.mojom.Size size, |
| 351 float device_scale_factor, |
| 352 cc.mojom.SurfaceId surface_id, |
| 353 cc.mojom.SurfaceSequence surface_sequence); |
| 354 |
343 OnClientAreaChanged(uint32 window_id, | 355 OnClientAreaChanged(uint32 window_id, |
344 gfx.mojom.Insets new_client_area, | 356 gfx.mojom.Insets new_client_area, |
345 array<gfx.mojom.Rect> new_additional_client_areas); | 357 array<gfx.mojom.Rect> new_additional_client_areas); |
346 | 358 |
347 OnTransientWindowAdded(uint32 window_id, | 359 OnTransientWindowAdded(uint32 window_id, |
348 uint32 transient_window_id); | 360 uint32 transient_window_id); |
349 | 361 |
350 OnTransientWindowRemoved(uint32 window_id, | 362 OnTransientWindowRemoved(uint32 window_id, |
351 uint32 transient_window_id); | 363 uint32 transient_window_id); |
352 | 364 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 // See description of WindowManager for details. | 488 // See description of WindowManager for details. |
477 GetWindowManager(associated WindowManager& internal); | 489 GetWindowManager(associated WindowManager& internal); |
478 }; | 490 }; |
479 | 491 |
480 // Mus provides this interface as a way for clients to connect and obtain a | 492 // Mus provides this interface as a way for clients to connect and obtain a |
481 // WindowTree handle with a supplied WindowTreeClient handle. The | 493 // WindowTree handle with a supplied WindowTreeClient handle. The |
482 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 494 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
483 interface WindowTreeFactory { | 495 interface WindowTreeFactory { |
484 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 496 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
485 }; | 497 }; |
OLD | NEW |