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

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

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 | « chrome/browser/themes/theme_service.h ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 34a36e55faa321660173638f1607ed93a5c83b78..210e663dda8e89d8325c8f2c7a9b53f120657f57 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -220,6 +220,20 @@ void ThemeService::Init(Profile* profile) {
LoadThemePrefs();
}
+const gfx::Image* ThemeService::GetImageNamed(int id) const {
+ DCHECK(CalledOnValidThread());
+
+ const gfx::Image* image = NULL;
+
+ if (theme_pack_.get())
+ image = theme_pack_->GetImageNamed(id);
+
+ if (!image)
+ image = &rb_.GetNativeImageNamed(id);
+
+ return image;
+}
+
SkBitmap* ThemeService::GetBitmapNamed(int id) const {
DCHECK(CalledOnValidThread());
« no previous file with comments | « chrome/browser/themes/theme_service.h ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698