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

Unified Diff: services/ui/ws/event_dispatcher.h

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/drag_target_connection.h ('k') | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_dispatcher.h
diff --git a/services/ui/ws/event_dispatcher.h b/services/ui/ws/event_dispatcher.h
index 0bbac9e0417285c36b32f4ec09421fbc6ee6c1f6..e457c1cc205db3140e7d34f513f0e02780266cee 100644
--- a/services/ui/ws/event_dispatcher.h
+++ b/services/ui/ws/event_dispatcher.h
@@ -26,8 +26,12 @@ class LocatedEvent;
namespace ws {
class Accelerator;
+class DragController;
+class DragSource;
+class DragTargetConnection;
class EventDispatcherDelegate;
class ServerWindow;
+class WindowTree;
namespace test {
class EventDispatcherTestApi;
@@ -75,6 +79,17 @@ class EventDispatcher : public ServerWindowObserver {
return capture_window_client_id_;
}
+ void SetDragDropSourceWindow(
+ DragSource* drag_source,
+ ServerWindow* window,
+ DragTargetConnection* source_connection,
+ int32_t drag_pointer,
+ mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data,
+ uint32_t drag_operations);
+ void EndDragDrop();
+
+ void OnWillDestroyDragTargetConnection(DragTargetConnection* connection);
+
// Adds a system modal window. The window remains modal to system until it is
// destroyed. There can exist multiple system modal windows, in which case the
// one that is visible and added most recently or shown most recently would be
@@ -204,6 +219,10 @@ class EventDispatcher : public ServerWindowObserver {
ServerWindow* FindDeepestVisibleWindowForEvents(gfx::Point* location);
+ // Clears the implicit captures in |pointer_targets_|, with the exception of
+ // |window|. |window| may be null.
+ void CancelImplicitCaptureExcept(ServerWindow* window);
+
// ServerWindowObserver:
void OnWillChangeWindowHierarchy(ServerWindow* window,
ServerWindow* new_parent,
@@ -216,6 +235,8 @@ class EventDispatcher : public ServerWindowObserver {
ServerWindow* capture_window_;
ClientSpecificId capture_window_client_id_;
+ std::unique_ptr<DragController> drag_controller_;
+
ModalWindowController modal_window_controller_;
bool mouse_button_down_;
« no previous file with comments | « services/ui/ws/drag_target_connection.h ('k') | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698