| 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 "cc/ipc/surface_sequence.mojom"; |
| 9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
| 9 import "services/ui/public/interfaces/cursor.mojom"; | 10 import "services/ui/public/interfaces/cursor.mojom"; |
| 10 import "services/ui/public/interfaces/event_matcher.mojom"; | 11 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 11 import "services/ui/public/interfaces/mus_constants.mojom"; | 12 import "services/ui/public/interfaces/mus_constants.mojom"; |
| 12 import "services/ui/public/interfaces/surface.mojom"; | |
| 13 import "services/ui/public/interfaces/window_manager.mojom"; | 13 import "services/ui/public/interfaces/window_manager.mojom"; |
| 14 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 14 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| 15 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 15 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
| 16 import "ui/events/mojo/event.mojom"; | 16 import "ui/events/mojo/event.mojom"; |
| 17 import "ui/gfx/geometry/mojo/geometry.mojom"; | 17 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 18 import "ui/platform_window/mojo/text_input_state.mojom"; | 18 import "ui/platform_window/mojo/text_input_state.mojom"; |
| 19 | 19 |
| 20 // Windows are identified by a uint32. The upper 16 bits are the connection id, | 20 // Windows are identified by a uint32. The upper 16 bits are the connection id, |
| 21 // and the lower 16 the id assigned by the client. | 21 // and the lower 16 the id assigned by the client. |
| 22 // | 22 // |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // deletes the property. | 131 // deletes the property. |
| 132 SetWindowProperty(uint32 change_id, | 132 SetWindowProperty(uint32 change_id, |
| 133 uint32 window_id, | 133 uint32 window_id, |
| 134 string name, | 134 string name, |
| 135 array<uint8>? value); | 135 array<uint8>? value); |
| 136 | 136 |
| 137 // Sets the opacity of the specified window to |opacity|. | 137 // Sets the opacity of the specified window to |opacity|. |
| 138 SetWindowOpacity(uint32 change_id, uint32 window_id, float opacity); | 138 SetWindowOpacity(uint32 change_id, uint32 window_id, float opacity); |
| 139 | 139 |
| 140 // Attaches a Surface to a particular window. | 140 // Attaches a Surface to a particular window. |
| 141 // TODO(fsamuel): Rename this CompositorFrameSink |
| 141 AttachSurface(uint32 window_id, | 142 AttachSurface(uint32 window_id, |
| 142 SurfaceType type, | 143 SurfaceType type, |
| 143 Surface& surface, | 144 cc.mojom.MojoCompositorFrameSink& surface, |
| 144 SurfaceClient client); | 145 cc.mojom.MojoCompositorFrameSinkClient client); |
| 145 | 146 |
| 146 // Returns surface reference back to window server for reclamation. | 147 // Returns surface reference back to window server for reclamation. |
| 147 OnWindowSurfaceDetached(uint32 window_id, cc.mojom.SurfaceSequence sequence); | 148 OnWindowSurfaceDetached(uint32 window_id, cc.mojom.SurfaceSequence sequence); |
| 148 | 149 |
| 149 // Reparents a window. | 150 // Reparents a window. |
| 150 // This fails for any of the following reasons: | 151 // This fails for any of the following reasons: |
| 151 // . |parent| or |child| does not identify a valid window. | 152 // . |parent| or |child| does not identify a valid window. |
| 152 // . |child| is an ancestor of |parent|. | 153 // . |child| is an ancestor of |parent|. |
| 153 // . |child| is already a child of |parent|. | 154 // . |child| is already a child of |parent|. |
| 154 // | 155 // |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 // See description of WindowManager for details. | 492 // See description of WindowManager for details. |
| 492 GetWindowManager(associated WindowManager& internal); | 493 GetWindowManager(associated WindowManager& internal); |
| 493 }; | 494 }; |
| 494 | 495 |
| 495 // Mus provides this interface as a way for clients to connect and obtain a | 496 // Mus provides this interface as a way for clients to connect and obtain a |
| 496 // WindowTree handle with a supplied WindowTreeClient handle. The | 497 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 497 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 498 interface WindowTreeFactory { | 499 interface WindowTreeFactory { |
| 499 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 500 }; | 501 }; |
| OLD | NEW |