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

Unified Diff: ui/gfx/text_utils_skia.cc

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync 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
« no previous file with comments | « ui/gfx/text_utils_ios.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/text_utils_skia.cc
diff --git a/ui/gfx/text_utils_skia.cc b/ui/gfx/text_utils_skia.cc
index 0de1156a14b3a5ac2fb1a58916134ecb593bf7fa..4ef0c234897953e04dcfcfa19169c241ca066fa2 100644
--- a/ui/gfx/text_utils_skia.cc
+++ b/ui/gfx/text_utils_skia.cc
@@ -12,4 +12,8 @@ int GetStringWidth(const base::string16& text, const FontList& font_list) {
return Canvas::GetStringWidth(text, font_list);
}
+float GetStringWidthF(const base::string16& text, const FontList& font_list) {
+ return Canvas::GetStringWidthF(text, font_list);
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/text_utils_ios.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698