Searched refs:GetStringWidthF (Results 1 – 11 of 11) sorted by relevance
/external/chromium_org/chrome/browser/ui/ |
D | elide_url.cc | 19 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/ |
D | elide_url_unittest.cc | 15 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/ |
D | text_elider_unittest.cc | 110 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 …]
|
D | text_elider.cc | 48 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 …]
|
D | text_utils_skia.cc | 15 float GetStringWidthF(const base::string16& text, const FontList& font_list) { in GetStringWidthF() function 16 return Canvas::GetStringWidthF(text, font_list); in GetStringWidthF()
|
D | text_utils_ios.mm | 18 return std::ceil(GetStringWidthF(text, font_list)); 21 float GetStringWidthF(const base::string16& text, const FontList& font_list) {
|
D | text_utils_android.cc | 16 float GetStringWidthF(const base::string16& text, const FontList& font_list) { in GetStringWidthF() function
|
D | text_utils.h | 31 GFX_EXPORT float GetStringWidthF(const base::string16& text,
|
D | render_text.cc | 1339 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()
|
D | canvas.h | 148 static float GetStringWidthF(const base::string16& text,
|
D | canvas.cc | 110 float Canvas::GetStringWidthF(const base::string16& text, in GetStringWidthF() function in gfx::Canvas
|