Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: base/clipboard.h

Issue 172032: First cut for a FreeBSD port - much still not working (Closed) Base URL:
Patch Set: '' Created 11 years, 3 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
« base/base.gyp ('K') | « base/base.gyp ('k') | base/ » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/clipboard.h
--- base/clipboard.h (revision 25593)
+++ base/clipboard.h (working copy)
@@ -21,7 +21,7 @@
class Clipboard {
typedef std::string FormatType;
-#if defined(OS_LINUX)
+#if defined(USE_X11)
typedef struct _GtkClipboard GtkClipboard;
typedef std::map<FormatType, std::pair<char*, size_t> > TargetMap;
@@ -167,7 +167,7 @@
void WriteFiles(const char* file_data, size_t file_len);
void WriteBitmap(const char* pixel_data, const char* size_data);
-#if defined(OS_WIN) || defined(OS_LINUX)
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
// |format_name| is an ASCII string and should be NULL-terminated.
// TODO(estade): port to mac.
void WriteData(const char* format_name, size_t format_len,
@@ -200,7 +200,7 @@
// True if we can create a window.
bool create_window_;
-#elif defined(OS_LINUX)
+#elif defined(USE_X11)
// Data is stored in the |clipboard_data_| map until it is saved to the system
// clipboard. The Store* functions save data to the |clipboard_data_| map. The
// SetGtkClipboard function replaces whatever is on the system clipboard with
« base/base.gyp ('K') | « base/base.gyp ('k') | base/ » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698