| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/tabs/tab_renderer_gtk.h" | 5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" |
| 6 | 6 |
| 7 #include "app/gfx/canvas_paint.h" | 7 #include "app/gfx/canvas_paint.h" |
| 8 #include "app/gfx/favicon_size.h" | 8 #include "app/gfx/favicon_size.h" |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 } | 810 } |
| 811 | 811 |
| 812 // static | 812 // static |
| 813 void TabRendererGtk::InitResources() { | 813 void TabRendererGtk::InitResources() { |
| 814 if (initialized_) | 814 if (initialized_) |
| 815 return; | 815 return; |
| 816 | 816 |
| 817 LoadTabImages(); | 817 LoadTabImages(); |
| 818 | 818 |
| 819 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 819 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 820 // Force the font size to 10pt. | 820 // Force the font size to 8pt. |
| 821 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont); | 821 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont); |
| 822 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 10)); | 822 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 8)); |
| 823 title_font_height_ = title_font_->height(); | 823 title_font_height_ = title_font_->height(); |
| 824 | 824 |
| 825 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); | 825 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); |
| 826 | 826 |
| 827 initialized_ = true; | 827 initialized_ = true; |
| 828 } | 828 } |
| OLD | NEW |