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

Unified Diff: chrome/browser/gtk/gtk_theme_provider.h

Issue 155108: GTK Themes: Set the text color of bookmark buttons to theme color. (Closed)
Patch Set: Simplify. 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/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_theme_provider.h
diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h
index 88f0fed590469f94caf4f06f907997c2f704255e..408ba0c5052aff30773faef967e007fb987a0119 100644
--- a/chrome/browser/gtk/gtk_theme_provider.h
+++ b/chrome/browser/gtk/gtk_theme_provider.h
@@ -58,4 +58,20 @@ class GtkThemeProvider : public BrowserThemeProvider {
GtkWidget* fake_window_;
};
+// A Helper struct used throughout the GTK themeing code. It retrieves settings
+// from the Profile once at creation time, instead of at every access time. A
+// large motivation for making this struct is so that we only have to pass one
+// parameter around when configuring things due to a theme event. This way, we
+// can use a lot of GTK convenience features likt gtk_container_foreach().
+struct GtkThemeProperties {
+ GtkThemeProperties(Profile* profile);
+
+ // A wrapper around ThemeProvider::GetColor, transforming the result to a
+ // GdkColor.
+ GdkColor GetGdkColor(int id);
+
+ bool use_gtk_rendering;
+ ThemeProvider* provider;
+};
+
#endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698