From 1c80328cd83377a771f725b80967b5b44ba19cf7 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 17 Jan 2017 15:54:10 +0100 Subject: Fix canceling drag and drop actions RenderViewHost::DragSourceEndedAt must be called after dropping and after canceling a drag. Otherwise scripts running on the web page do not get properly notified. Task-number: QTBUG-58037 Change-Id: Ia245131c59f03f3331158bea6cc2f53bce50f989 Reviewed-by: Allan Sandfeld Jensen --- src/core/web_contents_adapter_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/web_contents_adapter_p.h') diff --git a/src/core/web_contents_adapter_p.h b/src/core/web_contents_adapter_p.h index 2d8490c7b..9503b4401 100644 --- a/src/core/web_contents_adapter_p.h +++ b/src/core/web_contents_adapter_p.h @@ -55,6 +55,7 @@ #include #include "base/memory/ref_counted.h" +#include #include #include @@ -96,6 +97,8 @@ public: std::unique_ptr currentDropData; blink::WebDragOperation currentDropAction; bool inDragUpdateLoop; + gfx::Point lastDragClientPos; + gfx::Point lastDragScreenPos; base::Closure dragUpdateLoopQuitClosure; QScopedPointer updateDragCursorMessagePollingTimer; }; -- cgit v1.2.3