Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: tools/gtk_clipboard_dump/gtk_clipboard_dump.cc

Issue 42592: Linux: write images to clipboard.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | webkit/glue/webclipboard_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gtk_clipboard_dump/gtk_clipboard_dump.cc
===================================================================
--- tools/gtk_clipboard_dump/gtk_clipboard_dump.cc (revision 12396)
+++ tools/gtk_clipboard_dump/gtk_clipboard_dump.cc (working copy)
@@ -30,6 +30,12 @@
}
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.
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | webkit/glue/webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698