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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

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/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 458a1f4a8b8e9532a5ed4744d8a629732876d0fa..7887b5d71d80ac4d0c7ac9940e1dfdbf148c974b 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1378,6 +1378,19 @@ void RenderWidgetHostImpl::DragTargetDrop(const DropData& drop_data,
client_pt, screen_pt, key_modifiers));
}
+void RenderWidgetHostImpl::DragSourceEndedAt(
+ int client_x, int client_y, int screen_x, int screen_y,
+ blink::WebDragOperation operation) {
+ Send(new DragMsg_SourceEnded(GetRoutingID(),
+ gfx::Point(client_x, client_y),
+ gfx::Point(screen_x, screen_y),
+ operation));
+}
+
+void RenderWidgetHostImpl::DragSourceSystemDragEnded() {
+ Send(new DragMsg_SourceSystemDragEnded(GetRoutingID()));
+}
+
void RenderWidgetHostImpl::FilterDropData(DropData* drop_data) {
#if DCHECK_IS_ON()
drop_data->view_id = GetRoutingID();
@@ -1473,7 +1486,7 @@ void RenderWidgetHostImpl::OnStartDragging(
RenderViewHostDelegateView* view = delegate_->GetDelegateView();
if (!view) {
// Need to clear drag and drop state in blink.
- rvh->DragSourceSystemDragEnded();
+ DragSourceSystemDragEnded();
return;
}

Powered by Google App Engine
This is Rietveld 408576698