Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3818)

Unified Diff: chrome/browser/ui/views/profiles/new_avatar_button.cc

Issue 312233003: Add fade eliding for Views Labels; related cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refine alignment check; minor additional cleanup. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/profiles/new_avatar_button.cc
diff --git a/chrome/browser/ui/views/profiles/new_avatar_button.cc b/chrome/browser/ui/views/profiles/new_avatar_button.cc
index e2dc56a1f73a5c6c68775c10669c8afbf9c7b09a..cd056578565a259cfa6975e3d3d3849dd20d31bd 100644
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
@@ -47,13 +47,10 @@ scoped_ptr<views::Border> CreateBorder(const int normal_image_set[],
base::string16 GetElidedText(const base::string16& original_text) {
// Maximum characters the button can be before the text will get elided.
const int kMaxCharactersToDisplay = 15;
-
const gfx::FontList font_list;
- return gfx::ElideText(
- original_text,
- font_list,
- font_list.GetExpectedTextWidth(kMaxCharactersToDisplay),
- gfx::ELIDE_AT_END);
+ return gfx::ElideText(original_text, font_list,
+ font_list.GetExpectedTextWidth(kMaxCharactersToDisplay),
+ gfx::ELIDE_TAIL);
}
base::string16 GetButtonText(Profile* profile) {
« no previous file with comments | « chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698