Windows: Add support for disabling HTML5 drag from browser by setting CefBrowserSettings.drag_drop_disabled to true (issue #284).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@272 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-08-03 16:16:29 +00:00
parent 512b864639
commit 3b34f0014d
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,8 @@ void BrowserWebViewDelegate::startDragging(
const WebImage& image, const WebImage& image,
const WebPoint& image_offset) { const WebPoint& image_offset) {
// Dragging is not supported when window rendering is disabled. // Dragging is not supported when window rendering is disabled.
if (browser_->IsWindowRenderingDisabled()) { if (browser_->settings().drag_drop_disabled ||
browser_->IsWindowRenderingDisabled()) {
EndDragging(); EndDragging();
return; return;
} }