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

Unified Diff: components/mus/ws/window_manager_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: Added test for WindowHierarchyChanged case 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/ws/window_manager_access_policy.cc
diff --git a/components/mus/ws/window_manager_access_policy.cc b/components/mus/ws/window_manager_access_policy.cc
index e31bac5977a6bd8a5cb84f7fa92b48fe26cf4c34..bcbbd91c593dbbb917dcde0687933f4c7cc0df88 100644
--- a/components/mus/ws/window_manager_access_policy.cc
+++ b/components/mus/ws/window_manager_access_policy.cc
@@ -42,6 +42,11 @@ bool WindowManagerAccessPolicy::CanRemoveTransientWindowFromParent(
return true;
}
+bool WindowManagerAccessPolicy::CanSetAsModal(
+ const ServerWindow* window) const {
+ return true;
+}
+
bool WindowManagerAccessPolicy::CanReorderWindow(
const ServerWindow* window,
const ServerWindow* relative_window,

Powered by Google App Engine
This is Rietveld 408576698