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

Unified Diff: content/browser/web_contents/web_contents_impl.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: Addressed comments Created 7 years, 8 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_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 72ff14b94109c76fb83900390ccbebef739a6f6c..0980e9fa34ce485a516942dee052b15d9e84db8e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1822,11 +1822,33 @@ void WebContentsImpl::OnCloseStarted() {
close_start_time_ = base::TimeTicks::Now();
}
+void WebContentsImpl::DragSourceEndedAt(int client_x, int client_y,
+ int screen_x, int screen_y, WebKit::WebDragOperation operation) {
+ if (browser_plugin_embedder_.get())
+ browser_plugin_embedder_->DragSourceEndedAt(client_x, client_y,
+ screen_x, screen_y, operation);
+ if (GetRenderViewHost())
+ GetRenderViewHostImpl()->DragSourceEndedAt(client_x, client_y,
+ screen_x, screen_y, operation);
+}
+
+void WebContentsImpl::DragSourceMovedTo(int client_x, int client_y,
+ int screen_x, int screen_y) {
+ if (browser_plugin_embedder_.get())
+ browser_plugin_embedder_->DragSourceMovedTo(client_x, client_y,
+ screen_x, screen_y);
+ if (GetRenderViewHost())
+ GetRenderViewHostImpl()->DragSourceMovedTo(client_x, client_y,
+ screen_x, screen_y);
+}
+
void WebContentsImpl::SystemDragEnded() {
if (GetRenderViewHost())
GetRenderViewHostImpl()->DragSourceSystemDragEnded();
if (delegate_)
delegate_->DragEnded();
+ if (browser_plugin_embedder_.get())
+ browser_plugin_embedder_->SystemDragEnded();
}
void WebContentsImpl::UserGestureDone() {

Powered by Google App Engine
This is Rietveld 408576698