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

Unified Diff: services/ui/ws/window_manager_state.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_state.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_manager_state.cc
diff --git a/services/ui/ws/window_manager_state.cc b/services/ui/ws/window_manager_state.cc
index a79ee362d03df98be975597ee3ba305ec1fbb462..165fc2bd53b077da878e3ac2a915e6a898dd0767 100644
--- a/services/ui/ws/window_manager_state.cc
+++ b/services/ui/ws/window_manager_state.cc
@@ -155,6 +155,22 @@ void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() {
event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow();
}
+void WindowManagerState::SetDragDropSourceWindow(
+ DragSource* drag_source,
+ ServerWindow* window,
+ DragTargetConnection* source_connection,
+ int32_t drag_pointer,
+ mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
+ uint32_t drag_operation) {
+ event_dispatcher_.SetDragDropSourceWindow(
+ drag_source, window, source_connection, drag_pointer,
+ std::move(drag_data), drag_operation);
+}
+
+void WindowManagerState::EndDragDrop() {
+ event_dispatcher_.EndDragDrop();
+}
+
void WindowManagerState::AddSystemModalWindow(ServerWindow* window) {
DCHECK(!window->transient_parent());
event_dispatcher_.AddSystemModalWindow(window);
@@ -165,6 +181,8 @@ const UserId& WindowManagerState::user_id() const {
}
void WindowManagerState::OnWillDestroyTree(WindowTree* tree) {
+ event_dispatcher_.OnWillDestroyDragTargetConnection(tree);
+
if (tree_awaiting_input_ack_ != tree)
return;
« no previous file with comments | « services/ui/ws/window_manager_state.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698