| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/hyperlink_button_cell.h" | 5 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 6 | 6 |
| 7 @interface HyperlinkButtonCell () | 7 @interface HyperlinkButtonCell () |
| 8 - (void)customizeButtonCell; | 8 - (void)customizeButtonCell; |
| 9 @end | 9 @end |
| 10 | 10 |
| 11 @implementation HyperlinkButtonCell | 11 @implementation HyperlinkButtonCell |
| 12 | 12 |
| 13 @dynamic textColor; | 13 @dynamic textColor; |
| 14 @synthesize underlineOnHover = underlineOnHover_; | 14 @synthesize underlineOnHover = underlineOnHover_; |
| 15 @synthesize shouldUnderline = shouldUnderline_; | 15 @synthesize shouldUnderline = shouldUnderline_; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 143 } |
| 144 | 144 |
| 145 // Override so that |-sizeToFit| works better with this type of cell. | 145 // Override so that |-sizeToFit| works better with this type of cell. |
| 146 - (NSSize)cellSize { | 146 - (NSSize)cellSize { |
| 147 NSSize size = [super cellSize]; | 147 NSSize size = [super cellSize]; |
| 148 size.width += 2; | 148 size.width += 2; |
| 149 return size; | 149 return size; |
| 150 } | 150 } |
| 151 | 151 |
| 152 @end | 152 @end |
| OLD | NEW |