diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 22:04:02 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 22:04:02 +0000 |
commit | f46251eeb2b498c749a8ec776f2a8e39409a321e (patch) | |
tree | d3203d530800ac6db6acaac22438ac35fc8d44df /app/resource_bundle.h | |
parent | 44ac8912f993424d041460d526ff131286e8c5ca (diff) | |
download | chromium_src-f46251eeb2b498c749a8ec776f2a8e39409a321e.zip chromium_src-f46251eeb2b498c749a8ec776f2a8e39409a321e.tar.gz chromium_src-f46251eeb2b498c749a8ec776f2a8e39409a321e.tar.bz2 |
Remove themes/default.dll and merge the resources into chrome.dll.
This gives us one less file to load on startup. This does mean
that some tests need to explicitly include theme_resources.rc.
BUG=24035
Review URL: http://codereview.chromium.org/348033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/resource_bundle.h')
-rw-r--r-- | app/resource_bundle.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/app/resource_bundle.h b/app/resource_bundle.h index a59cbfd..e4819c3 100644 --- a/app/resource_bundle.h +++ b/app/resource_bundle.h @@ -74,13 +74,9 @@ class ResourceBundle { // Return the global resource loader instance. static ResourceBundle& GetSharedInstance(); - // Load the data file that contains theme resources if present. - void LoadThemeResources(); - - // Gets the bitmap with the specified resource_id, first by looking into the - // theme data, then in the current module data if applicable. - // Returns a pointer to a shared instance of the SkBitmap. This shared bitmap - // is owned by the resource bundle and should not be freed. + // Gets the bitmap with the specified resource_id from the current module + // data. Returns a pointer to a shared instance of the SkBitmap. This shared + // bitmap is owned by the resource bundle and should not be freed. // // The bitmap is assumed to exist. This function will log in release, and // assert in debug mode if it does not. On failure, this will return a @@ -116,7 +112,7 @@ class ResourceBundle { const gfx::Font& GetFont(FontStyle style); #if defined(OS_WIN) - // Loads and returns an icon from the theme dll. + // Loads and returns an icon from the app module. HICON LoadThemeIcon(int icon_id); // Loads and returns a cursor from the app module. @@ -125,10 +121,9 @@ class ResourceBundle { // Wrapper for GetBitmapNamed. Converts the bitmap to an autoreleased NSImage. NSImage* GetNSImageNamed(int resource_id); #elif defined(USE_X11) - // Gets the GdkPixbuf with the specified resource_id, first by looking into - // the theme data, than in the current module data if applicable. Returns a - // pointer to a shared instance of the GdkPixbuf. This shared GdkPixbuf is - // owned by the resource bundle and should not be freed. + // Gets the GdkPixbuf with the specified resource_id from the main data pak + // file. Returns a pointer to a shared instance of the GdkPixbuf. This + // shared GdkPixbuf is owned by the resource bundle and should not be freed. // // The bitmap is assumed to exist. This function will log in release, and // assert in debug mode if it does not. On failure, this will return a @@ -203,7 +198,6 @@ class ResourceBundle { // Handles for data sources. DataHandle resources_data_; DataHandle locale_resources_data_; - DataHandle theme_data_; // Cached images. The ResourceBundle caches all retrieved bitmaps and keeps // ownership of the pointers. |