mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-11 09:35:33 +01:00
Mac: Delay destroying the browser window until pending drag operations have completed (issue #610).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@663 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
c601933e8b
commit
0bfea3e1b1
@ -401,10 +401,17 @@ void BrowserWebViewDelegate::startDragging(
|
||||
ns_image = gfx::SkBitmapToNSImageWithColorSpace(bitmap, color_space);
|
||||
}
|
||||
NSPoint offset = NSPointFromCGPoint(gfx::Point(image_offset).ToCGPoint());
|
||||
|
||||
// Keep a reference to the NSView so that it won't be destroyed until after
|
||||
// the drag operation has completed.
|
||||
[view retain];
|
||||
|
||||
[view startDragWithDropData:drop_data
|
||||
dragOperationMask:static_cast<NSDragOperation>(mask)
|
||||
image:ns_image
|
||||
offset:offset];
|
||||
|
||||
[view release];
|
||||
}
|
||||
|
||||
void BrowserWebViewDelegate::runModal() {
|
||||
|
Loading…
Reference in New Issue
Block a user