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

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: Splitting up patch 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 721f137bdccae979d5f7acb614a723669393a877..43ec8e581e47467e292228b338ab5123f4179980 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1854,11 +1854,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() {
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698