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

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

Issue 8432011: Move RendererPreferences to content/public/common and also put in the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "content/public/common/renderer_preferences.h"
10 11
11 #if defined(TOOLKIT_USES_GTK) 12 #if defined(TOOLKIT_USES_GTK)
12 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 13 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
13 #include "chrome/browser/ui/gtk/gtk_util.h" 14 #include "chrome/browser/ui/gtk/gtk_util.h"
14 #endif 15 #endif
15 16
16 namespace renderer_preferences_util { 17 namespace renderer_preferences_util {
17 18
18 void UpdateFromSystemSettings(RendererPreferences* prefs, Profile* profile) { 19 void UpdateFromSystemSettings(
20 content::RendererPreferences* prefs, Profile* profile) {
19 #if defined(TOOLKIT_USES_GTK) 21 #if defined(TOOLKIT_USES_GTK)
20 gtk_util::UpdateGtkFontSettings(prefs); 22 gtk_util::UpdateGtkFontSettings(prefs);
21 23
22 #if !defined(OS_CHROMEOS) 24 #if !defined(OS_CHROMEOS)
23 GtkThemeService* theme_service = GtkThemeService::GetFrom(profile); 25 GtkThemeService* theme_service = GtkThemeService::GetFrom(profile);
24 26
25 prefs->focus_ring_color = theme_service->get_focus_ring_color(); 27 prefs->focus_ring_color = theme_service->get_focus_ring_color();
26 prefs->thumb_active_color = theme_service->get_thumb_active_color(); 28 prefs->thumb_active_color = theme_service->get_thumb_active_color();
27 prefs->thumb_inactive_color = theme_service->get_thumb_inactive_color(); 29 prefs->thumb_inactive_color = theme_service->get_thumb_inactive_color();
28 prefs->track_color = theme_service->get_track_color(); 30 prefs->track_color = theme_service->get_track_color();
(...skipping 13 matching lines...) Expand all
42 prefs->inactive_selection_fg_color = SK_ColorBLACK; 44 prefs->inactive_selection_fg_color = SK_ColorBLACK;
43 #endif // defined(OS_CHROMEOS) 45 #endif // defined(OS_CHROMEOS)
44 46
45 #endif // defined(TOOLKIT_USES_GTK) 47 #endif // defined(TOOLKIT_USES_GTK)
46 48
47 prefs->enable_referrers = 49 prefs->enable_referrers =
48 profile->GetPrefs()->GetBoolean(prefs::kEnableReferrers); 50 profile->GetPrefs()->GetBoolean(prefs::kEnableReferrers);
49 } 51 }
50 52
51 } // renderer_preferences_util 53 } // renderer_preferences_util
OLDNEW
« no previous file with comments | « chrome/browser/renderer_preferences_util.h ('k') | chrome/browser/tab_contents/background_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698