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

Unified Diff: chrome/browser/browser_theme_provider.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 | « no previous file | chrome/browser/browser_theme_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_theme_provider.h
===================================================================
--- chrome/browser/browser_theme_provider.h (revision 22263)
+++ chrome/browser/browser_theme_provider.h (working copy)
@@ -96,6 +96,8 @@
static const skia::HSL kDefaultTintFrameIncognitoInactive;
static const skia::HSL kDefaultTintBackgroundTab;
+ static const char* kDefaultThemeID;
+
public:
BrowserThemeProvider();
virtual ~BrowserThemeProvider();
@@ -170,6 +172,10 @@
// 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 @@
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.
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698