diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 22:32:14 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 22:32:14 +0000 |
commit | e376aa74c136126e808c5865ef0cf24ed2a999f7 (patch) | |
tree | 7ed827aa673771bb3544d413e3481c703d85ead9 /app/clipboard/clipboard_win.cc | |
parent | 7ea7b4d941823d799fd6e0c1d8bee537c624425a (diff) | |
download | chromium_src-e376aa74c136126e808c5865ef0cf24ed2a999f7.zip chromium_src-e376aa74c136126e808c5865ef0cf24ed2a999f7.tar.gz chromium_src-e376aa74c136126e808c5865ef0cf24ed2a999f7.tar.bz2 |
Remove Clipboard::WriteFile{,s} which is unused on mac and windows and unimplemented on linux.
BUG=18037
TEST=trybots
Review URL: http://codereview.chromium.org/292018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/clipboard/clipboard_win.cc')
-rw-r--r-- | app/clipboard/clipboard_win.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/app/clipboard/clipboard_win.cc b/app/clipboard/clipboard_win.cc index 288c820..9074fc5 100644 --- a/app/clipboard/clipboard_win.cc +++ b/app/clipboard/clipboard_win.cc @@ -329,29 +329,6 @@ void Clipboard::WriteBitmapFromHandle(HBITMAP source_hbitmap, WriteToClipboard(CF_BITMAP, hbitmap); } -// Write a file or set of files to the clipboard in HDROP format. When the user -// invokes a paste command (in a Windows explorer shell, for example), the files -// will be copied to the paste location. -void Clipboard::WriteFiles(const char* file_data, size_t file_len) { - // Calculate the amount of space we'll need store the strings and - // a DROPFILES struct. - size_t bytes = sizeof(DROPFILES) + file_len; - - HANDLE hdata = ::GlobalAlloc(GMEM_MOVEABLE, bytes); - if (!hdata) - return; - - char* data = static_cast<char*>(::GlobalLock(hdata)); - DROPFILES* drop_files = reinterpret_cast<DROPFILES*>(data); - drop_files->pFiles = sizeof(DROPFILES); - drop_files->fWide = TRUE; - - memcpy(data + sizeof(DROPFILES), file_data, file_len); - - ::GlobalUnlock(hdata); - WriteToClipboard(CF_HDROP, hdata); -} - void Clipboard::WriteData(const char* format_name, size_t format_len, const char* data_data, size_t data_len) { std::string format(format_name, format_len); |