Chromium Code Reviews| Index: chrome/browser/ui/cocoa/menu_button.mm |
| diff --git a/chrome/browser/ui/cocoa/menu_button.mm b/chrome/browser/ui/cocoa/menu_button.mm |
| index 07111ab8ad57f589bc7ade98bce9d152cd3c4c99..b5d2e9587c6b16094d8e9f8b572a3980dca24af2 100644 |
| --- a/chrome/browser/ui/cocoa/menu_button.mm |
| +++ b/chrome/browser/ui/cocoa/menu_button.mm |
| @@ -7,6 +7,7 @@ |
| #include "base/logging.h" |
| #include "base/memory/scoped_nsobject.h" |
| #import "chrome/browser/ui/cocoa/clickhold_button_cell.h" |
| +#import "chrome/browser/ui/cocoa/nsview_additions.h" |
| @interface MenuButton (Private) |
| - (void)showMenu:(BOOL)isDragging; |
| @@ -137,6 +138,11 @@ |
| inView:self]; |
| [popUpCell_ performClickWithFrame:frame |
| inView:self]; |
| + |
| + if (![self cr_isMouseInView]) { |
|
Nico
2011/05/14 21:49:08
Add a comment that says why this is necessary (wha
sail
2011/05/15 20:19:57
Done.
|
| + if ([[self cell] respondsToSelector:@selector(mouseExited:)]) |
| + [[self cell] mouseExited:nil]; |
| + } |
| } |
| // Called when the button is clicked and released. (Shouldn't happen with |