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

Side by Side Diff: chrome/browser/cocoa/menu_tracked_button.mm

Issue 3177001: Merge 54804 - [Mac] Enable click-drag-release behavior in the Wrench menu's c... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/cocoa/menu_tracked_button.h" 5 #import "chrome/browser/cocoa/menu_tracked_button.h"
6 6
7 @implementation MenuTrackedButton 7 @implementation MenuTrackedButton
8 8
9 - (void)mouseEntered:(NSEvent*)theEvent { 9 - (void)mouseEntered:(NSEvent*)theEvent {
10 didEnter_ = YES; 10 didEnter_ = YES;
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 - (void)mouseUp:(NSEvent*)theEvent { 25 - (void)mouseUp:(NSEvent*)theEvent {
26 if (!tracking_) { 26 if (!tracking_) {
27 return [super mouseUp:theEvent]; 27 return [super mouseUp:theEvent];
28 } 28 }
29 [self performClick:self]; 29 [self performClick:self];
30 } 30 }
31 31
32 @end 32 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/menu_tracked_button.h ('k') | chrome/browser/cocoa/menu_tracked_button_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698