Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2349003002: Makes WindowTree::DeleteWindow() unembed for roots (Closed)
Patch Set: comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | services/ui/ws/server_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | services/ui/ws/server_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698