| 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/event_matcher.mojom"; | 9 import "components/mus/public/interfaces/event_matcher.mojom"; |
| 10 import "components/mus/public/interfaces/input_events.mojom"; | 10 import "components/mus/public/interfaces/input_events.mojom"; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); | 122 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); |
| 123 | 123 |
| 124 // Sets the client area of the specified window. The client area is specified | 124 // Sets the client area of the specified window. The client area is specified |
| 125 // by way of insets. Everything outside of the insets, and not in | 125 // by way of insets. Everything outside of the insets, and not in |
| 126 // |additional_client_areas| is considered non-client area. | 126 // |additional_client_areas| is considered non-client area. |
| 127 // TODO(sky): convert additional_client_areas to a path. | 127 // TODO(sky): convert additional_client_areas to a path. |
| 128 SetClientArea(uint32 window_id, | 128 SetClientArea(uint32 window_id, |
| 129 mojo.Insets insets, | 129 mojo.Insets insets, |
| 130 array<mojo.Rect>? additional_client_areas); | 130 array<mojo.Rect>? additional_client_areas); |
| 131 | 131 |
| 132 // Mouse events outside a hit test mask do not hit the window. The |mask| is |
| 133 // in window local coordinates. Pass null to clear the mask. |
| 134 // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210 |
| 135 SetHitTestMask(uint32 window_id, mojo.Rect? mask); |
| 136 |
| 132 // Sets the visibility of the specified window to |visible|. Connections are | 137 // Sets the visibility of the specified window to |visible|. Connections are |
| 133 // allowed to change the visibility of any window they have created, as well | 138 // allowed to change the visibility of any window they have created, as well |
| 134 // as any of their roots. | 139 // as any of their roots. |
| 135 SetWindowVisibility(uint32 change_id, uint32 window_id, bool visible); | 140 SetWindowVisibility(uint32 change_id, uint32 window_id, bool visible); |
| 136 | 141 |
| 137 // Sets an individual named property. Setting an individual property to null | 142 // Sets an individual named property. Setting an individual property to null |
| 138 // deletes the property. | 143 // deletes the property. |
| 139 SetWindowProperty(uint32 change_id, | 144 SetWindowProperty(uint32 change_id, |
| 140 uint32 window_id, | 145 uint32 window_id, |
| 141 string name, | 146 string name, |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 // See description of WindowManager for details. | 412 // See description of WindowManager for details. |
| 408 GetWindowManager(associated WindowManager& internal); | 413 GetWindowManager(associated WindowManager& internal); |
| 409 }; | 414 }; |
| 410 | 415 |
| 411 // Mus provides this interface as a way for clients to connect and obtain a | 416 // Mus provides this interface as a way for clients to connect and obtain a |
| 412 // WindowTree handle with a supplied WindowTreeClient handle. The | 417 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 413 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 418 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 414 interface WindowTreeFactory { | 419 interface WindowTreeFactory { |
| 415 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 420 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 416 }; | 421 }; |
| OLD | NEW |