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

Side by Side Diff: ui/gfx/mac/nsimage_cache.h

Issue 12096047: mac: Delete GetCachedImageWithName(), it's no longer used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | ui/gfx/mac/nsimage_cache.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_MAC_NSIMAGE_CACHE_H_
6 #define UI_GFX_MAC_NSIMAGE_CACHE_H_
7
8 #include "ui/base/ui_export.h"
9
10 #ifdef __OBJC__
11 @class NSImage;
12 @class NSString;
13 #else
14 class NSImage;
15 class NSString;
16 #endif
17
18 namespace gfx {
19
20 // Returns an autoreleased image from the framework bundle
21 // (base::mac::FrameworkBundle()) with the given name, and keeps it in memory so
22 // future fetches are fast.
23 // NOTE:
24 // - This should only be called on the main thread.
25 // - The caller should retain the image if they want to keep it around, as
26 // the cache could have limit on size/lifetime, etc.
27 UI_EXPORT NSImage* GetCachedImageWithName(NSString* name);
28
29 // Clears the image cache.
30 UI_EXPORT void ClearCachedImages(void);
31
32 } // namespace gfx
33
34 #endif // UI_GFX_MAC_NSIMAGE_CACHE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | ui/gfx/mac/nsimage_cache.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698