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

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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. More fixes. 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/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameWidget.h
diff --git a/third_party/WebKit/public/web/WebFrameWidget.h b/third_party/WebKit/public/web/WebFrameWidget.h
index 29267ce21f5c18b5abaa63f8acd4b3efba6238ab..952132d2c16a6137f3239bc8ce37b598c1d514ad 100644
--- a/third_party/WebKit/public/web/WebFrameWidget.h
+++ b/third_party/WebKit/public/web/WebFrameWidget.h
@@ -32,11 +32,13 @@
#define WebFrameWidget_h
#include "../platform/WebCommon.h"
+#include "../platform/WebDragOperation.h"
#include "../platform/WebPageVisibilityState.h"
#include "public/web/WebWidget.h"
namespace blink {
+class WebDragData;
class WebLocalFrame;
class WebInputMethodController;
class WebView;
@@ -74,7 +76,7 @@ class WebFrameWidget : public WebWidget {
virtual void setBaseBackgroundColor(WebColor) = 0;
// Returns the local root of this WebFrameWidget.
- virtual WebLocalFrame* localRoot() = 0;
+ virtual WebLocalFrame* localRoot() const = 0;
// WebWidget implementation.
bool isWebFrameWidget() const final { return true; }
@@ -85,6 +87,25 @@ class WebFrameWidget : public WebWidget {
// frames or possibly when the WebFrameWidget does not accept IME events.
virtual WebInputMethodController* getActiveWebInputMethodController()
const = 0;
+
+ // Callback methods when a drag-and-drop operation is trying to drop something
+ // on the WebWidget.
+ virtual WebDragOperation dragTargetDragEnter(
+ const WebDragData&,
+ const WebPoint& pointInViewport,
+ const WebPoint& screenPoint,
+ WebDragOperationsMask operationsAllowed,
+ int modifiers) = 0;
+ virtual WebDragOperation dragTargetDragOver(
+ const WebPoint& pointInViewport,
+ const WebPoint& screenPoint,
+ WebDragOperationsMask operationsAllowed,
+ int modifiers) = 0;
+ virtual void dragTargetDragLeave() = 0;
+ virtual void dragTargetDrop(const WebDragData&,
+ const WebPoint& pointInViewport,
+ const WebPoint& screenPoint,
+ int modifiers) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698