Home | History | Annotate | Download | only in gfx

Lines Matching full:username

1322   // If possible, only the username is elided. Otherwise, the domain is elided
1323 // in the middle, splitting available width equally with the elided username.
1324 // If the username is short enough that it doesn't need half the available
1327 // Split the email into its local-part (username) and domain-part. The email
1328 // spec allows for @ symbols in the username under some special requirements,
1332 base::string16 username = email.substr(0, split_index);
1334 DCHECK(!username.empty());
1341 // Check whether eliding the domain is necessary: if eliding the username
1343 const float full_username_width = GetStringWidthF(username, font_list());
1346 GetStringWidthF(username.substr(0, 1) + kEllipsisUTF16, font_list()));
1349 // Should the username not need all the width available in its half, the
1352 username elision allowed by the specifications will not fit; thus
1365 // Fit the username in the remaining width (at this point the elided username
1369 username = Elide(username, available_width, ELIDE_TAIL);
1370 return username + kAtSignUTF16 + domain;