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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.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
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/ui/cocoa/download/download_item_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index 96f125d6fe8797a276e4e296a53eda2a03861d46..c8471d283c24d2faca35f0a51827ef4d16c82bd1 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -149,16 +149,12 @@ void AutofillPopupControllerImpl::Show(
// Each field receives space in proportion to its length.
int name_size = available_width * name_width / total_text_length;
- names_[i] = gfx::ElideText(names_[i],
- GetNameFontListForRow(i),
- name_size,
- gfx::ELIDE_AT_END);
+ names_[i] = gfx::ElideText(names_[i], GetNameFontListForRow(i),
+ name_size, gfx::ELIDE_TAIL);
int subtext_size = available_width * subtext_width / total_text_length;
- subtexts_[i] = gfx::ElideText(subtexts_[i],
- subtext_font_list(),
- subtext_size,
- gfx::ELIDE_AT_END);
+ subtexts_[i] = gfx::ElideText(subtexts_[i], subtext_font_list(),
+ subtext_size, gfx::ELIDE_TAIL);
}
#endif
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/ui/cocoa/download/download_item_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698