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

Unified Diff: app/clipboard/clipboard_linux.cc

Issue 2058004: Move non-linux specific code from base/linux_util to app/gtk_util... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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: app/clipboard/clipboard_linux.cc
===================================================================
--- app/clipboard/clipboard_linux.cc (revision 46986)
+++ app/clipboard/clipboard_linux.cc (working copy)
@@ -13,7 +13,7 @@
#include "base/file_path.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
-#include "base/linux_util.h"
+#include "app/gtk_util.h"
#include "base/utf_string_conversions.h"
#include "gfx/size.h"
@@ -189,8 +189,9 @@
void Clipboard::WriteBitmap(const char* pixel_data, const char* size_data) {
const gfx::Size* size = reinterpret_cast<const gfx::Size*>(size_data);
- guchar* data = base::BGRAToRGBA(reinterpret_cast<const uint8_t*>(pixel_data),
- size->width(), size->height(), 0);
+ guchar* data =
+ gtk_util::BGRAToRGBA(reinterpret_cast<const uint8_t*>(pixel_data),
+ size->width(), size->height(), 0);
GdkPixbuf* pixbuf =
gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, TRUE,

Powered by Google App Engine
This is Rietveld 408576698