summaryrefslogtreecommitdiffstats
path: root/chrome/browser/themes
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 21:52:41 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 21:52:41 +0000
commit986afae849b2403e0b3b159e9bc567aec6624aaa (patch)
tree070e57a071378a1cb69f4cfb16fe5edb227fcd7b /chrome/browser/themes
parent6ae69dae5c5866f2387cbc7421f99741e18a92aa (diff)
downloadchromium_src-986afae849b2403e0b3b159e9bc567aec6624aaa.zip
chromium_src-986afae849b2403e0b3b159e9bc567aec6624aaa.tar.gz
chromium_src-986afae849b2403e0b3b159e9bc567aec6624aaa.tar.bz2
Revert 112839 (it probably caused http://crbug.com/106299 ) - GTK: Port omnibox drawing from GdkGC interface to cairo.
GdkGC is deprecated and will be removed in gtk3 and cairo should be faster anyway. This uses the new CairoCachedSurface in gfx::Image. BUG=79722 TEST=none Review URL: http://codereview.chromium.org/8781001 TBR=erg@chromium.org Review URL: http://codereview.chromium.org/8789016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/themes')
-rw-r--r--chrome/browser/themes/theme_service.cc14
-rw-r--r--chrome/browser/themes/theme_service.h11
2 files changed, 0 insertions, 25 deletions
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 210e663..34a36e5 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -220,20 +220,6 @@ 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());
diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h
index a6c01c4..2534f71 100644
--- a/chrome/browser/themes/theme_service.h
+++ b/chrome/browser/themes/theme_service.h
@@ -28,10 +28,6 @@ namespace color_utils {
struct HSL;
}
-namespace gfx {
-class Image;
-}
-
namespace ui {
class ResourceBundle;
}
@@ -144,13 +140,6 @@ 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;