a possible fix for dragging

This commit is contained in:
gellert 2016-08-01 12:06:46 +02:00
parent 439ad94afe
commit 36918250ec
2 changed files with 4 additions and 1 deletions

View file

@ -593,7 +593,8 @@ void OffScreenRenderWidgetHostView::ClearCompositorFrame() {
} }
void OffScreenRenderWidgetHostView::InitAsPopup( void OffScreenRenderWidgetHostView::InitAsPopup(
content::RenderWidgetHostView *, const gfx::Rect &) { content::RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) {
printf("popup, parent: %p\n", parent_host_view);
} }
void OffScreenRenderWidgetHostView::InitAsFullscreen( void OffScreenRenderWidgetHostView::InitAsFullscreen(

View file

@ -116,6 +116,8 @@ void OffScreenWebContentsView::StartDragging(
const gfx::ImageSkia& image, const gfx::ImageSkia& image,
const gfx::Vector2d& image_offset, const gfx::Vector2d& image_offset,
const content::DragEventSourceInfo& event_info) { const content::DragEventSourceInfo& event_info) {
if (web_contents_)
web_contents_->SystemDragEnded();
} }
void OffScreenWebContentsView::UpdateDragCursor( void OffScreenWebContentsView::UpdateDragCursor(