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

Unified Diff: services/ui/ws/default_access_policy.cc

Issue 2633233003: aura-mus: Implement stacking in DesktopWindowTreeHostMus. (Closed)
Patch Set: Reword comment. Created 3 years, 11 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 | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/window_manager_access_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/default_access_policy.cc
diff --git a/services/ui/ws/default_access_policy.cc b/services/ui/ws/default_access_policy.cc
index 0acee434e1f5f47e05f9f8e971637d7386a2bbcd..5b65ab8ac3c52f24f354106bfbf40be8d6f54b04 100644
--- a/services/ui/ws/default_access_policy.cc
+++ b/services/ui/ws/default_access_policy.cc
@@ -156,6 +156,11 @@ bool DefaultAccessPolicy::CanSetAcceptEvents(const ServerWindow* window) const {
delegate_->HasRootForAccessPolicy(window);
}
+bool DefaultAccessPolicy::CanStackAtTop(const ServerWindow* window) const {
+ return delegate_->HasRootForAccessPolicy(window) &&
+ delegate_->IsWindowCreatedByWindowManager(window);
+}
+
bool DefaultAccessPolicy::CanSetCursorProperties(
const ServerWindow* window) const {
return WasCreatedByThisClient(window) ||
« no previous file with comments | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/window_manager_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698