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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.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 | « base/scoped_clipboard_writer.cc ('k') | tools/gtk_clipboard_dump/gtk_clipboard_dump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 12396)
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -499,13 +499,13 @@
// a task to perform the write on the UI thread.
Clipboard::ObjectMap* long_living_objects = new Clipboard::ObjectMap(objects);
+#if defined(OS_WIN)
// We pass the renderer handle to assist the clipboard with using shared
- // memory objects. renderer handle is a handle to the process that would
- // own any shared memory that might be in the object list.
-#if defined(OS_WIN)
+ // memory objects. handle() is a handle to the process that would
+ // own any shared memory that might be in the object list. We only do this
+ // on Windows and it only applies to bitmaps. (On Linux, bitmaps
+ // are copied pixel by pixel rather than using shared memory.)
Clipboard::DuplicateRemoteHandles(handle(), long_living_objects);
-#else
- NOTIMPLEMENTED(); // TODO(port) implement this.
#endif
render_widget_helper_->ui_loop()->PostTask(FROM_HERE,
« no previous file with comments | « base/scoped_clipboard_writer.cc ('k') | tools/gtk_clipboard_dump/gtk_clipboard_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698