diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 16:34:34 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 16:34:34 +0000 |
commit | 51c490b5cb0ff02f391e514cfa2ba892e08a2edc (patch) | |
tree | a576c2399f37016a495997786fd6d9244912944d /chrome/browser/browser_theme_provider.h | |
parent | cf76214c53788effec9c2e9cf14dbfc91887921e (diff) | |
download | chromium_src-51c490b5cb0ff02f391e514cfa2ba892e08a2edc.zip chromium_src-51c490b5cb0ff02f391e514cfa2ba892e08a2edc.tar.gz chromium_src-51c490b5cb0ff02f391e514cfa2ba892e08a2edc.tar.bz2 |
Implement kCurrentThemeID so we can know what the last theme to be installed was.
BUG=none
TEST=not visible in UI
Review URL: http://codereview.chromium.org/159705
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r-- | chrome/browser/browser_theme_provider.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h index 63eca78..d1cd510 100644 --- a/chrome/browser/browser_theme_provider.h +++ b/chrome/browser/browser_theme_provider.h @@ -96,6 +96,8 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, static const skia::HSL kDefaultTintFrameIncognitoInactive; static const skia::HSL kDefaultTintBackgroundTab; + static const char* kDefaultThemeID; + public: BrowserThemeProvider(); virtual ~BrowserThemeProvider(); @@ -170,6 +172,10 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, // theme is the default theme. virtual void SetNativeTheme() { UseDefaultTheme(); } + // Gets the id of the last installed theme. (The theme may have been further + // locally customized.) + std::string GetThemeID(); + // Convert a bitfield alignment into a string like "top left". Public so that // it can be used to generate CSS values. Takes a bitfield of AlignmentMasks. static std::string AlignmentToString(int alignment); @@ -272,6 +278,9 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, void SaveTintData(); void SaveDisplayPropertyData(); + // Save the id of the last theme installed. + void SaveThemeID(const std::string& id); + SkColor FindColor(const char* id, SkColor default_color); // Frees generated images and clears the image cache. |