summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.h
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 04:25:13 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 04:25:13 +0000
commitc01ce96d0dddd41e76fcc8323ed43016315ed080 (patch)
tree65d15894f2dd2a3f6bba35f054d050d95ceae143 /chrome/browser/browser_theme_provider.h
parent3d4ae9a42320916079372a65c0ee527a150ec134 (diff)
downloadchromium_src-c01ce96d0dddd41e76fcc8323ed43016315ed080.zip
chromium_src-c01ce96d0dddd41e76fcc8323ed43016315ed080.tar.gz
chromium_src-c01ce96d0dddd41e76fcc8323ed43016315ed080.tar.bz2
Fix a bunch of bugs related to NNTP theming.
Basically: - Add NNTP Theming BrowserThemeProvider: - Add NNTP logo inversion capability - Only allow a set of images to be themed. - Tint incognito windows correctly. (Sorry for the feature-mush) BUG=17379,14578,17593 TEST=Make sure the NNTP is themed correctly. Review URL: http://codereview.chromium.org/159305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index 3e42036..63eca78 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -57,6 +57,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// Strings used by themes to identify miscellaneous numerical properties.
static const char* kDisplayPropertyNTPAlignment;
static const char* kDisplayPropertyNTPTiling;
+ static const char* kDisplayPropertyNTPInverseLogo;
// Strings used in alignment properties.
static const char* kAlignmentTop;
@@ -123,7 +124,8 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
TINT_FRAME_INCOGNITO_INACTIVE,
TINT_BACKGROUND_TAB,
NTP_BACKGROUND_ALIGNMENT,
- NTP_BACKGROUND_TILING
+ NTP_BACKGROUND_TILING,
+ NTP_LOGO_ALTERNATE
};
// A bitfield mask for alignments.
@@ -197,6 +199,10 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// will be stored in our cache.
void GenerateFrameImages();
+ // Generate any tab images that weren't specified. The resulting images
+ // will be stored in our cache.
+ void GenerateTabImages();
+
// Clears all the override fields and saves the dictionary.
void ClearAllThemeData();