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

Unified Diff: content/renderer/browser_plugin/browser_plugin.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/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index ed0f293678b2d13a4c5398ce6640fec90470115a..8edee29bc5d2e8945e91d8ea92915396fdbf8721 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -723,6 +723,24 @@ bool BrowserPlugin::handleInputEvent(const WebKit::WebInputEvent& event,
return handled;
}
+bool BrowserPlugin::handleDragStatusUpdate(WebKit::WebDragStatus drag_status,
+ const WebKit::WebDragData& drag_data,
+ WebKit::WebDragOperationsMask mask,
+ const WebKit::WebPoint& position,
+ const WebKit::WebPoint& screen) {
+ if (guest_crashed_ || !navigate_src_sent_)
+ return false;
+ BrowserPluginManager::Get()->Send(
+ new BrowserPluginHostMsg_DragStatusUpdate(
+ render_view_->GetRoutingID(),
+ instance_id_,
+ drag_status,
+ WebDropData(drag_data),
+ mask,
+ position));
+ return false;
+}
+
void BrowserPlugin::didReceiveResponse(
const WebKit::WebURLResponse& response) {
}
« content/common/browser_plugin_messages.h ('K') | « content/renderer/browser_plugin/browser_plugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698