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

Unified 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: More cleanup 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/public/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index 5114297483828adedb1588f28466c90ea90faf2e..4948e13bfc62bf73bfb64222aaada0f791ab9080 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -179,6 +179,13 @@ interface WindowTree {
// This does not change transient window's position in the window hierarchy.
RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id);
+ // Sets |window_id| to be modal to its transient parent.
+ // This fails if |window_id| does not identify a valid window.
+ // TODO(mohsen): If |window_id| does not have a transient parent, this will
+ // have no effect. Plan is to make a window modal to system if it does not
+ // have a transient parent.
+ SetAsModal(uint32 change_id, uint32 window_id);
+
// Reorders a window in its parent, relative to |relative_window_id| according
// to |direction|. Only the connection that created the window's parent can
// reorder its children.

Powered by Google App Engine
This is Rietveld 408576698