diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 20:53:47 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 20:53:47 +0000 |
commit | 7418edfa1ad3eada8a12a225579fae3f45f382d5 (patch) | |
tree | 5a0387088ef18bc9a261853964fdf4a801976c08 /third_party | |
parent | bca8899ca1e49c182dcfcf17b6b94202e67f5e4b (diff) | |
download | chromium_src-7418edfa1ad3eada8a12a225579fae3f45f382d5.zip chromium_src-7418edfa1ad3eada8a12a225579fae3f45f382d5.tar.gz chromium_src-7418edfa1ad3eada8a12a225579fae3f45f382d5.tar.bz2 |
Enable dragging of images to desktop (Finder), Preview, etc. (on Mac).
This hooks up drag-and-drop of file promises, lazy writing to the drag
pasteboard, drag-sourcing of TIFF images (via Cocoa) and file contents.
Patch Set 5 improvements: Adds asynchronous writing of promised files.
Patch Set 4 improvements: Big refactoring -- drag source stuff is now
handled by the WebDragSource (Cocoa) object, with messages proxied
through the TabContentsViewCocoa object. The WebDragSource object
carries a weak reference to the TCVC, owns the WebDropData, and keeps
track of the drag pasteboard types/promises.
Patch Set 3 improvements over Patch Set 2: It shouldn't crash anymore. Made
drop_data_ reference counted, in anticipation of asynchronous file
writing.
TODO #1: Testing. Still need a unit test, maybe. Should make sure that
dragging by file contents actually works.
TODO #2 (in some other patch): Refactor some of the WebDropData
extraction code out, e.g., file name extraction should be made common
with other platforms.
TODO #3 (in some other patch): We really should make WebDropData cheaper
to copy around and retain. I'm not convinced it's a good idea to push
out the entire thing over IPC, especially since the data pushed could be
very big and may not even be used.
BUG=15640
TEST=drag images to various applications
Patch by viettrungluu@gmail.com
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions