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

Unified Diff: content/public/browser/render_widget_host.h

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: No longer using GetSiteInstance() in RenderWidgetHostImpl. 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: content/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index b75fd878a25de9a1f4641c3480a5ec0925d99ebc..cbf18615cf92cc547df40fc38aeced70f7e2920b 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -259,6 +259,24 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
// Sends a compositor proto to the render widget.
virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0;
+
+ // Drag-and-drop drop target messages that get sent to Blink.
+ virtual void DragTargetDragEnter(
+ const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ blink::WebDragOperationsMask operations_allowed,
+ int key_modifiers) = 0;
+ virtual void DragTargetDragOver(
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ blink::WebDragOperationsMask operations_allowed,
+ int key_modifiers) = 0;
+ virtual void DragTargetDragLeave() = 0;
+ virtual void DragTargetDrop(const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698