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

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
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/test/data/browser_plugin_dragging.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 294cec001d38159940abf66c83dee230cea1bd65..9e4b961fab575f9c315e6383da1c0533ac49a027 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -761,6 +761,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) {
}
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/test/data/browser_plugin_dragging.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698