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

Unified 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, 11 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 | « content/browser/web_contents/web_drag_source_mac.mm ('k') | ui/gfx/mac/nsimage_cache.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mac/nsimage_cache.h
diff --git a/ui/gfx/mac/nsimage_cache.h b/ui/gfx/mac/nsimage_cache.h
deleted file mode 100644
index e43781f20c12aad2d9e9c1bfc10e61c375606e0f..0000000000000000000000000000000000000000
--- a/ui/gfx/mac/nsimage_cache.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_GFX_MAC_NSIMAGE_CACHE_H_
-#define UI_GFX_MAC_NSIMAGE_CACHE_H_
-
-#include "ui/base/ui_export.h"
-
-#ifdef __OBJC__
-@class NSImage;
-@class NSString;
-#else
-class NSImage;
-class NSString;
-#endif
-
-namespace gfx {
-
-// Returns an autoreleased image from the framework bundle
-// (base::mac::FrameworkBundle()) with the given name, and keeps it in memory so
-// future fetches are fast.
-// NOTE:
-// - 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.
-UI_EXPORT NSImage* GetCachedImageWithName(NSString* name);
-
-// Clears the image cache.
-UI_EXPORT void ClearCachedImages(void);
-
-} // namespace gfx
-
-#endif // UI_GFX_MAC_NSIMAGE_CACHE_H_
« 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