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

Unified Diff: chrome/browser/themes/theme_service.h

Issue 8781001: GTK: Port omnibox drawing from GdkGC interface to cairo. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added comment for thakis Created 9 years 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 | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.h
diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h
index 2534f71d680c2ada6f3b85fe0be11d9717d34bfe..a6c01c48455adee1fd34795ca65e0ceca4f7f304 100644
--- a/chrome/browser/themes/theme_service.h
+++ b/chrome/browser/themes/theme_service.h
@@ -28,6 +28,10 @@ namespace color_utils {
struct HSL;
}
+namespace gfx {
+class Image;
+}
+
namespace ui {
class ResourceBundle;
}
@@ -140,6 +144,13 @@ class ThemeService : public base::NonThreadSafe,
REPEAT = 3
} Tiling;
+ // Returns a cross platform image for an id.
+ //
+ // TODO(erg): Make this a virtual, exposed through ui::ThemeProvider and the
+ // main way to get theme properties out of the theme provider since it's
+ // cross platform.
+ const gfx::Image* GetImageNamed(int id) const;
+
// ui::ThemeProvider implementation.
virtual void Init(Profile* profile) OVERRIDE;
virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698