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

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

Issue 7200045: Move app/mac/ files to ui/gfx/mac/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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
OLDNEW
1 // Copyright (c) 2010 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 APP_MAC_NSIMAGE_CACHE_H_ 5 #ifndef UI_GFX_MAC_NSIMAGE_CACHE_H_
6 #define APP_MAC_NSIMAGE_CACHE_H_ 6 #define UI_GFX_MAC_NSIMAGE_CACHE_H_
7 #pragma once 7 #pragma once
8 8
9 #ifdef __OBJC__ 9 #ifdef __OBJC__
10 @class NSImage; 10 @class NSImage;
11 @class NSString; 11 @class NSString;
12 #else 12 #else
13 class NSImage; 13 class NSImage;
14 class NSString; 14 class NSString;
15 #endif 15 #endif
16 16
17 namespace app { 17 namespace app {
Robert Sesek 2011/06/21 14:08:13 This should be switched to the 'gfx' namespace.
tfarina 2011/06/21 18:35:13 Done.
18 namespace mac { 18 namespace mac {
19 19
20 // Returns an autoreleased image from the main app bundle 20 // Returns an autoreleased image from the main app bundle
21 // (mac_util::MainAppBundle()) with the given name, and keeps it in memory so 21 // (mac_util::MainAppBundle()) with the given name, and keeps it in memory so
22 // future fetches are fast. 22 // future fetches are fast.
23 // NOTE: 23 // NOTE:
24 // - This should only be called on the main thread. 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 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. 26 // the cache could have limit on size/lifetime, etc.
27 NSImage* GetCachedImageWithName(NSString* name); 27 NSImage* GetCachedImageWithName(NSString* name);
28 28
29 // Clears the image cache. 29 // Clears the image cache.
30 void ClearCachedImages(void); 30 void ClearCachedImages(void);
31 31
32 } // namespace mac 32 } // namespace mac
33 } // namespace app 33 } // namespace app
34 34
35 #endif // APP_MAC_NSIMAGE_CACHE_H_ 35 #endif // UI_GFX_MAC_NSIMAGE_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698