summaryrefslogtreecommitdiffstats
path: root/ui/base/resource
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 21:46:43 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 21:46:43 +0000
commit185ec29c9f4d0daf853c2e3cf4f9df77a48915d7 (patch)
tree39a14e707aa2bc5114f2bcf6a1bd0b192ad229d5 /ui/base/resource
parentc859d92cdc52a46a9df92ea91fc0619c45f98be3 (diff)
downloadchromium_src-185ec29c9f4d0daf853c2e3cf4f9df77a48915d7.zip
chromium_src-185ec29c9f4d0daf853c2e3cf4f9df77a48915d7.tar.gz
chromium_src-185ec29c9f4d0daf853c2e3cf4f9df77a48915d7.tar.bz2
Move some win specific code to resource_bundle_win.cc.
Review URL: http://codereview.chromium.org/6902209 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/resource')
-rw-r--r--ui/base/resource/resource_bundle.cc8
-rw-r--r--ui/base/resource/resource_bundle_win.cc6
2 files changed, 6 insertions, 8 deletions
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
index 306a61e..50ad59a 100644
--- a/ui/base/resource/resource_bundle.cc
+++ b/ui/base/resource/resource_bundle.cc
@@ -146,14 +146,6 @@ gfx::Image& ResourceBundle::GetImageNamed(int resource_id) {
return *GetEmptyImage();
}
-#if !defined(OS_MACOSX) && !defined(OS_LINUX)
-// Only Mac and Linux have non-Skia native image types. All other platforms use
-// Skia natively, so just use GetImageNamed().
-gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) {
- return GetImageNamed(resource_id);
-}
-#endif
-
RefCountedStaticMemory* ResourceBundle::LoadDataResourceBytes(
int resource_id) const {
RefCountedStaticMemory* bytes =
diff --git a/ui/base/resource/resource_bundle_win.cc b/ui/base/resource/resource_bundle_win.cc
index 9df6b0f..c459026 100644
--- a/ui/base/resource/resource_bundle_win.cc
+++ b/ui/base/resource/resource_bundle_win.cc
@@ -172,4 +172,10 @@ string16 ResourceBundle::GetLocalizedString(int message_id) {
return string16(image->achString, image->nLength);
}
+// Windows only uses SkBitmap for gfx::Image, so this is the same as
+// GetImageNamed.
+gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) {
+ return GetImageNamed(resource_id);
+}
+
} // namespace ui;