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

Unified Diff: components/mus/ws/server_window.cc

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/ws/server_window.cc
diff --git a/components/mus/ws/server_window.cc b/components/mus/ws/server_window.cc
index 518c0640fe0abcbe126f08b9557f6b1ebbbb3ec6..b98108ef625943ec91e9903f785577131ef4082a 100644
--- a/components/mus/ws/server_window.cc
+++ b/components/mus/ws/server_window.cc
@@ -29,6 +29,7 @@ ServerWindow::ServerWindow(ServerWindowDelegate* delegate,
parent_(nullptr),
stacking_target_(nullptr),
transient_parent_(nullptr),
+ is_modal_(false),
visible_(false),
cursor_id_(mojom::Cursor::CURSOR_NULL),
opacity_(1),
@@ -241,6 +242,10 @@ void ServerWindow::RemoveTransientWindow(ServerWindow* child) {
OnTransientWindowRemoved(this, child));
}
+void ServerWindow::SetAsModal() {
+ is_modal_ = true;
+}
+
bool ServerWindow::Contains(const ServerWindow* window) const {
for (const ServerWindow* parent = window; parent; parent = parent->parent_) {
if (parent == this)

Powered by Google App Engine
This is Rietveld 408576698