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

Unified Diff: app/resource_bundle.cc

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/resource_bundle.h ('k') | app/win_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/resource_bundle.cc
===================================================================
--- app/resource_bundle.cc (revision 16106)
+++ app/resource_bundle.cc (working copy)
@@ -159,24 +159,24 @@
void ResourceBundle::LoadFontsIfNecessary() {
AutoLock lock_scope(lock_);
if (!base_font_.get()) {
- base_font_.reset(new ChromeFont());
+ base_font_.reset(new gfx::Font());
- small_font_.reset(new ChromeFont());
+ small_font_.reset(new gfx::Font());
*small_font_ = base_font_->DeriveFont(-2);
- medium_font_.reset(new ChromeFont());
+ medium_font_.reset(new gfx::Font());
*medium_font_ = base_font_->DeriveFont(3);
- medium_bold_font_.reset(new ChromeFont());
+ medium_bold_font_.reset(new gfx::Font());
*medium_bold_font_ =
- base_font_->DeriveFont(3, base_font_->style() | ChromeFont::BOLD);
+ base_font_->DeriveFont(3, base_font_->style() | gfx::Font::BOLD);
- large_font_.reset(new ChromeFont());
+ large_font_.reset(new gfx::Font());
*large_font_ = base_font_->DeriveFont(8);
}
}
-ChromeFont ResourceBundle::GetFont(FontStyle style) {
+gfx::Font ResourceBundle::GetFont(FontStyle style) {
LoadFontsIfNecessary();
switch(style) {
case SmallFont:
« no previous file with comments | « app/resource_bundle.h ('k') | app/win_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698