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

Unified Diff: printing/print_settings_initializer.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 | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | ui/aura_shell/shell_tooltip_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings_initializer.cc
===================================================================
--- printing/print_settings_initializer.cc (revision 114022)
+++ printing/print_settings_initializer.cc (working copy)
@@ -47,7 +47,7 @@
double segment_width = GetHeaderFooterSegmentWidth(ConvertUnitDouble(
print_settings->page_setup_device_units().physical_size().width(),
print_settings->device_units_per_inch(), kPixelsPerInch));
- date = ui::ElideText(date, font, segment_width, false);
+ date = ui::ElideText(date, font, segment_width, ui::ELIDE_AT_END);
print_settings->date = date;
// Calculate the available title width. If the date string is not long
@@ -57,7 +57,8 @@
double max_title_width = std::min(2 * segment_width,
2 * (segment_width - date_width) +
segment_width);
- print_settings->title = ui::ElideText(title, font, max_title_width, false);
+ print_settings->title =
+ ui::ElideText(title, font, max_title_width, ui::ELIDE_AT_END);
double max_url_width = 2 * segment_width;
GURL gurl(url);
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | ui/aura_shell/shell_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698