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

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

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/ws/default_access_policy.h ('k') | components/mus/ws/event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/default_access_policy.cc
diff --git a/components/mus/ws/default_access_policy.cc b/components/mus/ws/default_access_policy.cc
index d55c860202467b29f7e94fab33454025cff52733..7c8c062494421dca241fd4b2f9de5daa7dbe28f6 100644
--- a/components/mus/ws/default_access_policy.cc
+++ b/components/mus/ws/default_access_policy.cc
@@ -51,6 +51,11 @@ bool DefaultAccessPolicy::CanRemoveTransientWindowFromParent(
WasCreatedByThisConnection(window->transient_parent()));
}
+bool DefaultAccessPolicy::CanSetModal(const ServerWindow* window) const {
+ return delegate_->HasRootForAccessPolicy(window) ||
+ WasCreatedByThisConnection(window);
+}
+
bool DefaultAccessPolicy::CanReorderWindow(
const ServerWindow* window,
const ServerWindow* relative_window,
« no previous file with comments | « components/mus/ws/default_access_policy.h ('k') | components/mus/ws/event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698