| Index: chrome/browser/cocoa/tab_controller.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/tab_controller.mm (revision 57038)
|
| +++ chrome/browser/cocoa/tab_controller.mm (working copy)
|
| @@ -144,6 +144,11 @@
|
| }
|
| }
|
|
|
| +- (BOOL)hovered {
|
| + TabView* tabView = static_cast<TabView*>([self view]);
|
| + return [tabView isMouseIn];
|
| +}
|
| +
|
| - (void)setTitle:(NSString*)title {
|
| [[self view] setToolTip:title];
|
| if ([self mini] && ![self selected]) {
|
| @@ -222,7 +227,7 @@
|
| // Returns YES if we should be showing the close button. The selected tab
|
| // always shows the close button.
|
| - (BOOL)shouldShowCloseButton {
|
| - if ([self mini])
|
| + if ([self mini] || (![self selected] && [self hovered]))
|
| return NO;
|
| return ([self selected] || [self iconCapacity] >= 3);
|
| }
|
|
|