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

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

Issue 2655463009: aura-mus: Implement DesktopWindowTreeHostMus::StackAbove(). (Closed)
Patch Set: Add 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/test_utils.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 5b65ab8ac3c52f24f354106bfbf40be8d6f54b04..689108d33cba2849eebaaaed7e984290687e0e97 100644
--- a/services/ui/ws/default_access_policy.cc
+++ b/services/ui/ws/default_access_policy.cc
@@ -156,6 +156,14 @@ bool DefaultAccessPolicy::CanSetAcceptEvents(const ServerWindow* window) const {
delegate_->HasRootForAccessPolicy(window);
}
+bool DefaultAccessPolicy::CanStackAbove(const ServerWindow* above,
+ const ServerWindow* below) const {
+ return delegate_->HasRootForAccessPolicy(above) &&
+ delegate_->IsWindowCreatedByWindowManager(above) &&
+ delegate_->HasRootForAccessPolicy(below) &&
+ delegate_->IsWindowCreatedByWindowManager(below);
+}
+
bool DefaultAccessPolicy::CanStackAtTop(const ServerWindow* window) const {
return delegate_->HasRootForAccessPolicy(window) &&
delegate_->IsWindowCreatedByWindowManager(window);
« no previous file with comments | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698