Home | History | Annotate | Download | only in gfx

Lines Matching refs:domain

41 // If possible, only the username is elided. Otherwise, the domain is elided
44 // width, the elided domain will occupy that extra width.
51 // Split the email into its local-part (username) and domain-part. The email
53 // but not in the domain part, so splitting at the last @ symbol is safe.
57 base::string16 domain = email.substr(split_index + 1);
59 DCHECK(!domain.empty());
65 // Check whether eliding the domain is necessary: if eliding the username
66 // is sufficient, the domain will not be elided.
73 if (GetStringWidthF(domain, font_list) > available_domain_width) {
74 // Elide the domain so that it only takes half of the available width.
76 // domain will occupy the leftover width.
84 domain = ElideText(domain, font_list, desired_domain_width, ELIDE_MIDDLE);
85 // Failing to elide the domain such that at least one character remains
87 if (domain.length() <= 1U)
94 available_pixel_width -= GetStringWidthF(domain, font_list);
96 return username + kAtSignUTF16 + domain;