summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 20:00:09 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 20:00:09 +0000
commitb5d079536bcbf33c657fd96079bb7b2bd9644c0e (patch)
treeb9f4a20f69bbd3252464cf96e13b21d3d5b5ca09 /views
parent89beb4c0dc72aeb590a8944bf2f24b95b9c90425 (diff)
downloadchromium_src-b5d079536bcbf33c657fd96079bb7b2bd9644c0e.zip
chromium_src-b5d079536bcbf33c657fd96079bb7b2bd9644c0e.tar.gz
chromium_src-b5d079536bcbf33c657fd96079bb7b2bd9644c0e.tar.bz2
Make the ThemeProvider methods const.
BUG=none TEST=none Review URL: http://codereview.chromium.org/266037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/default_theme_provider.cc4
-rw-r--r--views/widget/default_theme_provider.h12
2 files changed, 8 insertions, 8 deletions
diff --git a/views/widget/default_theme_provider.cc b/views/widget/default_theme_provider.cc
index 9dba2c6..e6087e2 100644
--- a/views/widget/default_theme_provider.cc
+++ b/views/widget/default_theme_provider.cc
@@ -12,11 +12,11 @@
namespace views {
-SkBitmap* DefaultThemeProvider::GetBitmapNamed(int id) {
+SkBitmap* DefaultThemeProvider::GetBitmapNamed(int id) const {
return ResourceBundle::GetSharedInstance().GetBitmapNamed(id);
}
-bool DefaultThemeProvider::ShouldUseNativeFrame() {
+bool DefaultThemeProvider::ShouldUseNativeFrame() const {
#if defined(OS_WIN)
return win_util::ShouldUseVistaFrame();
#else
diff --git a/views/widget/default_theme_provider.h b/views/widget/default_theme_provider.h
index b344def..512b512 100644
--- a/views/widget/default_theme_provider.h
+++ b/views/widget/default_theme_provider.h
@@ -22,15 +22,15 @@ class DefaultThemeProvider : public ThemeProvider {
// Overridden from ThemeProvider.
virtual void Init(Profile* profile) { }
- virtual SkBitmap* GetBitmapNamed(int id);
- virtual SkColor GetColor(int id) {
+ virtual SkBitmap* GetBitmapNamed(int id) const;
+ virtual SkColor GetColor(int id) const {
// Return debugging-blue.
return 0xff0000ff;
}
- virtual bool GetDisplayProperty(int id, int* result) { return false; }
- virtual bool ShouldUseNativeFrame();
- virtual bool HasCustomImage(int id) { return false; }
- virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) {
+ virtual bool GetDisplayProperty(int id, int* result) const { return false; }
+ virtual bool ShouldUseNativeFrame() const;
+ virtual bool HasCustomImage(int id) const { return false; }
+ virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) const {
return false;
}