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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 12086095: Fixed drag and drop into and out of Browser Plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Drag and drop enabled for linux only Created 7 years, 9 months 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/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 791bbd34e9c959d8f12249de1d2fc99dada96ee3..42e43f28c244482f875534127ca259536259fef3 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -291,7 +291,7 @@ class WebDragSourceAura : public MessageLoopForUI::Observer,
aura::Window* window = rvh->GetView()->GetNativeView();
aura::Window::ConvertPointToTarget(window->GetRootWindow(),
window, &client_loc);
- rvh->DragSourceMovedTo(client_loc.x(), client_loc.y(),
+ contents_->DragSourceMovedTo(client_loc.x(), client_loc.y(),
screen_loc.x(), screen_loc.y());
}
break;
@@ -902,8 +902,8 @@ void WebContentsViewAura::EndDrag(WebKit::WebDragOperationsMask ops) {
RenderViewHost* rvh = web_contents_->GetRenderViewHost();
aura::Window* window = rvh->GetView()->GetNativeView();
aura::Window::ConvertPointToTarget(root_window, window, &client_loc);
- rvh->DragSourceEndedAt(client_loc.x(), client_loc.y(), screen_loc.x(),
- screen_loc.y(), ops);
+ web_contents_->DragSourceEndedAt(client_loc.x(), client_loc.y(),
+ screen_loc.x(), screen_loc.y(), ops);
}
void WebContentsViewAura::PrepareOverscrollWindow() {
@@ -1357,7 +1357,7 @@ void WebContentsViewAura::StartDragging(
return;
EndDrag(ConvertToWeb(result_op));
- web_contents_->GetRenderViewHost()->DragSourceSystemDragEnded();
+ web_contents_->SystemDragEnded();
}
void WebContentsViewAura::UpdateDragCursor(WebKit::WebDragOperation operation) {

Powered by Google App Engine
This is Rietveld 408576698