Chromium Code Reviews| Index: chrome/browser/ui/cocoa/tabs/tab_controller.mm |
| =================================================================== |
| --- chrome/browser/ui/cocoa/tabs/tab_controller.mm (revision 79877) |
| +++ chrome/browser/ui/cocoa/tabs/tab_controller.mm (working copy) |
| @@ -22,6 +22,7 @@ |
| @synthesize mini = mini_; |
| @synthesize pinned = pinned_; |
| @synthesize target = target_; |
| +@synthesize url = url_; |
| @synthesize iconView = iconView_; |
| @synthesize titleView = titleView_; |
| @synthesize closeButton = closeButton_; |
| @@ -308,8 +309,8 @@ |
| DCHECK([[titleView_ cell] isKindOfClass: |
| [GTMFadeTruncatingTextFieldCell class]]); |
| GTMFadeTruncatingTextFieldCell* cell = [titleView_ cell]; |
| - [cell setDesiredCharactersToTruncateFromHead:length]; |
| - [cell setTruncateMode:length > 0 ? GTMFadeTruncatingHeadAndTail : |
| + [cell setDesiredCharactersToTruncateFromHead:length - 4]; |
|
Peter Kasting
2011/04/01 17:28:31
Nit: Use constants for these and put the constants
MAD
2011/04/01 19:47:37
Done.
|
| + [cell setTruncateMode:length > 7 ? GTMFadeTruncatingHeadAndTail : |
| GTMFadeTruncatingTail]; |
| } |