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

Side by Side Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1949603002: Revert of mus: Enable system modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « components/mus/public/cpp/lib/window.cc ('k') | components/mus/ws/BUILD.gn » ('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 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Removes a window from its current parent. This fails if the window is not 163 // Removes a window from its current parent. This fails if the window is not
164 // valid or the window already has no parent. 164 // valid or the window already has no parent.
165 // 165 //
166 // Removing a window from a parent may result in OnWindowDeleted() being sent 166 // Removing a window from a parent may result in OnWindowDeleted() being sent
167 // to other connections. For example, connection A has windows 1 and 2, with 2 167 // to other connections. For example, connection A has windows 1 and 2, with 2
168 // a child of 1. Connection B has a root 1. If 2 is removed from 1 then B gets 168 // a child of 1. Connection B has a root 1. If 2 is removed from 1 then B gets
169 // OnWindowDeleted(). This is done as window 2 is effectively no longer 169 // OnWindowDeleted(). This is done as window 2 is effectively no longer
170 // visible to connection B. 170 // visible to connection B.
171 RemoveWindowFromParent(uint32 change_id, uint32 window_id); 171 RemoveWindowFromParent(uint32 change_id, uint32 window_id);
172 172
173 // Ties the lifetime of |transient_window_id| to the lifetime of |window_id|. 173 // Ties the lifetime of |child| to the lifetime of |parent|. This also
174 // This also places |transient_window_id| on top of |window_id|. 174 // places |child| always on top of |parent|.
175 // This fails for any of the following reasons: 175 // This fails for any of the following reasons:
176 // . |window_id| or |transient_window_id| does not identify a valid window. 176 // . |window_id| or |transient_window_id| does not identify a valid window.
177 // . |transient_window_id| is an ancestor of |window_id|. 177 // . |transient_window_id| is an ancestor of |window_id|.
178 // . |transient_window_id| is modal to system.
179 AddTransientWindow(uint32 change_id, 178 AddTransientWindow(uint32 change_id,
180 uint32 window_id, 179 uint32 window_id,
181 uint32 transient_window_id); 180 uint32 transient_window_id);
182 181
183 // Decouples the lifetime of |transient_window_id| from its transient parent. 182 // Decouples the lifetime of |transient_window_id| from its transient parent.
184 // This does not change transient window's position in the window hierarchy. 183 // This does not change transient window's position in the window hierarchy.
185 RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id); 184 RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id);
186 185
187 // Sets |window_id| to be modal. If the window has a transient parent, then 186 // Sets |window_id| to be modal to its transient parent.
188 // the window is modal to the transient parent. Otherwise, the window is modal 187 // This fails if |window_id| does not identify a valid window.
189 // to the system. This releases capture if necessary. 188 // TODO(mohsen): If |window_id| does not have a transient parent, this will
190 // This fails for any of the following reasons: 189 // have no effect. Plan is to make a window modal to system if it does not
191 // . |window_id| does not identify a valid window. 190 // have a transient parent.
192 // . Client does not have a valid user id (i.e., it is an embedded app).
193 SetModal(uint32 change_id, uint32 window_id); 191 SetModal(uint32 change_id, uint32 window_id);
194 192
195 // Reorders a window in its parent, relative to |relative_window_id| according 193 // Reorders a window in its parent, relative to |relative_window_id| according
196 // to |direction|. Only the connection that created the window's parent can 194 // to |direction|. Only the connection that created the window's parent can
197 // reorder its children. 195 // reorder its children.
198 ReorderWindow(uint32 change_id, 196 ReorderWindow(uint32 change_id,
199 uint32 window_id, 197 uint32 window_id,
200 uint32 relative_window_id, 198 uint32 relative_window_id,
201 OrderDirection direction); 199 OrderDirection direction);
202 200
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // See description of WindowManager for details. 405 // See description of WindowManager for details.
408 GetWindowManager(associated WindowManager& internal); 406 GetWindowManager(associated WindowManager& internal);
409 }; 407 };
410 408
411 // Mus provides this interface as a way for clients to connect and obtain a 409 // Mus provides this interface as a way for clients to connect and obtain a
412 // WindowTree handle with a supplied WindowTreeClient handle. The 410 // WindowTree handle with a supplied WindowTreeClient handle. The
413 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 411 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
414 interface WindowTreeFactory { 412 interface WindowTreeFactory {
415 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 413 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
416 }; 414 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window.cc ('k') | components/mus/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698