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

Unified Diff: base/nsimage_cache_mac.h

Issue 243100: Move nsimage_cache into base so that it can be accessed from outside of chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « base/base.gyp ('k') | base/nsimage_cache_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nsimage_cache_mac.h
===================================================================
--- base/nsimage_cache_mac.h (revision 27995)
+++ base/nsimage_cache_mac.h (working copy)
@@ -2,10 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_COCOA_NSIMAGE_CACHE_H_
-#define CHROME_BROWSER_COCOA_NSIMAGE_CACHE_H_
+#ifndef BASE_NSIMAGE_CACHE_MAC_H_
+#define BASE_NSIMAGE_CACHE_MAC_H_
-#import <Cocoa/Cocoa.h>
+#ifdef __OBJC__
+@class NSImage;
+@class NSString;
+#else
+class NSImage;
+class NSString;
+#endif
namespace nsimage_cache {
@@ -16,11 +22,11 @@
// - 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 *ImageNamed(NSString* name);
+NSImage* ImageNamed(NSString* name);
// Clears the cache.
void Clear(void);
} // namespace nsimage_cache
-#endif // CHROME_BROWSER_COCOA_NSIMAGE_CACHE_H_
+#endif // BASE_NSIMAGE_CACHE_MAC_H_
« no previous file with comments | « base/base.gyp ('k') | base/nsimage_cache_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698