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

Side by Side Diff: chrome/browser/renderer_preferences_util.cc

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 unified diff | Download patch
« no previous file with comments | « chrome/browser/gtk/gtk_theme_provider.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_preferences_util.h" 5 #include "chrome/browser/renderer_preferences_util.h"
6 6
7 #include "chrome/browser/profile.h" 7 #include "chrome/browser/profile.h"
8 8
9 #if defined(OS_LINUX) 9 #if defined(OS_LINUX)
10 #include "chrome/browser/gtk/gtk_theme_provider.h" 10 #include "chrome/browser/gtk/gtk_theme_provider.h"
11 #include "chrome/common/gtk_util.h" 11 #include "chrome/common/gtk_util.h"
12 #endif 12 #endif
13 13
14 namespace renderer_preferences_util { 14 namespace renderer_preferences_util {
15 15
16 void UpdateFromSystemSettings(RendererPreferences* prefs, Profile* profile) { 16 void UpdateFromSystemSettings(RendererPreferences* prefs, Profile* profile) {
17 #if defined(OS_LINUX) 17 #if defined(OS_LINUX)
18 gtk_util::UpdateGtkFontSettings(prefs); 18 gtk_util::UpdateGtkFontSettings(prefs);
19 19
20 #if !defined(TOOLKIT_VIEWS) 20 #if !defined(TOOLKIT_VIEWS)
21 GtkThemeProvider* provider = GtkThemeProvider::GetFrom(profile); 21 GtkThemeProvider* provider = GtkThemeProvider::GetFrom(profile);
22 22
23 prefs->focus_ring_color = provider->get_focus_ring_color(); 23 prefs->focus_ring_color = provider->get_focus_ring_color();
24 prefs->thumb_active_color = provider->get_thumb_active_color(); 24 prefs->thumb_active_color = provider->get_thumb_active_color();
25 prefs->thumb_inactive_color = provider->get_thumb_inactive_color(); 25 prefs->thumb_inactive_color = provider->get_thumb_inactive_color();
26 prefs->track_color = provider->get_track_color(); 26 prefs->track_color = provider->get_track_color();
27 prefs->active_selection_bg_color = provider->get_active_selection_bg_color();
28 prefs->active_selection_fg_color = provider->get_active_selection_fg_color();
29 prefs->inactive_selection_bg_color =
30 provider->get_inactive_selection_bg_color();
31 prefs->inactive_selection_fg_color =
32 provider->get_inactive_selection_fg_color();
27 #endif // !defined(TOOLKIT_VIEWS) 33 #endif // !defined(TOOLKIT_VIEWS)
28 #endif // defined(OS_LINUX) 34 #endif // defined(OS_LINUX)
29 } 35 }
30 36
31 } // renderer_preferences_util 37 } // renderer_preferences_util
OLDNEW
« no previous file with comments | « chrome/browser/gtk/gtk_theme_provider.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698