<rdar://problem/5524082> Allow images to be dragged out directly into other...
authorsfalken <sfalken@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 23:49:56 +0000 (23:49 +0000)
committersfalken <sfalken@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 23:49:56 +0000 (23:49 +0000)
commit9ba2f55045c388b8c1cadbefb1f204ce8196d195
treeef7ca81e0ae2e634831c1a19fee40e1ddf20d053
parentd470cedddf621f78504535cacadb0405a546185b
    <rdar://problem/5524082> Allow images to be dragged out directly into other apps

        We weren't including CF_HDROP in our image drops.  This broke drag of
        images out of the browser window directly into other apps (examples
        include notepad, mspaint, msword).

        Reviewed by Oliver, Ada.

        * platform/win/ClipboardWin.cpp:
        (WebCore::createGlobalImageFileContent): Removed unused variable.
        (WebCore::createGlobalHDropContent): Added
        (WebCore::writeFileToDataObject): Write HDROP data if available.
        (WebCore::writeImageToDataObject): Write HDROP for dragged images.
        (WebCore::ClipboardWin::writeURL): Don't write HDROP for dragged URLs.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/win/ClipboardWin.cpp