Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2064)

Unified Diff: chrome/browser/cocoa/menu_tracked_button.mm

Issue 3183013: [Mac] Don't close the Wrench menu after using the zoom buttons if the menu was opened sticky. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: nits Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/menu_tracked_button.h ('k') | chrome/browser/cocoa/wrench_menu_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/menu_tracked_button.mm
diff --git a/chrome/browser/cocoa/menu_tracked_button.mm b/chrome/browser/cocoa/menu_tracked_button.mm
index 654e850243b4d0ac0e91cde08518e6eb66a84fa8..196cb3064d38a99ee80844e343ceb2bf2d1b0abe 100644
--- a/chrome/browser/cocoa/menu_tracked_button.mm
+++ b/chrome/browser/cocoa/menu_tracked_button.mm
@@ -6,6 +6,8 @@
@implementation MenuTrackedButton
+@synthesize tracking = tracking_;
+
- (void)mouseEntered:(NSEvent*)theEvent {
didEnter_ = YES;
[super mouseEntered:theEvent];
@@ -27,6 +29,7 @@
return [super mouseUp:theEvent];
}
[self performClick:self];
+ tracking_ = NO;
}
@end
« no previous file with comments | « chrome/browser/cocoa/menu_tracked_button.h ('k') | chrome/browser/cocoa/wrench_menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698