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

Unified Diff: ui/gfx/image.h

Issue 6990051: Unix ifdefs patch for ui/ and webkit/ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: removed some too general ifdefs and ppapi changes Created 9 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: ui/gfx/image.h
diff --git a/ui/gfx/image.h b/ui/gfx/image.h
index df088feae9f95ef95f966b4cdfc35a568078ede8..d9117ed9aa1b10177eee7de81cf629283bd72ac3 100644
--- a/ui/gfx/image.h
+++ b/ui/gfx/image.h
@@ -58,7 +58,7 @@ class Image {
// of bitmaps, one for each resolution.
explicit Image(const std::vector<const SkBitmap*>& bitmaps);
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
// Does not increase |pixbuf|'s reference count; expects to take ownership.
explicit Image(GdkPixbuf* pixbuf);
#elif defined(OS_MACOSX)
@@ -81,7 +81,7 @@ class Image {
// Conversion handlers.
operator const SkBitmap*() const ;
operator const SkBitmap&() const;
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
operator GdkPixbuf*() const;
#elif defined(OS_MACOSX)
operator NSImage*() const;
« no previous file with comments | « ui/gfx/gl/gl_surface_egl.cc ('k') | ui/gfx/image.cc » ('j') | ui/gfx/image_unittest_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698