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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.h

Issue 2508013002: Drag-and-drop across OOPIFs. (Closed)
Patch Set: Some fixes for tests. Rebased. 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/Source/web/WebFrameWidgetBase.h
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.h b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
index ccd3ebb6016f7051a924bf0b3aef8b5167069016..ac9e1038881506888562594d6d56bba165eece6b 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.h
+++ b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
@@ -16,6 +16,7 @@ class CompositorAnimationTimeline;
class CompositorProxyClient;
class DragController;
class GraphicsLayer;
+class WebImage;
class WebLayer;
class WebLocalFrameImpl;
class WebViewImpl;
@@ -64,6 +65,15 @@ class WebFrameWidgetBase : public WebFrameWidget {
WebDragOperation) override;
void dragSourceSystemDragEnded() override;
+ // Called when a drag-n-drop operation should begin.
+ void startDragging(WebReferrerPolicy,
+ const WebDragData&,
+ WebDragOperationsMask,
+ const WebImage& dragImage,
+ const WebPoint& dragImageOffset);
+
+ bool doingDragAndDrop() { return m_doingDragAndDrop; }
+
protected:
enum DragAction { DragEnter, DragOver };
@@ -78,6 +88,9 @@ class WebFrameWidgetBase : public WebFrameWidget {
// Helper function to call VisualViewport::viewportToRootFrame().
WebPoint viewportToRootFrame(const WebPoint& pointInViewport) const;
+ // Returns the local root as a LocalFrame*.
+ LocalFrame* localFrameRoot() const;
+
WebViewImpl* view() const;
// Returns the page object associated with this widget. This may be null when

Powered by Google App Engine
This is Rietveld 408576698