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

Unified Diff: ui/views/controls/label.cc

Issue 8917011: Change signature of |ui::ElideText()|. Add a truncate mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « ui/base/text/text_elider_unittest.cc ('k') | ui/views/widget/tooltip_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
===================================================================
--- ui/views/controls/label.cc (revision 114022)
+++ ui/views/controls/label.cc (working copy)
@@ -485,8 +485,8 @@
*paint_text = base::i18n::GetDisplayStringInLTRDirectionality(
*paint_text);
} else if (elide_in_middle_) {
- *paint_text = ui::ElideText(text_,
- font_, GetAvailableRect().width(), true);
+ *paint_text = ui::ElideText(text_, font_, GetAvailableRect().width(),
+ ui::ELIDE_IN_MIDDLE);
} else {
*paint_text = text_;
}
« no previous file with comments | « ui/base/text/text_elider_unittest.cc ('k') | ui/views/widget/tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698