diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-29 17:26:49 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-29 17:26:49 +0000 |
commit | 4e402ae2d4b7ce8194f690b40fe147a3b3c01c6c (patch) | |
tree | da7cafa293a030e763239b707618cd22246e6840 /ui/gfx | |
parent | f6ed3df0b70c1e148d8ebd05ae437d72fc69aee8 (diff) | |
download | chromium_src-4e402ae2d4b7ce8194f690b40fe147a3b3c01c6c.zip chromium_src-4e402ae2d4b7ce8194f690b40fe147a3b3c01c6c.tar.gz chromium_src-4e402ae2d4b7ce8194f690b40fe147a3b3c01c6c.tar.bz2 |
mac: Components build for ui, easy part
BUG=90078
TEST=none
Review URL: http://codereview.chromium.org/7531019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r-- | ui/gfx/mac/nsimage_cache.h | 4 | ||||
-rw-r--r-- | ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ui/gfx/mac/nsimage_cache.h b/ui/gfx/mac/nsimage_cache.h index 83179d2..f89a230 100644 --- a/ui/gfx/mac/nsimage_cache.h +++ b/ui/gfx/mac/nsimage_cache.h @@ -6,6 +6,8 @@ #define UI_GFX_MAC_NSIMAGE_CACHE_H_ #pragma once +#include "ui/ui_api.h" + #ifdef __OBJC__ @class NSImage; @class NSString; @@ -23,7 +25,7 @@ namespace gfx { // - This should only be called on the main thread. // - The caller should retain the image if they want to keep it around, as // the cache could have limit on size/lifetime, etc. -NSImage* GetCachedImageWithName(NSString* name); +UI_API NSImage* GetCachedImageWithName(NSString* name); // Clears the image cache. void ClearCachedImages(void); diff --git a/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h b/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h index 32b428c..05bf5f6 100644 --- a/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h +++ b/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h @@ -5,6 +5,7 @@ #ifndef UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ #define UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ +#include "ui/ui_api.h" #include "base/basictypes.h" #include "base/memory/scoped_nsobject.h" @@ -12,8 +13,7 @@ namespace gfx { -// What this class does should be self-evident and self-documenting. -class ScopedNSGraphicsContextSaveGState { +class UI_API ScopedNSGraphicsContextSaveGState { public: // If |context| is nil, it will use the |+currentContext|. explicit ScopedNSGraphicsContextSaveGState(NSGraphicsContext* context = nil); |