| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |