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

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

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. 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
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ac5dff426ebc00601d095e56eb5ea49d4240a76 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -33,9 +33,11 @@
#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"
+#include "public/platform/WebReferrerPolicy.h"
#include "public/platform/WebScreenInfo.h"
#include "public/web/WebMeaningfulLayout.h"
#include "public/web/WebTextDirection.h"
@@ -43,7 +45,10 @@
namespace blink {
+class WebDragData;
class WebGestureEvent;
+class WebImage;
+class WebLocalFrame;
class WebNode;
class WebString;
class WebWidget;
@@ -181,6 +186,13 @@ class WebWidgetClient {
// migration is completed.
virtual void convertWindowToViewport(WebFloatRect* rect) {}
+ // Called when a drag-and-drop operation should begin.
+ virtual void startDragging(WebReferrerPolicy,
+ const WebDragData&,
+ WebDragOperationsMask,
+ const WebImage& dragImage,
+ const WebPoint& dragImageOffset) {}
+
protected:
~WebWidgetClient() {}
};
« no previous file with comments | « 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