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

Unified Diff: ui/base/theme_provider.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 | « ui/base/resource/resource_bundle.cc ('k') | ui/views/widget/default_theme_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/theme_provider.h
diff --git a/ui/base/theme_provider.h b/ui/base/theme_provider.h
index 82037d7026d11aef2acb150801a752f9f2c12389..4aec13de05facc69c625ac59f8ad92bb06a823ff 100644
--- a/ui/base/theme_provider.h
+++ b/ui/base/theme_provider.h
@@ -31,6 +31,10 @@ namespace base {
class RefCountedMemory;
}
+namespace gfx {
+class ImageSkia;
+}
+
namespace ui {
////////////////////////////////////////////////////////////////////////////////
@@ -48,8 +52,14 @@ class UI_EXPORT ThemeProvider {
// Get the bitmap specified by |id|. An implementation of ThemeProvider should
// have its own source of ids (e.g. an enum, or external resource bundle).
+ // TODO(pkotwicz): Get rid of GetBitmapNamed once all code uses
+ // GetImageSkiaNamed.
virtual SkBitmap* GetBitmapNamed(int id) const = 0;
+ // Get the image specified by |id|. An implementation of ThemeProvider should
+ // have its own source of ids (e.g. an enum, or external resource bundle).
+ virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const = 0;
+
// Get the color specified by |id|.
virtual SkColor GetColor(int id) const = 0;
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/views/widget/default_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698