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 "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 #include "content/public/common/renderer_preferences.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 cursor_blink_time.InMilliseconds() / kGtkCursorBlinkCycleFactor : | 98 cursor_blink_time.InMilliseconds() / kGtkCursorBlinkCycleFactor : |
99 0; | 99 0; |
100 #elif defined(USE_ASH) | 100 #elif defined(USE_ASH) |
101 // This color is 0x544d90fe modulated with 0xffffff. | 101 // This color is 0x544d90fe modulated with 0xffffff. |
102 prefs->active_selection_bg_color = SkColorSetRGB(0xCB, 0xE4, 0xFA); | 102 prefs->active_selection_bg_color = SkColorSetRGB(0xCB, 0xE4, 0xFA); |
103 prefs->active_selection_fg_color = SK_ColorBLACK; | 103 prefs->active_selection_fg_color = SK_ColorBLACK; |
104 prefs->inactive_selection_bg_color = SkColorSetRGB(0xEA, 0xEA, 0xEA); | 104 prefs->inactive_selection_bg_color = SkColorSetRGB(0xEA, 0xEA, 0xEA); |
105 prefs->inactive_selection_fg_color = SK_ColorBLACK; | 105 prefs->inactive_selection_fg_color = SK_ColorBLACK; |
106 #endif | 106 #endif |
107 | 107 |
108 #if defined(OS_LINUX) | 108 #if defined(OS_LINUX) || defined(OS_ANDROID) |
109 const gfx::FontRenderParams& params = gfx::GetDefaultFontRenderParams(); | 109 const gfx::FontRenderParams& params = gfx::GetDefaultFontRenderParams(); |
110 prefs->should_antialias_text = params.antialiasing; | 110 prefs->should_antialias_text = params.antialiasing; |
111 prefs->use_subpixel_positioning = params.subpixel_positioning; | 111 prefs->use_subpixel_positioning = params.subpixel_positioning; |
112 prefs->hinting = GetRendererPreferencesHintingEnum(params.hinting); | 112 prefs->hinting = GetRendererPreferencesHintingEnum(params.hinting); |
| 113 prefs->autohinter = params.autohinter; |
| 114 prefs->use_bitmaps = params.use_bitmaps; |
113 prefs->subpixel_rendering = | 115 prefs->subpixel_rendering = |
114 GetRendererPreferencesSubpixelRenderingEnum(params.subpixel_rendering); | 116 GetRendererPreferencesSubpixelRenderingEnum(params.subpixel_rendering); |
115 #endif | 117 #endif |
116 } | 118 } |
117 | 119 |
118 } // renderer_preferences_util | 120 } // renderer_preferences_util |
OLD | NEW |