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

Unified Diff: chrome/browser/views/about_chrome_view.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
Index: chrome/browser/views/about_chrome_view.cc
===================================================================
--- chrome/browser/views/about_chrome_view.cc (revision 16106)
+++ chrome/browser/views/about_chrome_view.cc (working copy)
@@ -226,7 +226,7 @@
// Create a label and add the full text so we can query it for the height.
views::Label dummy_text(full_text);
dummy_text.SetMultiLine(true);
- ChromeFont font =
+ gfx::Font font =
ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
// Add up the height of the various elements on the page.
@@ -360,8 +360,8 @@
canvas->TileImageInt(*kBackgroundBmp, 0, 0,
dialog_dimensions_.width(), kBackgroundBmp->height());
- ChromeFont font =
- ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
+ gfx::Font font =
+ ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
const gfx::Rect label_bounds = main_text_label_->bounds();
@@ -430,7 +430,7 @@
gfx::Rect* rect,
gfx::Size* position,
const gfx::Rect& bounds,
- const ChromeFont& font) {
+ const gfx::Font& font) {
DCHECK(canvas && position);
// What we get passed in as |text| is potentially a mix of LTR and RTL "runs"
@@ -483,7 +483,7 @@
const std::wstring& text,
gfx::Size* position,
const gfx::Rect& bounds,
- const ChromeFont& font,
+ const gfx::Font& font,
bool ltr_within_rtl) {
// Iterate through line breaking opportunities (which in English would be
// spaces and such. This tells us where to wrap.
« no previous file with comments | « chrome/browser/views/about_chrome_view.h ('k') | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698