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 mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/compositor_frame.mojom"; | 7 import "components/mus/public/interfaces/compositor_frame.mojom"; |
8 import "components/mus/public/interfaces/cursor.mojom"; | 8 import "components/mus/public/interfaces/cursor.mojom"; |
9 import "components/mus/public/interfaces/input_events.mojom"; | 9 import "components/mus/public/interfaces/input_events.mojom"; |
10 import "components/mus/public/interfaces/mus_constants.mojom"; | 10 import "components/mus/public/interfaces/mus_constants.mojom"; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // TODO(sky): this likely needs context, maybe in |properties|. | 99 // TODO(sky): this likely needs context, maybe in |properties|. |
100 NewTopLevelWindow(uint32 change_id, | 100 NewTopLevelWindow(uint32 change_id, |
101 uint32 window_id, | 101 uint32 window_id, |
102 map<string, array<uint8>> properties); | 102 map<string, array<uint8>> properties); |
103 | 103 |
104 // Deletes a window. This does not recurse. No hierarchy change notifications | 104 // Deletes a window. This does not recurse. No hierarchy change notifications |
105 // are sent as a result of this. Only the connection that created the window | 105 // are sent as a result of this. Only the connection that created the window |
106 // can delete it. | 106 // can delete it. |
107 DeleteWindow(uint32 change_id, uint32 window_id); | 107 DeleteWindow(uint32 change_id, uint32 window_id); |
108 | 108 |
| 109 // Requests input event capture for the given |window_id|. |
| 110 SetCapture(uint32 change_id, uint32 window_id); |
| 111 |
| 112 // Releases input event capture for the given |window_id|. |
| 113 ReleaseCapture(uint32 change_id, uint32 window_id); |
| 114 |
109 // Sets the specified bounds of the specified window. | 115 // Sets the specified bounds of the specified window. |
110 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); | 116 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); |
111 | 117 |
112 // Sets the client area of the specified window. The client area is specified | 118 // Sets the client area of the specified window. The client area is specified |
113 // by way of insets. Everything outside of the insets, and not in | 119 // by way of insets. Everything outside of the insets, and not in |
114 // |additional_client_areas| is considered non-client area. | 120 // |additional_client_areas| is considered non-client area. |
115 // TODO(sky): convert additional_client_areas to a path. | 121 // TODO(sky): convert additional_client_areas to a path. |
116 SetClientArea(uint32 window_id, | 122 SetClientArea(uint32 window_id, |
117 mojo.Insets insets, | 123 mojo.Insets insets, |
118 array<mojo.Rect>? additional_client_areas); | 124 array<mojo.Rect>? additional_client_areas); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // Invoked when the application embedded at |window| is disconnected. In other | 266 // Invoked when the application embedded at |window| is disconnected. In other |
261 // words the embedded app closes the connection to the server. This is called | 267 // words the embedded app closes the connection to the server. This is called |
262 // on the connection that created |window| as well as any ancestors that have | 268 // on the connection that created |window| as well as any ancestors that have |
263 // the embed root policy. | 269 // the embed root policy. |
264 OnEmbeddedAppDisconnected(uint32 window); | 270 OnEmbeddedAppDisconnected(uint32 window); |
265 | 271 |
266 // Sent when another connection is embedded in the Window this connection was | 272 // Sent when another connection is embedded in the Window this connection was |
267 // previously embedded in. See Embed() for more information. | 273 // previously embedded in. See Embed() for more information. |
268 OnUnembed(uint32 window); | 274 OnUnembed(uint32 window); |
269 | 275 |
| 276 // Sent when a window loses capture. |
| 277 OnLostCapture(uint32 window); |
| 278 |
270 // Called in response to NewTopLevelWindow() successfully completing. | 279 // Called in response to NewTopLevelWindow() successfully completing. |
271 OnTopLevelCreated(uint32 change_id, WindowData data); | 280 OnTopLevelCreated(uint32 change_id, WindowData data); |
272 | 281 |
273 // Invoked when a window's bounds have changed. | 282 // Invoked when a window's bounds have changed. |
274 OnWindowBoundsChanged(uint32 window, | 283 OnWindowBoundsChanged(uint32 window, |
275 mojo.Rect old_bounds, | 284 mojo.Rect old_bounds, |
276 mojo.Rect new_bounds); | 285 mojo.Rect new_bounds); |
277 | 286 |
278 OnClientAreaChanged(uint32 window_id, | 287 OnClientAreaChanged(uint32 window_id, |
279 mojo.Insets new_client_area, | 288 mojo.Insets new_client_area, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 WmResponse(uint32 change_id, bool response); | 398 WmResponse(uint32 change_id, bool response); |
390 | 399 |
391 // Calls WindowTreeClient::RequestClose() on the embedded app at the | 400 // Calls WindowTreeClient::RequestClose() on the embedded app at the |
392 // specified window. | 401 // specified window. |
393 WmRequestClose(uint32 window_id); | 402 WmRequestClose(uint32 window_id); |
394 | 403 |
395 // Response from WmCreateTopLevelWindow() informing the client of the id for | 404 // Response from WmCreateTopLevelWindow() informing the client of the id for |
396 // the new window. | 405 // the new window. |
397 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 406 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
398 }; | 407 }; |
OLD | NEW |