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

Unified Diff: ui/gfx/text_utils.h

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch 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/text_utils.h
diff --git a/ui/gfx/text_utils.h b/ui/gfx/text_utils.h
index bd94902fba6ba549b9701cc00251a6a9808df788..abc70750616bade4e078fd7d1e396323f2386871 100644
--- a/ui/gfx/text_utils.h
+++ b/ui/gfx/text_utils.h
@@ -24,8 +24,8 @@ UI_EXPORT base::string16 RemoveAcceleratorChar(const base::string16& s,
// Returns the number of horizontal pixels needed to display the specified
// |text| with |font_list|.
-UI_EXPORT int GetStringWidth(const base::string16& text,
- const FontList& font_list);
+UI_EXPORT float GetStringWidth(const base::string16& text,
+ const FontList& font_list);
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698