diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 20:53:50 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 20:53:50 +0000 |
commit | 7895ea23e75075fd6f9fe5a6c3dfb17d3456b208 (patch) | |
tree | d9f36ade5222fbdab94c0b40f66b456f9eba308e /views | |
parent | 77be37906a16c98612360a2e35c257aa5484cf2d (diff) | |
download | chromium_src-7895ea23e75075fd6f9fe5a6c3dfb17d3456b208.zip chromium_src-7895ea23e75075fd6f9fe5a6c3dfb17d3456b208.tar.gz chromium_src-7895ea23e75075fd6f9fe5a6c3dfb17d3456b208.tar.bz2 |
Allow themes to change the background of the new tab page. Adds support for display properties to themes (stored internally as ints/enums, but parsed from text).
BUG=12768
TEST=Install a theme with an new tab page background and verify that the background appears on the new tab page.
Review URL: http://codereview.chromium.org/115910
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/default_theme_provider.cc | 4 | ||||
-rw-r--r-- | views/widget/default_theme_provider.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/views/widget/default_theme_provider.cc b/views/widget/default_theme_provider.cc index d5b8e3d..b9b0ddf 100644 --- a/views/widget/default_theme_provider.cc +++ b/views/widget/default_theme_provider.cc @@ -21,6 +21,9 @@ SkColor DefaultThemeProvider::GetColor(int id) { return 0xff0000ff; } +bool DefaultThemeProvider::GetDisplayProperty(int id, int* result) { + return false; +} bool DefaultThemeProvider::ShouldUseNativeFrame() { #if defined(OS_WIN) return win_util::ShouldUseVistaFrame(); @@ -28,5 +31,4 @@ bool DefaultThemeProvider::ShouldUseNativeFrame() { return false; #endif } - } // namespace views diff --git a/views/widget/default_theme_provider.h b/views/widget/default_theme_provider.h index 879034f..f576bc6 100644 --- a/views/widget/default_theme_provider.h +++ b/views/widget/default_theme_provider.h @@ -20,6 +20,7 @@ class DefaultThemeProvider : public ThemeProvider { // Overridden from ThemeProvider. virtual SkBitmap* GetBitmapNamed(int id); virtual SkColor GetColor(int id); + virtual bool GetDisplayProperty(int id, int* result); virtual bool ShouldUseNativeFrame(); private: |