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

Unified Diff: app/resource_bundle.h

Issue 442002: Share code between Mac and Linux in ResourceBundle. (Closed)
Patch Set: sync Created 11 years, 1 month 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 | « app/app.gyp ('k') | app/resource_bundle_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/resource_bundle.h
diff --git a/app/resource_bundle.h b/app/resource_bundle.h
index 5c3afb2c46c41953e9031f9ce755fa2b59c2f159..550fb725640775422210e505b85f305ac6bc1274 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
« no previous file with comments | « app/app.gyp ('k') | app/resource_bundle_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698