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

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

Issue 1063603003: Remove obsolete for_web_contents parameter in FontRenderParamsQuery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete for_web_contents parameter in FontRenderParamsQuery. Created 5 years, 8 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 | « ash/display/display_manager_unittest.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('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) 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
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
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
OLDNEW
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698