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 "cc/ipc/mojo_compositor_frame_sink.mojom"; |
10 import "services/ui/public/interfaces/cursor.mojom"; | 10 import "services/ui/public/interfaces/cursor.mojom"; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Sets an individual named property. Setting an individual property to null | 130 // Sets an individual named property. Setting an individual property to null |
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 CompositorFrameSink to a particular window. |
141 // TODO(fsamuel): Rename this CompositorFrameSink | 141 AttachCompositorFrameSink( |
142 AttachSurface(uint32 window_id, | 142 uint32 window_id, |
143 SurfaceType type, | 143 CompositorFrameSinkType type, |
144 cc.mojom.MojoCompositorFrameSink& surface, | 144 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, |
145 cc.mojom.MojoCompositorFrameSinkClient client); | 145 cc.mojom.MojoCompositorFrameSinkClient client); |
146 | 146 |
147 // Returns surface reference back to window server for reclamation. | 147 // Returns surface reference back to window server for reclamation. |
148 OnWindowSurfaceDetached(uint32 window_id, cc.mojom.SurfaceSequence sequence); | 148 OnWindowSurfaceDetached(uint32 window_id, cc.mojom.SurfaceSequence sequence); |
149 | 149 |
150 // Reparents a window. | 150 // Reparents a window. |
151 // This fails for any of the following reasons: | 151 // This fails for any of the following reasons: |
152 // . |parent| or |child| does not identify a valid window. | 152 // . |parent| or |child| does not identify a valid window. |
153 // . |child| is an ancestor of |parent|. | 153 // . |child| is an ancestor of |parent|. |
154 // . |child| is already a child of |parent|. | 154 // . |child| is already a child of |parent|. |
155 // | 155 // |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // See description of WindowManager for details. | 492 // See description of WindowManager for details. |
493 GetWindowManager(associated WindowManager& internal); | 493 GetWindowManager(associated WindowManager& internal); |
494 }; | 494 }; |
495 | 495 |
496 // 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 |
497 // WindowTree handle with a supplied WindowTreeClient handle. The | 497 // WindowTree handle with a supplied WindowTreeClient handle. The |
498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
499 interface WindowTreeFactory { | 499 interface WindowTreeFactory { |
500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
501 }; | 501 }; |
OLD | NEW |