| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 // If we have a linux_ui object, set the caret blink interval regardless of | 103 // If we have a linux_ui object, set the caret blink interval regardless of |
| 104 // whether we're in native theme mode. | 104 // whether we're in native theme mode. |
| 105 prefs->caret_blink_interval = linux_ui->GetCursorBlinkInterval(); | 105 prefs->caret_blink_interval = linux_ui->GetCursorBlinkInterval(); |
| 106 } | 106 } |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN) | 109 #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN) |
| 110 CR_DEFINE_STATIC_LOCAL(const gfx::FontRenderParams, params, | 110 CR_DEFINE_STATIC_LOCAL(const gfx::FontRenderParams, params, |
| 111 (gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(true), NULL))); | 111 (gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), NULL))); |
| 112 prefs->should_antialias_text = params.antialiasing; | 112 prefs->should_antialias_text = params.antialiasing; |
| 113 prefs->use_subpixel_positioning = params.subpixel_positioning; | 113 prefs->use_subpixel_positioning = params.subpixel_positioning; |
| 114 prefs->hinting = params.hinting; | 114 prefs->hinting = params.hinting; |
| 115 prefs->use_autohinter = params.autohinter; | 115 prefs->use_autohinter = params.autohinter; |
| 116 prefs->use_bitmaps = params.use_bitmaps; | 116 prefs->use_bitmaps = params.use_bitmaps; |
| 117 prefs->subpixel_rendering = params.subpixel_rendering; | 117 prefs->subpixel_rendering = params.subpixel_rendering; |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 #if !defined(OS_MACOSX) | 120 #if !defined(OS_MACOSX) |
| 121 prefs->plugin_fullscreen_allowed = | 121 prefs->plugin_fullscreen_allowed = |
| (...skipping 20 matching lines...) Expand all Loading... |
| 142 prefs->status_font_height = gfx::PlatformFontWin::GetFontSize( | 142 prefs->status_font_height = gfx::PlatformFontWin::GetFontSize( |
| 143 metrics.lfStatusFont); | 143 metrics.lfStatusFont); |
| 144 | 144 |
| 145 prefs->message_font_family_name = metrics.lfMessageFont.lfFaceName; | 145 prefs->message_font_family_name = metrics.lfMessageFont.lfFaceName; |
| 146 prefs->message_font_height = gfx::PlatformFontWin::GetFontSize( | 146 prefs->message_font_height = gfx::PlatformFontWin::GetFontSize( |
| 147 metrics.lfMessageFont); | 147 metrics.lfMessageFont); |
| 148 #endif | 148 #endif |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace renderer_preferences_util | 151 } // namespace renderer_preferences_util |
| OLD | NEW |