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

Unified Diff: ui/gfx/font.h

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win bots 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
Index: ui/gfx/font.h
diff --git a/ui/gfx/font.h b/ui/gfx/font.h
index 5187ec44a3b90f7a509cb6010332a286d5df7200..8a7adfa66a60bf1329ea315ccc681c3572f85f09 100644
--- a/ui/gfx/font.h
+++ b/ui/gfx/font.h
@@ -70,16 +70,16 @@ class GFX_EXPORT Font {
int GetBaseline() const;
// Returns the average character width for the font.
- int GetAverageCharacterWidth() const;
+ float GetAverageCharacterWidth() const;
// Returns the number of horizontal pixels needed to display the specified
msw 2013/10/01 02:42:48 nit: s/number of pixels/pixel width/; ditto below.
jianli 2013/10/01 18:56:50 Done.
// string.
- int GetStringWidth(const base::string16& text) const;
+ float GetStringWidth(const base::string16& text) const;
// Returns the expected number of horizontal pixels needed to display the
// specified length of characters. Call GetStringWidth() to retrieve the
// actual number.
- int GetExpectedTextWidth(int length) const;
+ float GetExpectedTextWidth(int length) const;
// Returns the style of the font.
int GetStyle() const;

Powered by Google App Engine
This is Rietveld 408576698