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_info.mojom"; | 7 import "cc/ipc/surface_info.mojom"; |
8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; | 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
9 import "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 uint32 window_id, | 132 uint32 window_id, |
133 string name, | 133 string name, |
134 array<uint8>? value); | 134 array<uint8>? value); |
135 | 135 |
136 // Sets the opacity of the specified window to |opacity|. | 136 // Sets the opacity of the specified window to |opacity|. |
137 SetWindowOpacity(uint32 change_id, uint32 window_id, float opacity); | 137 SetWindowOpacity(uint32 change_id, uint32 window_id, float opacity); |
138 | 138 |
139 // Attaches a CompositorFrameSink to a particular window. | 139 // Attaches a CompositorFrameSink to a particular window. |
140 AttachCompositorFrameSink( | 140 AttachCompositorFrameSink( |
141 uint32 window_id, | 141 uint32 window_id, |
142 CompositorFrameSinkType type, | |
143 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, | 142 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, |
144 cc.mojom.MojoCompositorFrameSinkClient client); | 143 cc.mojom.MojoCompositorFrameSinkClient client); |
145 | 144 |
146 // Reparents a window. | 145 // Reparents a window. |
147 // This fails for any of the following reasons: | 146 // This fails for any of the following reasons: |
148 // . |parent| or |child| does not identify a valid window. | 147 // . |parent| or |child| does not identify a valid window. |
149 // . |child| is an ancestor of |parent|. | 148 // . |child| is an ancestor of |parent|. |
150 // . |child| is already a child of |parent|. | 149 // . |child| is already a child of |parent|. |
151 // | 150 // |
152 // This may result in a connection getting OnWindowDeleted(). See | 151 // This may result in a connection getting OnWindowDeleted(). See |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 // See description of WindowManager for details. | 488 // See description of WindowManager for details. |
490 GetWindowManager(associated WindowManager& internal); | 489 GetWindowManager(associated WindowManager& internal); |
491 }; | 490 }; |
492 | 491 |
493 // 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 |
494 // WindowTree handle with a supplied WindowTreeClient handle. The | 493 // WindowTree handle with a supplied WindowTreeClient handle. The |
495 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 494 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
496 interface WindowTreeFactory { | 495 interface WindowTreeFactory { |
497 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 496 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
498 }; | 497 }; |
OLD | NEW |