| 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/input_events.mojom"; | 8 import "components/mus/public/interfaces/input_events.mojom"; |
| 9 import "components/mus/public/interfaces/mus_constants.mojom"; | 9 import "components/mus/public/interfaces/mus_constants.mojom"; |
| 10 import "components/mus/public/interfaces/surface_id.mojom"; | 10 import "components/mus/public/interfaces/surface_id.mojom"; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // | 89 // |
| 90 // TODO(erg): Once we have default values in mojo, make this take a map of | 90 // TODO(erg): Once we have default values in mojo, make this take a map of |
| 91 // properties. | 91 // properties. |
| 92 NewWindow(uint32 change_id, uint32 window_id); | 92 NewWindow(uint32 change_id, uint32 window_id); |
| 93 | 93 |
| 94 // Deletes a window. This does not recurse. No hierarchy change notifications | 94 // Deletes a window. This does not recurse. No hierarchy change notifications |
| 95 // are sent as a result of this. Only the connection that created the window | 95 // are sent as a result of this. Only the connection that created the window |
| 96 // can delete it. | 96 // can delete it. |
| 97 DeleteWindow(uint32 window_id) => (bool success); | 97 DeleteWindow(uint32 window_id) => (bool success); |
| 98 | 98 |
| 99 // Requests input event capture for the given |window_id|. |
| 100 SetCapture(uint32 change_id, uint32 window_id); |
| 101 |
| 102 // Releases input event capture for the given |window_id|. |
| 103 ReleaseCapture(uint32 change_id, uint32 window_id); |
| 104 |
| 99 // Sets the specified bounds of the specified window. | 105 // Sets the specified bounds of the specified window. |
| 100 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); | 106 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); |
| 101 | 107 |
| 102 // Sets the insets of the client area of the specified window. | 108 // Sets the insets of the client area of the specified window. |
| 103 SetClientArea(uint32 window_id, mojo.Insets insets); | 109 SetClientArea(uint32 window_id, mojo.Insets insets); |
| 104 | 110 |
| 105 // Sets the visibility of the specified window to |visible|. Connections are | 111 // Sets the visibility of the specified window to |visible|. Connections are |
| 106 // allowed to change the visibility of any window they have created, as well | 112 // allowed to change the visibility of any window they have created, as well |
| 107 // as any of their roots. | 113 // as any of their roots. |
| 108 SetWindowVisibility(uint32 window_id, bool visible) => (bool success); | 114 SetWindowVisibility(uint32 window_id, bool visible) => (bool success); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Invoked when the application embedded at |window| is disconnected. In other | 253 // Invoked when the application embedded at |window| is disconnected. In other |
| 248 // words the embedded app closes the connection to the server. This is called | 254 // words the embedded app closes the connection to the server. This is called |
| 249 // on the connection that created |window| as well as any ancestors that have | 255 // on the connection that created |window| as well as any ancestors that have |
| 250 // the embed root policy. | 256 // the embed root policy. |
| 251 OnEmbeddedAppDisconnected(uint32 window); | 257 OnEmbeddedAppDisconnected(uint32 window); |
| 252 | 258 |
| 253 // Sent when another connection is embedded in the Window this connection was | 259 // Sent when another connection is embedded in the Window this connection was |
| 254 // previously embedded in. See Embed() for more information. | 260 // previously embedded in. See Embed() for more information. |
| 255 OnUnembed(); | 261 OnUnembed(); |
| 256 | 262 |
| 263 // Sent when a window loses capture. |
| 264 OnLostCapture(uint32 window); |
| 265 |
| 257 // Invoked when a window's bounds have changed. | 266 // Invoked when a window's bounds have changed. |
| 258 OnWindowBoundsChanged(uint32 window, | 267 OnWindowBoundsChanged(uint32 window, |
| 259 mojo.Rect old_bounds, | 268 mojo.Rect old_bounds, |
| 260 mojo.Rect new_bounds); | 269 mojo.Rect new_bounds); |
| 261 | 270 |
| 262 OnClientAreaChanged(uint32 window_id, | 271 OnClientAreaChanged(uint32 window_id, |
| 263 mojo.Insets old_client_area, | 272 mojo.Insets old_client_area, |
| 264 mojo.Insets new_client_area); | 273 mojo.Insets new_client_area); |
| 265 | 274 |
| 266 OnTransientWindowAdded(uint32 window_id, | 275 OnTransientWindowAdded(uint32 window_id, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // WindowManager interface once we get associated interfaces. | 337 // WindowManager interface once we get associated interfaces. |
| 329 | 338 |
| 330 // Calls to SetWindowBounds() for windows owned by the window manager end up | 339 // Calls to SetWindowBounds() for windows owned by the window manager end up |
| 331 // here. The window manager should reply with WmResponse() as appropriate. | 340 // here. The window manager should reply with WmResponse() as appropriate. |
| 332 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); | 341 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); |
| 333 WmSetProperty(uint32 change_id, | 342 WmSetProperty(uint32 change_id, |
| 334 uint32 window_id, | 343 uint32 window_id, |
| 335 string name, | 344 string name, |
| 336 array<uint8>? value); | 345 array<uint8>? value); |
| 337 }; | 346 }; |
| OLD | NEW |