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

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

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetAsModal -> SetModal + Other review comments addressed Created 4 years, 9 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/tests/test_window_tree.cc ('k') | components/mus/ws/access_policy.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 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/input_events.mojom"; 9 import "components/mus/public/interfaces/input_events.mojom";
10 import "components/mus/public/interfaces/mus_constants.mojom"; 10 import "components/mus/public/interfaces/mus_constants.mojom";
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // . |window_id| or |transient_window_id| does not identify a valid window. 172 // . |window_id| or |transient_window_id| does not identify a valid window.
173 // . |transient_window_id| is an ancestor of |window_id|. 173 // . |transient_window_id| is an ancestor of |window_id|.
174 AddTransientWindow(uint32 change_id, 174 AddTransientWindow(uint32 change_id,
175 uint32 window_id, 175 uint32 window_id,
176 uint32 transient_window_id); 176 uint32 transient_window_id);
177 177
178 // Decouples the lifetime of |transient_window_id| from its transient parent. 178 // Decouples the lifetime of |transient_window_id| from its transient parent.
179 // This does not change transient window's position in the window hierarchy. 179 // This does not change transient window's position in the window hierarchy.
180 RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id); 180 RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id);
181 181
182 // Sets |window_id| to be modal to its transient parent.
183 // This fails if |window_id| does not identify a valid window.
184 // TODO(mohsen): If |window_id| does not have a transient parent, this will
185 // have no effect. Plan is to make a window modal to system if it does not
186 // have a transient parent.
187 SetModal(uint32 change_id, uint32 window_id);
188
182 // Reorders a window in its parent, relative to |relative_window_id| according 189 // Reorders a window in its parent, relative to |relative_window_id| according
183 // to |direction|. Only the connection that created the window's parent can 190 // to |direction|. Only the connection that created the window's parent can
184 // reorder its children. 191 // reorder its children.
185 ReorderWindow(uint32 change_id, 192 ReorderWindow(uint32 change_id,
186 uint32 window_id, 193 uint32 window_id,
187 uint32 relative_window_id, 194 uint32 relative_window_id,
188 OrderDirection direction); 195 OrderDirection direction);
189 196
190 // Returns the windows comprising the tree starting at |window_id|. 197 // Returns the windows comprising the tree starting at |window_id|.
191 // |window_id| is the first result in the return value, unless |window_id| is 198 // |window_id| is the first result in the return value, unless |window_id| is
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // See description of WindowManager for details. 376 // See description of WindowManager for details.
370 GetWindowManager(associated WindowManager& internal); 377 GetWindowManager(associated WindowManager& internal);
371 }; 378 };
372 379
373 // Mus provides this interface as a way for clients to connect and obtain a 380 // Mus provides this interface as a way for clients to connect and obtain a
374 // WindowTree handle with a supplied WindowTreeClient handle. The 381 // WindowTree handle with a supplied WindowTreeClient handle. The
375 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 382 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
376 interface WindowTreeFactory { 383 interface WindowTreeFactory {
377 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 384 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
378 }; 385 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.cc ('k') | components/mus/ws/access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698