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

Unified Diff: content/public/browser/render_widget_host.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 | « content/public/browser/render_view_host.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2c6c7c36c174c70f5248c7110d2e0a2579be0b3d 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -259,6 +259,33 @@ 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) {}
+ virtual void DragTargetDragEnterWithMetaData(
+ const std::vector<DropData::Metadata>& metadata,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ blink::WebDragOperationsMask operations_allowed,
+ int key_modifiers) {};
+ virtual void DragTargetDragOver(
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ blink::WebDragOperationsMask operations_allowed,
+ int key_modifiers) {}
+ virtual void DragTargetDragLeave() {}
+ virtual void DragTargetDrop(const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) {}
+
+ // Filters drop data before it is passed to RenderWidgetHost.
+ virtual void FilterDropData(DropData* drop_data) {}
};
} // namespace content
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698