summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 19:45:59 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 19:45:59 +0000
commite4d8e1c51a06fee5e6c35d47feea83b1c7347dc4 (patch)
treebec7eff71b45f72059b0327ef7ea028204d340cc /tools
parent63bb78db26ed509e9b12b586bafeb81f8bce40a5 (diff)
downloadchromium_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 'tools')
-rw-r--r--tools/gtk_clipboard_dump/gtk_clipboard_dump.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gtk_clipboard_dump/gtk_clipboard_dump.cc b/tools/gtk_clipboard_dump/gtk_clipboard_dump.cc
index 9d00ddb..e74cf8d 100644
--- a/tools/gtk_clipboard_dump/gtk_clipboard_dump.cc
+++ b/tools/gtk_clipboard_dump/gtk_clipboard_dump.cc
@@ -30,6 +30,12 @@ int main(int argc, char* argv[]) {
}
printf(" / length: %d / bits %d]: ", data->length, data->format);
+
+ if (strstr(gdk_atom_name(targets[i]), "image")) {
+ printf("(image omitted)\n\n");
+ continue;
+ }
+
for (int j = 0; j < data->length; j++) {
// Output data one byte at a time. Currently wide strings look
// pretty weird.