summaryrefslogtreecommitdiffstats
path: root/chrome/common/resource_bundle.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 19:00:50 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 19:00:50 +0000
commit2aad8bb784ec3ba75ee17ec7923a6ab1af235574 (patch)
tree20ddc725fc42d7fefca6f13366184a76d2394a79 /chrome/common/resource_bundle.h
parent105cf0d4d03f6e2da389e9a2c4cb5129a1ff8cda (diff)
downloadchromium_src-2aad8bb784ec3ba75ee17ec7923a6ab1af235574.zip
chromium_src-2aad8bb784ec3ba75ee17ec7923a6ab1af235574.tar.gz
chromium_src-2aad8bb784ec3ba75ee17ec7923a6ab1af235574.tar.bz2
Add a linux stub implementation for resource_bundle.
This should work except for the Load calls that should load .pak files. We don't generate .pak files yet so I left that code blank for now. Mac doesn't compile this yet and is still figuring out how they want to handle resources. Review URL: http://codereview.chromium.org/21020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/resource_bundle.h')
-rw-r--r--chrome/common/resource_bundle.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/common/resource_bundle.h b/chrome/common/resource_bundle.h
index 7af3ac8..062a3a3 100644
--- a/chrome/common/resource_bundle.h
+++ b/chrome/common/resource_bundle.h
@@ -117,7 +117,7 @@ class ResourceBundle {
// Windows stores resources in DLLs, which are managed by HINSTANCE.
typedef HINSTANCE DataHandle;
#elif defined(OS_LINUX)
- // Linux will use base::DataPack. TODO(evanm): finish this.
+ // Linux uses base::DataPack.
typedef base::DataPack* DataHandle;
#endif
@@ -128,8 +128,9 @@ class ResourceBundle {
// Free skia_images_.
void FreeImages();
- // Try to load the locale specific strings from an external data module.
- void LoadLocaleResources(const std::wstring& pref_locale);
+ // Try to load the main resources and the locale specific strings from an
+ // external data module.
+ void LoadResources(const std::wstring& pref_locale);
// Initialize all the ChromeFont members if they haven't yet been initialized.
void LoadFontsIfNecessary();
@@ -155,6 +156,7 @@ class ResourceBundle {
Lock lock_;
// Handles for data sources.
+ DataHandle resources_data_;
DataHandle locale_resources_data_;
DataHandle theme_data_;