diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 19:45:59 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 19:45:59 +0000 |
commit | e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4 (patch) | |
tree | bec7eff71b45f72059b0327ef7ea028204d340cc /base/scoped_clipboard_writer.cc | |
parent | 63bb78db26ed509e9b12b586bafeb81f8bce40a5 (diff) | |
download | chromium_src-e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4.zip chromium_src-e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4.tar.gz chromium_src-e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4.tar.bz2 |
Linux: write images to clipboard.
Writing a bitmap to the clipboard is a rather slow operation, as it involves piping it over IPC and then converting it to a PNG.
Review URL: http://codereview.chromium.org/42592
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/scoped_clipboard_writer.cc')
-rw-r--r-- | base/scoped_clipboard_writer.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/base/scoped_clipboard_writer.cc b/base/scoped_clipboard_writer.cc index 01335e4..9c74e6b 100644 --- a/base/scoped_clipboard_writer.cc +++ b/base/scoped_clipboard_writer.cc @@ -120,7 +120,6 @@ void ScopedClipboardWriter::WriteWebSmartPaste() { objects_[Clipboard::CBF_WEBKIT] = Clipboard::ObjectMapParams(); } -#if defined(OS_WIN) void ScopedClipboardWriter::WriteBitmapFromPixels(const void* pixels, const gfx::Size& size) { Clipboard::ObjectMapParam pixels_parameter, size_parameter; @@ -139,4 +138,3 @@ void ScopedClipboardWriter::WriteBitmapFromPixels(const void* pixels, parameters.push_back(size_parameter); objects_[Clipboard::CBF_BITMAP] = parameters; } -#endif // defined(OS_WIN) |