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

Unified Diff: ui/gfx/font.cc

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes per feedback plus new tests Created 7 years, 3 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
« ui/gfx/font.h ('K') | « ui/gfx/font.h ('k') | ui/gfx/font_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font.cc
diff --git a/ui/gfx/font.cc b/ui/gfx/font.cc
index aa4638c7efc3dd2e24aebb86e6c5e72a3c408c97..5da4cb144a8b7284cabeea9e587e3d9fc9572233 100644
--- a/ui/gfx/font.cc
+++ b/ui/gfx/font.cc
@@ -54,15 +54,15 @@ int Font::GetBaseline() const {
return platform_font_->GetBaseline();
}
-int Font::GetAverageCharacterWidth() const {
+float Font::GetAverageCharacterWidth() const {
return platform_font_->GetAverageCharacterWidth();
}
-int Font::GetStringWidth(const base::string16& text) const {
+float Font::GetStringWidth(const base::string16& text) const {
return platform_font_->GetStringWidth(text);
}
-int Font::GetExpectedTextWidth(int length) const {
+float Font::GetExpectedTextWidth(int length) const {
return platform_font_->GetExpectedTextWidth(length);
}
« ui/gfx/font.h ('K') | « ui/gfx/font.h ('k') | ui/gfx/font_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698