Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6505)

Unified Diff: chrome/browser/profile.h

Issue 159705: Implement kCurrentThemeID so we can know what the last theme to be installed ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile.h
===================================================================
--- chrome/browser/profile.h (revision 22263)
+++ chrome/browser/profile.h (working copy)
@@ -200,6 +200,10 @@
// 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 @@
virtual void SetTheme(Extension* extension);
virtual void SetNativeTheme();
virtual void ClearTheme();
+ virtual Extension* GetTheme();
virtual ThemeProvider* GetThemeProvider();
virtual ThumbnailStore* GetThumbnailStore();
virtual bool HasCreatedDownloadManager() const;
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698