summaryrefslogtreecommitdiffstats
path: root/app/resource_bundle.h
diff options
context:
space:
mode:
authorhayato@chromium.org <hayato@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 05:25:11 +0000
committerhayato@chromium.org <hayato@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 05:25:11 +0000
commit32caba271be320eaba3ef4cee0a5806de0b2cbca (patch)
tree0ecbe2fdd97e243a20fe009144e3ee1746744a91 /app/resource_bundle.h
parent717fcd89505d0e318b052c24a60fb1b64a6de480 (diff)
downloadchromium_src-32caba271be320eaba3ef4cee0a5806de0b2cbca.zip
chromium_src-32caba271be320eaba3ef4cee0a5806de0b2cbca.tar.gz
chromium_src-32caba271be320eaba3ef4cee0a5806de0b2cbca.tar.bz2
Share code between Mac and Linux in ResourceBundle.
BUG=25891 TEST=None Review URL: http://codereview.chromium.org/442002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/resource_bundle.h')
-rw-r--r--app/resource_bundle.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/resource_bundle.h b/app/resource_bundle.h
index 5c3afb2..550fb72 100644
--- a/app/resource_bundle.h
+++ b/app/resource_bundle.h
@@ -163,6 +163,11 @@ class ResourceBundle {
// Free skia_images_.
void FreeImages();
+#if defined(USE_X11)
+ // Free gdkPixbufs_.
+ void FreeGdkPixBufs();
+#endif
+
// Try to load the main resources and the locale specific strings from an
// external data module.
void LoadResources(const std::wstring& pref_locale);
@@ -170,9 +175,15 @@ class ResourceBundle {
// Initialize all the gfx::Font members if they haven't yet been initialized.
void LoadFontsIfNecessary();
+#if defined(USE_BASE_DATA_PACK)
+ // Returns the full pathname of the main resources file to load. May return
+ // an empty string if no main resources data files are found.
+ static FilePath GetResourcesFilePath();
+#endif
+
// Returns the full pathname of the locale file to load. May return an empty
// string if no locale data files are found.
- FilePath GetLocaleFilePath(const std::wstring& pref_locale);
+ static FilePath GetLocaleFilePath(const std::wstring& pref_locale);
// Returns a handle to bytes from the resource |module|, without doing any
// processing or interpretation of the resource. Returns whether we