| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ReleaseCapture(uint32 change_id, uint32 window_id); | 81 ReleaseCapture(uint32 change_id, uint32 window_id); |
| 82 | 82 |
| 83 // Sets an observer that monitors all events, even if they are not targeted | 83 // Sets an observer that monitors all events, even if they are not targeted |
| 84 // at a window in this tree. If an event matchs |matcher| the observer reports | 84 // at a window in this tree. If an event matchs |matcher| the observer reports |
| 85 // it to the WindowTreeClient via OnWindowInputEvent (if the event target is | 85 // it to the WindowTreeClient via OnWindowInputEvent (if the event target is |
| 86 // this window tree) or OnEventObserved (if the target is another tree). The | 86 // this window tree) or OnEventObserved (if the target is another tree). The |
| 87 // client must supply a non-zero |observer_id|, which is reported back with | 87 // client must supply a non-zero |observer_id|, which is reported back with |
| 88 // observed events. Set the matcher to null to clear the observer. | 88 // observed events. Set the matcher to null to clear the observer. |
| 89 // | 89 // |
| 90 // See class description for details on event delivery. | 90 // See class description for details on event delivery. |
| 91 //JAMES - remove this |
| 91 SetEventObserver(EventMatcher? matcher, uint32 observer_id); | 92 SetEventObserver(EventMatcher? matcher, uint32 observer_id); |
| 92 | 93 |
| 94 //JAMES - comment as above |
| 95 StartPointerWatcher(bool want_moves, uint32 observer_id); |
| 96 StopPointerWatcher(); |
| 97 |
| 93 // Sets the specified bounds of the specified window. | 98 // Sets the specified bounds of the specified window. |
| 94 SetWindowBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); | 99 SetWindowBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); |
| 95 | 100 |
| 96 // Sets the client area of the specified window. The client area is specified | 101 // 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 | 102 // by way of insets. Everything outside of the insets, and not in |
| 98 // |additional_client_areas| is considered non-client area. | 103 // |additional_client_areas| is considered non-client area. |
| 99 // TODO(sky): convert additional_client_areas to a path. | 104 // TODO(sky): convert additional_client_areas to a path. |
| 100 SetClientArea(uint32 window_id, | 105 SetClientArea(uint32 window_id, |
| 101 gfx.mojom.Insets insets, | 106 gfx.mojom.Insets insets, |
| 102 array<gfx.mojom.Rect>? additional_client_areas); | 107 array<gfx.mojom.Rect>? additional_client_areas); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // See description of WindowManager for details. | 404 // See description of WindowManager for details. |
| 400 GetWindowManager(associated WindowManager& internal); | 405 GetWindowManager(associated WindowManager& internal); |
| 401 }; | 406 }; |
| 402 | 407 |
| 403 // Mus provides this interface as a way for clients to connect and obtain a | 408 // Mus provides this interface as a way for clients to connect and obtain a |
| 404 // WindowTree handle with a supplied WindowTreeClient handle. The | 409 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 405 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 410 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 406 interface WindowTreeFactory { | 411 interface WindowTreeFactory { |
| 407 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 412 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 408 }; | 413 }; |
| OLD | NEW |