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

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

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). 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 d18248a40f0f7465491dc3ea13a285c4e22856f6..f1e4984aa2bea13543abce934d55c31a8e4a0898 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -285,6 +285,16 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
const gfx::Point& screen_pt,
int key_modifiers) {}
+ // Notifies the renderer that a a drag operation that it started has ended,
+ // either in a drop or by being cancelled.
+ virtual void DragSourceEndedAt(
+ int client_x, int client_y, int screen_x, int screen_y,
+ blink::WebDragOperation operation) {};
+
+ // Notifies the renderer that we're done with the drag and drop operation.
+ // This allows the renderer to reset some state.
+ virtual void DragSourceSystemDragEnded() {};
+
// Filters drop data before it is passed to RenderWidgetHost.
virtual void FilterDropData(DropData* drop_data) {}
};

Powered by Google App Engine
This is Rietveld 408576698