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

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

Issue 341045: Fix up extension badge text drawing.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « app/resource_bundle.cc ('k') | chrome/browser/views/first_run_bubble.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) 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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "app/gfx/canvas_paint.h" 10 #include "app/gfx/canvas_paint.h"
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 // static 1032 // static
1033 void TabRendererGtk::InitResources() { 1033 void TabRendererGtk::InitResources() {
1034 if (initialized_) 1034 if (initialized_)
1035 return; 1035 return;
1036 1036
1037 LoadTabImages(); 1037 LoadTabImages();
1038 1038
1039 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 1039 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
1040 // Force the font size to 9pt, which matches Windows' default font size 1040 // Force the font size to 9pt, which matches Windows' default font size
1041 // (taken from the system). 1041 // (taken from the system).
1042 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont); 1042 const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont);
1043 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 9)); 1043 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 9));
1044 title_font_height_ = title_font_->height(); 1044 title_font_height_ = title_font_->height();
1045 1045
1046 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); 1046 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON);
1047 1047
1048 initialized_ = true; 1048 initialized_ = true;
1049 } 1049 }
OLDNEW
« no previous file with comments | « app/resource_bundle.cc ('k') | chrome/browser/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698