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

Side by Side Diff: chrome/browser/gtk/tabs/tab_renderer_gtk.cc

Issue 113546: Force the font size in the omnibox, tabs, find bar, and download shelf (Closed)
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 unified diff | Download patch
« no previous file with comments | « chrome/browser/gtk/link_button_gtk.h ('k') | chrome/common/gtk_util.h » ('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) 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/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/browser_theme_provider.h" 10 #include "chrome/browser/browser_theme_provider.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 } 582 }
583 583
584 // static 584 // static
585 void TabRendererGtk::InitResources() { 585 void TabRendererGtk::InitResources() {
586 if (initialized_) 586 if (initialized_)
587 return; 587 return;
588 588
589 LoadTabImages(); 589 LoadTabImages();
590 590
591 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 591 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
592 title_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); 592 // Force the font size to 10pt.
593 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont);
594 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 10));
593 title_font_height_ = title_font_->height(); 595 title_font_height_ = title_font_->height();
594 596
595 InitializeLoadingAnimationData(&rb, &loading_animation_data); 597 InitializeLoadingAnimationData(&rb, &loading_animation_data);
596 598
597 initialized_ = true; 599 initialized_ = true;
598 } 600 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/link_button_gtk.h ('k') | chrome/common/gtk_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698