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

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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Addressed comments by dcheng@. 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..d1a154fdc0d773199b15f0cec94bd23f044712d0 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -259,6 +259,27 @@ 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;
+
+ // Filters drop data before it is passed to RenderWidgetHostImpl.
nasko 2016/11/10 17:33:16 nit: Since this is content/public, drop the Impl p
paulmeyer 2016/11/11 23:26:48 Done.
+ virtual void FilterDropData(DropData* drop_data) = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698