| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Requests the WindowManager to create a new top level window. On success | 58 // Requests the WindowManager to create a new top level window. On success |
| 59 // OnTopLevelCreated() is called with the WindowData for the new window. On | 59 // OnTopLevelCreated() is called with the WindowData for the new window. On |
| 60 // failure OnChangeCompleted() is called. | 60 // failure OnChangeCompleted() is called. |
| 61 // TODO(sky): this likely needs context, maybe in |properties|. | 61 // TODO(sky): this likely needs context, maybe in |properties|. |
| 62 NewTopLevelWindow(uint32 change_id, | 62 NewTopLevelWindow(uint32 change_id, |
| 63 uint32 window_id, | 63 uint32 window_id, |
| 64 map<string, array<uint8>> properties); | 64 map<string, array<uint8>> properties); |
| 65 | 65 |
| 66 // Deletes a window. This does not recurse. No hierarchy change notifications | 66 // Deletes a window. This does not recurse. No hierarchy change notifications |
| 67 // are sent as a result of this. Only the connection that created the window | 67 // are sent as a result of this. Only the connection that created the window |
| 68 // can delete it. | 68 // can delete it. DeleteWindow() may also be used to remove a window as an |
| 69 // embed root from the client. When DeleteWindow() is used to remove an embed |
| 70 // root, the client no longer has access to the embed root. The embedder of |
| 71 // the root is notified of the change via OnEmbeddedAppDisconnected(). |
| 69 DeleteWindow(uint32 change_id, uint32 window_id); | 72 DeleteWindow(uint32 change_id, uint32 window_id); |
| 70 | 73 |
| 71 // Requests input event capture for the given |window_id|. Capture is only | 74 // Requests input event capture for the given |window_id|. Capture is only |
| 72 // allowed if the window is processing an event. When a window gains capture, | 75 // allowed if the window is processing an event. When a window gains capture, |
| 73 // current input events are canceled. The given window will receive all | 76 // current input events are canceled. The given window will receive all |
| 74 // subsequent input until an alternate window is set via SetCapture, or | 77 // subsequent input until an alternate window is set via SetCapture, or |
| 75 // ReleaseCapture is called for |window_id|. OnCaptureChanged() is called to | 78 // ReleaseCapture is called for |window_id|. OnCaptureChanged() is called to |
| 76 // notify of capture changing (as long as the client did not initiate the | 79 // notify of capture changing (as long as the client did not initiate the |
| 77 // change). | 80 // change). |
| 78 SetCapture(uint32 change_id, uint32 window_id); | 81 SetCapture(uint32 change_id, uint32 window_id); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 // See description of WindowManager for details. | 468 // See description of WindowManager for details. |
| 466 GetWindowManager(associated WindowManager& internal); | 469 GetWindowManager(associated WindowManager& internal); |
| 467 }; | 470 }; |
| 468 | 471 |
| 469 // Mus provides this interface as a way for clients to connect and obtain a | 472 // Mus provides this interface as a way for clients to connect and obtain a |
| 470 // WindowTree handle with a supplied WindowTreeClient handle. The | 473 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 471 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 474 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 472 interface WindowTreeFactory { | 475 interface WindowTreeFactory { |
| 473 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 476 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 474 }; | 477 }; |
| OLD | NEW |