summaryrefslogtreecommitdiffstats
path: root/chrome/common/renderer_preferences.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 20:11:39 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 20:11:39 +0000
commitefba8d707b56c019f6d1d13a22285d0a39850fa4 (patch)
tree217f2161c2b9d3674d445500f4171f9d4ffe6ccd /chrome/common/renderer_preferences.h
parent5cd4d0d559ea23eb56604bae8de670e2c663c1f7 (diff)
downloadchromium_src-efba8d707b56c019f6d1d13a22285d0a39850fa4.zip
chromium_src-efba8d707b56c019f6d1d13a22285d0a39850fa4.tar.gz
chromium_src-efba8d707b56c019f6d1d13a22285d0a39850fa4.tar.bz2
linux: theme scrollbars from GTK theme
Pick the color of the slider's thumbpart and rail from the GTK theme. We cannot match the exact visual appearance of the GTK theme, as rendering engines can make arbitrary changes to the actual visual appearance. But by sampling a representative set of pixels, we ensure that we will at least match the general color scheme. BUG=10949 patch by <markus [at] chromium> original review: http://codereview.chromium.org/400027/show Review URL: http://codereview.chromium.org/466080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34183 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/renderer_preferences.h')
-rw-r--r--chrome/common/renderer_preferences.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/renderer_preferences.h b/chrome/common/renderer_preferences.h
index b08548e..a982d57 100644
--- a/chrome/common/renderer_preferences.h
+++ b/chrome/common/renderer_preferences.h
@@ -51,6 +51,12 @@ struct RendererPreferences {
// The color of the focus ring. Currently only used on Linux.
SkColor focus_ring_color;
+ // The color of different parts of the scrollbar. Currently only used on
+ // Linux.
+ SkColor thumb_active_color;
+ SkColor thumb_inactive_color;
+ SkColor track_color;
+
// Browser wants a look at all top level requests
bool browser_handles_top_level_requests;
@@ -61,6 +67,9 @@ struct RendererPreferences {
subpixel_rendering(
RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT),
focus_ring_color(0),
+ thumb_active_color(0),
+ thumb_inactive_color(0),
+ track_color(0),
browser_handles_top_level_requests(false) {
}
};