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

Unified Diff: third_party/WebKit/public/web/WebWidgetClient.h

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/public/web/WebWidgetClient.h
diff --git a/third_party/WebKit/public/web/WebWidgetClient.h b/third_party/WebKit/public/web/WebWidgetClient.h
index 64a19e24d5c00a0df30aa3c1b55174ba7b978e83..74ef0991162cc5b7a894df45280a1a361a64a1b8 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -33,6 +33,7 @@
#include "WebNavigationPolicy.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/WebDragOperation.h"
#include "public/platform/WebLayerTreeView.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebRect.h"
@@ -43,7 +44,10 @@
namespace blink {
+class WebDragData;
class WebGestureEvent;
+class WebImage;
+class WebLocalFrame;
class WebNode;
class WebString;
class WebWidget;
@@ -181,6 +185,13 @@ class WebWidgetClient {
// migration is completed.
virtual void convertWindowToViewport(WebFloatRect* rect) {}
+ // Called when a drag-n-drop operation should begin.
+ virtual void startDragging(WebLocalFrame*,
dcheng 2016/11/03 21:22:52 Can we move this to WebFrameWidget?
paulmeyer 2016/11/04 19:01:18 As we discussed offline, |frame| no longer plumbed
+ const WebDragData&,
+ WebDragOperationsMask,
+ const WebImage& dragImage,
+ const WebPoint& dragImageOffset) {}
+
protected:
~WebWidgetClient() {}
};
« third_party/WebKit/Source/web/WebViewImpl.h ('K') | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698