summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 16:34:34 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 16:34:34 +0000
commit51c490b5cb0ff02f391e514cfa2ba892e08a2edc (patch)
treea576c2399f37016a495997786fd6d9244912944d /chrome/browser/profile.h
parentcf76214c53788effec9c2e9cf14dbfc91887921e (diff)
downloadchromium_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/profile.h')
-rw-r--r--chrome/browser/profile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index fb72da5..656af37 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -200,6 +200,10 @@ class Profile {
// Clear the theme and reset it to default.
virtual void ClearTheme() = 0;
+ // Gets the theme that was last set. Returns NULL if the theme is no longer
+ // installed, if there is no installed theme, or the theme was cleared.
+ virtual Extension* GetTheme() = 0;
+
// Returns or creates the ThemeProvider associated with this profile
virtual ThemeProvider* GetThemeProvider() = 0;
@@ -352,6 +356,7 @@ class ProfileImpl : public Profile,
virtual void SetTheme(Extension* extension);
virtual void SetNativeTheme();
virtual void ClearTheme();
+ virtual Extension* GetTheme();
virtual ThemeProvider* GetThemeProvider();
virtual ThumbnailStore* GetThumbnailStore();
virtual bool HasCreatedDownloadManager() const;