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

Unified Diff: app/resource_bundle.h

Issue 172032: First cut for a FreeBSD port - much still not working (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
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
« no previous file with comments | « app/app.gyp ('k') | base/base.gyp » ('j') | base/base.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/resource_bundle.h
===================================================================
--- app/resource_bundle.h (revision 25593)
+++ app/resource_bundle.h (working copy)
@@ -20,12 +20,12 @@
#include "base/scoped_ptr.h"
#include "base/string16.h"
-#if defined(OS_LINUX) || defined(OS_MACOSX)
+#if defined(USE_BASE_DATA_PACK)
namespace base {
class DataPack;
}
#endif
-#if defined(OS_LINUX)
+#if defined(USE_X11)
typedef struct _GdkPixbuf GdkPixbuf;
#endif
namespace gfx {
@@ -123,7 +123,7 @@
#elif defined(OS_MACOSX)
// Wrapper for GetBitmapNamed. Converts the bitmap to an autoreleased NSImage.
NSImage* GetNSImageNamed(int resource_id);
-#elif defined(OS_LINUX)
+#elif defined(USE_X11)
// Gets the GdkPixbuf with the specified resource_id, first by looking into
// the theme data, than in the current module data if applicable. Returns a
// pointer to a shared instance of the GdkPixbuf. This shared GdkPixbuf is
@@ -160,7 +160,7 @@
#if defined(OS_WIN)
// Windows stores resources in DLLs, which are managed by HINSTANCE.
typedef HINSTANCE DataHandle;
-#elif defined(OS_LINUX) || defined(OS_MACOSX)
+#elif defined(USE_BASE_DATA_PACK)
// Linux uses base::DataPack.
typedef base::DataPack* DataHandle;
#endif
@@ -208,7 +208,7 @@
// ownership of the pointers.
typedef std::map<int, SkBitmap*> SkImageMap;
SkImageMap skia_images_;
-#if defined(OS_LINUX)
+#if defined(USE_X11)
typedef std::map<int, GdkPixbuf*> GdkPixbufMap;
GdkPixbufMap gdk_pixbufs_;
#endif
« no previous file with comments | « app/app.gyp ('k') | base/base.gyp » ('j') | base/base.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698