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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 11088043: browser-plugin: Allow accepting drag-n-drop events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/browser_plugin/browser_plugin_embedder_helper.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
index 78866a26aa0c16ce02529d9d7ce377a392eb883c..ba63545e06939cdc362cb5d16859b29479733cb4 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
@@ -51,6 +51,8 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived(
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility,
OnSetGuestVisibility)
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_DragStatusUpdate,
+ OnDragStatusUpdate)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -160,5 +162,14 @@ void BrowserPluginEmbedderHelper::OnSetGuestVisibility(int instance_id,
embedder_->SetGuestVisibility(instance_id, visible);
}
+void BrowserPluginEmbedderHelper::OnDragStatusUpdate(
+ int instance_id,
+ WebKit::WebDragStatus drag_status,
+ const WebDropData& drop_data,
+ WebKit::WebDragOperationsMask drag_mask,
+ const gfx::Point& location) {
+ embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask,
+ location);
+}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698