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

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 adde725e61b83c614b638541935b9a737c56661b..0c60cf58e7e78eb179009973a504094b6cd6a843 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -740,6 +740,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) {
}

Powered by Google App Engine
This is Rietveld 408576698