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

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

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments Created 4 years, 3 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/window_manager_access_policy.h ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_manager_access_policy.cc
diff --git a/services/ui/ws/window_manager_access_policy.cc b/services/ui/ws/window_manager_access_policy.cc
index c815de54cb40ba3b4f22fa18849ead768e967e3e..21e73795314868244bd78f63b769b119aa2f6c4a 100644
--- a/services/ui/ws/window_manager_access_policy.cc
+++ b/services/ui/ws/window_manager_access_policy.cc
@@ -138,6 +138,11 @@ bool WindowManagerAccessPolicy::CanSetHitTestMask(
delegate_->HasRootForAccessPolicy(window);
}
+bool WindowManagerAccessPolicy::CanSetAcceptDrops(
+ const ServerWindow* window) const {
+ return true;
+}
+
bool WindowManagerAccessPolicy::CanSetAcceptEvents(
const ServerWindow* window) const {
return WasCreatedByThisClient(window) ||
@@ -150,6 +155,12 @@ bool WindowManagerAccessPolicy::CanSetCursorProperties(
delegate_->HasRootForAccessPolicy(window);
}
+bool WindowManagerAccessPolicy::CanInitiateDragLoop(
+ const ServerWindow* window) const {
+ return WasCreatedByThisClient(window) ||
+ delegate_->HasRootForAccessPolicy(window);
+}
+
bool WindowManagerAccessPolicy::CanInitiateMoveLoop(
const ServerWindow* window) const {
return false;
« no previous file with comments | « services/ui/ws/window_manager_access_policy.h ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698