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

Unified Diff: ui/base/resource/resource_bundle.h

Issue 10388064: Add GetImageSkiaNamed to resource_bundle and theme_provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 7 months 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 | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.h
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
index 41d263441dfb882963c94d3c48f088c06ac511e0..df25f31d31a36eb87a09f2122c92a23f79905ca7 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -154,6 +154,15 @@ class UI_EXPORT ResourceBundle {
// !! THIS IS DEPRECATED. PLEASE USE THE METHOD BELOW. !!
SkBitmap* GetBitmapNamed(int resource_id);
+ // Gets image with the specified resource_id from the current module data.
+ // Returns a pointer to a shared instance of gfx::ImageSkia. This shared
+ // instance is owned by the resource bundle and should not be freed.
+ // TODO(pkotwicz): Make method return const gfx::ImageSkia*
+ //
+ // NOTE: It is preferrable to use GetImageNamed such that code is more
+ // portable.
+ gfx::ImageSkia* GetImageSkiaNamed(int resource_id);
+
// Gets an image resource from the current module data. This will load the
// image in Skia format by default. The ResourceBundle owns this.
gfx::Image& GetImageNamed(int resource_id);
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698