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:
parent
512b864639
commit
3b34f0014d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue