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

Unified Diff: ui/gfx/platform_font_pango.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 trybots Created 7 years, 2 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/platform_font_pango.h
diff --git a/ui/gfx/platform_font_pango.h b/ui/gfx/platform_font_pango.h
index 136bf671d4d533cd439bf6cf3a534a3053762994..f63bc277416e53cbd39ea8021a10ddef6c879a15 100644
--- a/ui/gfx/platform_font_pango.h
+++ b/ui/gfx/platform_font_pango.h
@@ -52,6 +52,7 @@ class GFX_EXPORT PlatformFontPango : public PlatformFont {
virtual int GetCapHeight() const OVERRIDE;
virtual int GetAverageCharacterWidth() const OVERRIDE;
virtual int GetStringWidth(const base::string16& text) const OVERRIDE;
+ virtual float GetStringWidthF(const base::string16& text) const OVERRIDE;
virtual int GetExpectedTextWidth(int length) const OVERRIDE;
virtual int GetStyle() const OVERRIDE;
virtual std::string GetFontName() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698