OLD | NEW |
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 |
OLD | NEW |