From d6b671d0968013c3205c50ebaf45f356e34a58c5 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Thu, 21 Oct 2010 22:02:55 +0000 Subject: Convert gfx::ElideText from using wstrings to string16. BUG=23581 Review URL: http://codereview.chromium.org/3885003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63433 0039d316-1c4b-4281-b951-d872f2087c98 --- app/text_elider.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/text_elider.h') diff --git a/app/text_elider.h b/app/text_elider.h index 6e86b05..8a5653d 100644 --- a/app/text_elider.h +++ b/app/text_elider.h @@ -40,10 +40,10 @@ std::wstring ElideUrl(const GURL& url, // Elides |text| to fit in |available_pixel_width|. If |elide_in_middle| is // set the ellipsis is placed in the middle of the string; otherwise it is // placed at the end. -std::wstring ElideText(const std::wstring& text, - const gfx::Font& font, - int available_pixel_width, - bool elide_in_middle); +string16 ElideText(const string16& text, + const gfx::Font& font, + int available_pixel_width, + bool elide_in_middle); // Elide a filename to fit a given pixel width, with an emphasis on not hiding // the extension unless we have to. If filename contains a path, the path will -- cgit v1.1