|
Change signature of |ui::ElideText()|. Add a truncate mode.
The new truncate mode is needed by my upcoming changes to
rewrite CanvasSkia::DrawText().
Part of the change is changing the binary search code to a
more traditional form that also makes the truncate mode
work correctly. This is covered by the new unit tests.
BUG= 105550
TEST=New and existing tests in text_elider_unittest.cc.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114063
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+89 lines, -45 lines) |
Patch |
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/download/download_item_cell.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac_unittest.mm
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/avatar_menu_item_gtk.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/content_setting_bubble_gtk.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/toolbar/back_forward_menu_model.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
printing/print_settings_initializer.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/aura_shell/shell_tooltip_manager.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/base/text/text_elider.h
|
View
|
|
1 chunk |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/base/text/text_elider.cc
|
View
|
|
12 chunks |
+25 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/base/text/text_elider_unittest.cc
|
View
|
|
4 chunks |
+29 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/label.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/tooltip_manager.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|