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

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

Issue 554004: GTK: Use GTK+ theme selection colors and plumb them into webkit. (Closed)
Patch Set: Move layout tests to correct paths Created 10 years, 11 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/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 b8a2379fac9c420be9cae0c77e6c8358effe7db1..1bdd12176b8de7ca54febf2879fd4dfadb2839d8 100644
--- a/chrome/browser/gtk/gtk_theme_provider.h
+++ b/chrome/browser/gtk/gtk_theme_provider.h
@@ -89,6 +89,18 @@ class GtkThemeProvider : public BrowserThemeProvider,
return thumb_inactive_color_;
}
const SkColor& get_track_color() const { return track_color_; }
+ const SkColor& get_active_selection_bg_color() const {
+ return active_selection_bg_color_;
+ }
+ const SkColor& get_active_selection_fg_color() const {
+ return active_selection_fg_color_;
+ }
+ const SkColor& get_inactive_selection_bg_color() const {
+ return inactive_selection_bg_color_;
+ }
+ const SkColor& get_inactive_selection_fg_color() const {
+ return inactive_selection_fg_color_;
+ }
// These functions do not add a ref to the returned pixbuf, and it should not
// be unreffed. If |native| is true, get the GTK_STOCK version of the icon.
@@ -175,6 +187,10 @@ class GtkThemeProvider : public BrowserThemeProvider,
SkColor thumb_active_color_;
SkColor thumb_inactive_color_;
SkColor track_color_;
+ SkColor active_selection_bg_color_;
+ SkColor active_selection_fg_color_;
+ SkColor inactive_selection_bg_color_;
+ SkColor inactive_selection_fg_color_;
// Image cache of lazily created images, created when requested by
// GetBitmapNamed().
« no previous file with comments | « no previous file | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698