Chromium Code Reviews| 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 "services/ui/public/interfaces/cursor.mojom"; | 8 import "services/ui/public/interfaces/cursor.mojom"; |
| 9 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 10 import "services/ui/public/interfaces/mus_constants.mojom"; | 10 import "services/ui/public/interfaces/mus_constants.mojom"; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 | 95 |
| 96 // Sets the client area of the specified window. The client area is specified | 96 // Sets the client area of the specified window. The client area is specified |
| 97 // by way of insets. Everything outside of the insets, and not in | 97 // by way of insets. Everything outside of the insets, and not in |
| 98 // |additional_client_areas| is considered non-client area. | 98 // |additional_client_areas| is considered non-client area. |
| 99 // TODO(sky): convert additional_client_areas to a path. | 99 // TODO(sky): convert additional_client_areas to a path. |
| 100 SetClientArea(uint32 window_id, | 100 SetClientArea(uint32 window_id, |
| 101 gfx.mojom.Insets insets, | 101 gfx.mojom.Insets insets, |
| 102 array<gfx.mojom.Rect>? additional_client_areas); | 102 array<gfx.mojom.Rect>? additional_client_areas); |
| 103 | 103 |
| 104 // Mouse events outside a hit test mask do not hit the window. The |mask| is | 104 // Mouse events outside a hit test mask do not hit the window. The |mask| is |
| 105 // in window local coordinates. Pass null to clear the mask. | 105 // in window local coordinates. Pass an empty rect to clear the mask. |
| 106 // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210 | 106 // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210 |
| 107 SetHitTestMask(uint32 window_id, gfx.mojom.Rect? mask); | 107 SetHitTestMask(uint32 window_id, gfx.mojom.Rect mask); |
|
sky
2016/07/26 21:26:16
We want to allow null here too.
yzshen1
2016/07/26 21:32:36
Please see my comment for the other place.
| |
| 108 | 108 |
| 109 // Sets the visibility of the specified window to |visible|. Connections are | 109 // Sets the visibility of the specified window to |visible|. Connections are |
| 110 // allowed to change the visibility of any window they have created, as well | 110 // allowed to change the visibility of any window they have created, as well |
| 111 // as any of their roots. | 111 // as any of their roots. |
| 112 SetWindowVisibility(uint32 change_id, uint32 window_id, bool visible); | 112 SetWindowVisibility(uint32 change_id, uint32 window_id, bool visible); |
| 113 | 113 |
| 114 // Sets an individual named property. Setting an individual property to null | 114 // Sets an individual named property. Setting an individual property to null |
| 115 // deletes the property. | 115 // deletes the property. |
| 116 SetWindowProperty(uint32 change_id, | 116 SetWindowProperty(uint32 change_id, |
| 117 uint32 window_id, | 117 uint32 window_id, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 399 // See description of WindowManager for details. | 399 // See description of WindowManager for details. |
| 400 GetWindowManager(associated WindowManager& internal); | 400 GetWindowManager(associated WindowManager& internal); |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 // Mus provides this interface as a way for clients to connect and obtain a | 403 // Mus provides this interface as a way for clients to connect and obtain a |
| 404 // WindowTree handle with a supplied WindowTreeClient handle. The | 404 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 405 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 405 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 406 interface WindowTreeFactory { | 406 interface WindowTreeFactory { |
| 407 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 407 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 408 }; | 408 }; |
| OLD | NEW |