diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-09 20:59:32 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-09 20:59:32 +0000 |
commit | 655345e0991a974109e0f2656f6e00afbe8d9e59 (patch) | |
tree | 7fcca7714b4957f9efed3496e863c4f15b48941a /chrome/chrome.gyp | |
parent | 5ce8cbcbf65f801bc7f52cc035027d0eb907add5 (diff) | |
download | chromium_src-655345e0991a974109e0f2656f6e00afbe8d9e59.zip chromium_src-655345e0991a974109e0f2656f6e00afbe8d9e59.tar.gz chromium_src-655345e0991a974109e0f2656f6e00afbe8d9e59.tar.bz2 |
Added an helper namespace that provides fetches images from the app bundle and caches them, line NSImage imageNamed: but lets us control the bundle that's checked.
Unittest for the helper.
Updated the current places that use +[NSImage imageNamed:] to use our cache helper.
BUG=none
TEST=All the ui images still load.
Review URL: http://codereview.chromium.org/149393
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index ade7104..ab62c41 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -787,6 +787,8 @@ 'browser/cocoa/location_bar_view_mac.mm', 'browser/cocoa/menu_localizer.h', 'browser/cocoa/menu_localizer.mm', + 'browser/cocoa/nsimage_cache.h', + 'browser/cocoa/nsimage_cache.mm', 'browser/cocoa/page_info_window_controller.h', 'browser/cocoa/page_info_window_controller.mm', 'browser/cocoa/page_info_window_mac.h', @@ -3478,6 +3480,7 @@ 'browser/cocoa/location_bar_view_mac_unittest.mm', 'browser/cocoa/location_bar_fieldeditor_unittest.mm', 'browser/cocoa/gradient_button_cell_unittest.mm', + 'browser/cocoa/nsimage_cache_unittest.mm', 'browser/cocoa/preferences_window_controller_unittest.mm', 'browser/cocoa/rwhvm_editcommand_helper_unittest.mm', 'browser/cocoa/sad_tab_view_unittest.mm', |