summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_theme_provider.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-15 22:17:48 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-15 22:17:48 +0000
commit9b5b20a5040735ae626c8915a2d3f48868982e2f (patch)
treef6b19d46af150454c1129c444930ab3a19fd416c /chrome/browser/gtk/gtk_theme_provider.h
parent2eb9f48c38411fdb72f268c3b4864acb3683fa20 (diff)
downloadchromium_src-9b5b20a5040735ae626c8915a2d3f48868982e2f.zip
chromium_src-9b5b20a5040735ae626c8915a2d3f48868982e2f.tar.gz
chromium_src-9b5b20a5040735ae626c8915a2d3f48868982e2f.tar.bz2
GTK: Theme the NTP with GTK+ colors.
BUG=29948 TEST=none Review URL: http://codereview.chromium.org/551051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_theme_provider.h')
-rw-r--r--chrome/browser/gtk/gtk_theme_provider.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h
index 87e3fe2..b8a2379 100644
--- a/chrome/browser/gtk/gtk_theme_provider.h
+++ b/chrome/browser/gtk/gtk_theme_provider.h
@@ -100,6 +100,9 @@ class GtkThemeProvider : public BrowserThemeProvider,
typedef std::map<int, color_utils::HSL> TintMap;
typedef std::map<int, SkBitmap*> ImageCache;
+ // Clears all the GTK color overrides.
+ virtual void ClearAllThemeData();
+
// Load theme data from preferences, possibly picking colors from GTK.
virtual void LoadThemePrefs();
@@ -122,10 +125,10 @@ class GtkThemeProvider : public BrowserThemeProvider,
void LoadDefaultValues();
// Sets the underlying theme colors/tints from a GTK color.
- void SetThemeColorFromGtk(int id, GdkColor* color);
- void SetThemeTintFromGtk(int id, GdkColor* color);
+ void SetThemeColorFromGtk(int id, const GdkColor* color);
+ void SetThemeTintFromGtk(int id, const GdkColor* color);
void BuildTintedFrameColor(int color_id, int tint_id);
- void SetTintToExactColor(int id, GdkColor* color);
+ void SetTintToExactColor(int id, const GdkColor* color);
// Split out from FreePlatformCaches so it can be called in our destructor;
// FreePlatformCaches() is called from the BrowserThemeProvider's destructor,
@@ -155,6 +158,7 @@ class GtkThemeProvider : public BrowserThemeProvider,
// their colors).
GtkWidget* fake_window_;
OwnedWidgetGtk fake_label_;
+ OwnedWidgetGtk fake_entry_;
// A list of all GtkChromeButton instances. We hold on to these to notify
// them of theme changes.