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

Unified Diff: base/clipboard.cc

Issue 159815: Refactor bookmark clipboard code to be cross platform. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix UMR Created 11 years, 4 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
Index: base/clipboard.cc
===================================================================
--- base/clipboard.cc (revision 22359)
+++ base/clipboard.cc (working copy)
@@ -17,7 +17,7 @@
static_cast<size_t>(size->width() * size->height() * 4);
}
-}
+} // namespace
void Clipboard::DispatchObject(ObjectType type, const ObjectMapParams& params) {
switch (type) {
@@ -57,6 +57,11 @@
return;
WriteBitmap(&(params[0].front()), &(params[1].front()));
break;
+
+ case CBF_DATA:
+ WriteData(&(params[0].front()), params[0].size(),
+ &(params[1].front()), params[1].size());
+ break;
#endif // defined(OS_WIN) || defined(OS_LINUX)
default:
« no previous file with comments | « base/clipboard.h ('k') | base/clipboard_linux.cc » ('j') | base/clipboard_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698