Chromium Code Reviews| Index: ui/gfx/image/image.h |
| diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h |
| index ab13e84c001fb3533f6ac626cecbbb1ca3a7b99c..12e4416423cc63c384389be6f2d5c48373baf86e 100644 |
| --- a/ui/gfx/image/image.h |
| +++ b/ui/gfx/image/image.h |
| @@ -28,6 +28,10 @@ |
| #include "ui/base/ui_export.h" |
| #include "ui/gfx/native_widget_types.h" |
| +#if defined(OS_MACOSX) |
| +#include <Carbon/Carbon.h> |
|
Nico
2013/06/13 00:12:44
Carbon? Does ApplicationServices work instead?
Al
|
| +#endif |
| + |
| class SkBitmap; |
| namespace { |
| @@ -175,6 +179,13 @@ class UI_EXPORT Image { |
| // Swaps this image's internal representations with |other|. |
| void SwapRepresentations(gfx::Image* other); |
| +#if defined(OS_MACOSX) |
| + // Set the default representation's color space. This is used for converting |
| + // to NSImage. This is used to compensate for PNGCodec not writing or reading |
| + // colorspace ancillary chunks. (sRGB, iCCP). |
| + void SetSourceColorSpace(CGColorSpaceRef color_space); |
| +#endif // OS_MACOSX |
| + |
| private: |
| // Returns the type of the default representation. |
| RepresentationType DefaultRepresentationType() const; |