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

Unified Diff: components/mus/public/cpp/lib/window.cc

Issue 1818333002: Reland: mus: Enable system modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up comments Created 4 years, 8 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
« no previous file with comments | « no previous file | components/mus/ws/event_dispatcher.h » ('j') | components/mus/ws/event_dispatcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 688aa54b2b566cfc99ee39985b9d58a2dac3b203..d1b4cb6485bcae8bd2d2f055a2b48e504f778b03 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -341,6 +341,9 @@ bool Window::Contains(const Window* child) const {
}
void Window::AddTransientWindow(Window* transient_window) {
+ // A system modal window cannot become a transient child.
+ DCHECK(!transient_window->is_modal() || transient_window->transient_parent());
+
if (connection_)
CHECK_EQ(transient_window->connection(), connection_);
LocalAddTransientWindow(transient_window);
« no previous file with comments | « no previous file | components/mus/ws/event_dispatcher.h » ('j') | components/mus/ws/event_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698