Home
last modified time | relevance | path

Searched refs:GetStringWidthF (Results 1 – 11 of 11) sorted by relevance

/external/chromium_org/chrome/browser/ui/
Delide_url.cc19 using gfx::GetStringWidthF;
65 if (available_pixel_width >= GetStringWidthF(elided_path, font_list)) in ElideComponentizedPath()
131 const float pixel_width_url_string = GetStringWidthF(url_string, font_list); in ElideUrl()
144 if (available_pixel_width >= GetStringWidthF(url_minus_query, font_list)) in ElideUrl()
172 const float pixel_width_url_host = GetStringWidthF(url_host, font_list); in ElideUrl()
173 const float pixel_width_url_path = GetStringWidthF(url_path_query_etc, in ElideUrl()
180 const float pixel_width_url_domain = GetStringWidthF(url_domain, font_list); in ElideUrl()
182 GetStringWidthF(url_subdomain, font_list); in ElideUrl()
190 const float kPixelWidthDotsTrailer = GetStringWidthF( in ElideUrl()
196 pixel_width_url_path - GetStringWidthF(url_query, font_list))) { in ElideUrl()
[all …]
/external/chromium_org/chrome/browser/ui/tests/
Delide_url_unittest.cc15 using gfx::GetStringWidthF;
32 GetStringWidthF(UTF8ToUTF16(testcases[i].output), font_list); in RunUrlTest()
74 float available_width = GetStringWidthF( in TEST()
82 ASSERT_GT(GetStringWidthF(UTF8ToUTF16(kEllipsisStr + "/" + kEllipsisStr), in TEST()
84 GetStringWidthF(UTF8ToUTF16("d" + kEllipsisStr), font_list)); in TEST()
187 GetStringWidthF(UTF8ToUTF16(testcases[i].output), gfx::FontList()); in TEST()
/external/chromium_org/ui/gfx/
Dtext_elider_unittest.cc110 GetStringWidthF(expected_output, font_list), in TEST()
200 GetStringWidthF(UTF8ToUTF16(testcases[i].output), font_list))); in TEST()
212 const float kTestWidth = GetStringWidthF(ASCIIToUTF16("Test"), font_list); in TEST()
241 const float kTestWidth = GetStringWidthF(ASCIIToUTF16("Test"), font_list); in TEST()
244 GetStringWidthF(UTF8ToUTF16(kEllipsis), font_list); in TEST()
273 const float kTestWidth = GetStringWidthF(ASCIIToUTF16("Test"), font_list); in TEST()
276 GetStringWidthF(UTF8ToUTF16(kEllipsis), font_list); in TEST()
278 GetStringWidthF(UTF8ToUTF16(kEllipsisStr + "23"), font_list); in TEST()
326 const float kTestStringWidth = GetStringWidthF(kTestString, font_list); in TEST()
382 float ellipsis_width = GetStringWidthF(kEllipsisStr, font_list); in TEST()
[all …]
Dtext_elider.cc48 if (GetStringWidthF(email, font_list) <= available_pixel_width) in ElideEmail()
63 available_pixel_width -= GetStringWidthF(kAtSignUTF16, font_list); in ElideEmail()
67 const float full_username_width = GetStringWidthF(username, font_list); in ElideEmail()
71 GetStringWidthF(username.substr(0, 1) + kEllipsisUTF16, in ElideEmail()
73 if (GetStringWidthF(domain, font_list) > available_domain_width) { in ElideEmail()
94 available_pixel_width -= GetStringWidthF(domain, font_list); in ElideEmail()
169 const float full_width = GetStringWidthF(filename_utf16, font_list); in ElideFilename()
179 const float ext_width = GetStringWidthF(extension, font_list); in ElideFilename()
180 const float root_width = GetStringWidthF(rootname, font_list); in ElideFilename()
221 GetStringWidthF(text, font_list) <= available_pixel_width) { in ElideText()
[all …]
Dtext_utils_skia.cc15 float GetStringWidthF(const base::string16& text, const FontList& font_list) { in GetStringWidthF() function
16 return Canvas::GetStringWidthF(text, font_list); in GetStringWidthF()
Dtext_utils_ios.mm18 return std::ceil(GetStringWidthF(text, font_list));
21 float GetStringWidthF(const base::string16& text, const FontList& font_list) {
Dtext_utils_android.cc16 float GetStringWidthF(const base::string16& text, const FontList& font_list) { in GetStringWidthF() function
Dtext_utils.h31 GFX_EXPORT float GetStringWidthF(const base::string16& text,
Drender_text.cc1339 available_width -= GetStringWidthF(kAtSignUTF16, font_list()); in ElideEmail()
1343 const float full_username_width = GetStringWidthF(username, font_list()); in ElideEmail()
1346 GetStringWidthF(username.substr(0, 1) + kEllipsisUTF16, font_list())); in ElideEmail()
1347 if (GetStringWidthF(domain, font_list()) > available_domain_width) { in ElideEmail()
1368 available_width -= GetStringWidthF(domain, font_list()); in ElideEmail()
Dcanvas.h148 static float GetStringWidthF(const base::string16& text,
Dcanvas.cc110 float Canvas::GetStringWidthF(const base::string16& text, in GetStringWidthF() function in gfx::Canvas