Index: chrome/browser/ui/cocoa/new_tab_button.mm |
diff --git a/chrome/browser/ui/cocoa/new_tab_button.mm b/chrome/browser/ui/cocoa/new_tab_button.mm |
index ad719b803fb763a9211fbd210b79b5f4c8d41238..5bc5acbbf772374ec65cddad270e668d68f7fa98 100644 |
--- a/chrome/browser/ui/cocoa/new_tab_button.mm |
+++ b/chrome/browser/ui/cocoa/new_tab_button.mm |
@@ -5,10 +5,26 @@ |
#import "chrome/browser/ui/cocoa/new_tab_button.h" |
#import "chrome/browser/ui/cocoa/image_button_cell.h" |
+// A simple override of the ImageButtonCell to disable handling of mouseEntered |
Nico
2011/11/18 06:33:27
Comments are sentences and should end with ".". Pu
adinardi
2011/11/18 22:56:16
Done.
|
+@interface NewTabButtonCell : ImageButtonCell |
+ |
+- (void)mouseEntered:(NSEvent*)theEvent; |
+ |
+@end |
+ |
+@implementation NewTabButtonCell |
+ |
+- (void)mouseEntered:(NSEvent*)theEvent { |
+ // Ignore this since the NTB enter is handled by the TabStripController |
+} |
+ |
+@end |
+ |
+ |
@implementation NewTabButton |
+ (Class)cellClass { |
- return [ImageButtonCell class]; |
+ return [NewTabButtonCell class]; |
} |
// Approximate the shape. It doesn't need to be perfect. This will need to be |