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

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

Issue 6283005: [Mac] Move all the related files for the Wrench menu into a subdir of c/b/u/c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/ui/cocoa/menu_tracked_button.h" 5 #import "chrome/browser/ui/cocoa/wrench_menu/menu_tracked_button.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 @interface MenuTrackedButton (Private) 9 @interface MenuTrackedButton (Private)
10 - (void)doHighlight:(BOOL)highlight; 10 - (void)doHighlight:(BOOL)highlight;
11 - (void)checkMouseInRect; 11 - (void)checkMouseInRect;
12 - (NSRect)insetBounds; 12 - (NSRect)insetBounds;
13 - (BOOL)shouldHighlightOnHover; 13 - (BOOL)shouldHighlightOnHover;
14 @end 14 @end
15 15
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #ifndef NSAppKitVersionNumber10_5 109 #ifndef NSAppKitVersionNumber10_5
110 #define NSAppKitVersionNumber10_5 949 110 #define NSAppKitVersionNumber10_5 949
111 #endif 111 #endif
112 112
113 // There's a cell drawing bug in 10.5 that was fixed on 10.6. Hover states 113 // There's a cell drawing bug in 10.5 that was fixed on 10.6. Hover states
114 // look terrible due to this, so disable highlighting on 10.5. 114 // look terrible due to this, so disable highlighting on 10.5.
115 return std::floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5; 115 return std::floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5;
116 } 116 }
117 117
118 @end 118 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698