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

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

Issue 9699080: ui: Export a function that's used by a test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_MAC_NSIMAGE_CACHE_H_ 5 #ifndef UI_GFX_MAC_NSIMAGE_CACHE_H_
6 #define UI_GFX_MAC_NSIMAGE_CACHE_H_ 6 #define UI_GFX_MAC_NSIMAGE_CACHE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/base/ui_export.h" 9 #include "ui/base/ui_export.h"
10 10
(...skipping 10 matching lines...) Expand all
21 // Returns an autoreleased image from the framework bundle 21 // Returns an autoreleased image from the framework bundle
22 // (base::mac::FrameworkBundle()) with the given name, and keeps it in memory so 22 // (base::mac::FrameworkBundle()) with the given name, and keeps it in memory so
23 // future fetches are fast. 23 // future fetches are fast.
24 // NOTE: 24 // NOTE:
25 // - This should only be called on the main thread. 25 // - This should only be called on the main thread.
26 // - The caller should retain the image if they want to keep it around, as 26 // - The caller should retain the image if they want to keep it around, as
27 // the cache could have limit on size/lifetime, etc. 27 // the cache could have limit on size/lifetime, etc.
28 UI_EXPORT NSImage* GetCachedImageWithName(NSString* name); 28 UI_EXPORT NSImage* GetCachedImageWithName(NSString* name);
29 29
30 // Clears the image cache. 30 // Clears the image cache.
31 void ClearCachedImages(void); 31 UI_EXPORT void ClearCachedImages(void);
32 32
33 } // namespace gfx 33 } // namespace gfx
34 34
35 #endif // UI_GFX_MAC_NSIMAGE_CACHE_H_ 35 #endif // UI_GFX_MAC_NSIMAGE_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698