| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/bookmark_button_cell.h" | 5 #import "chrome/browser/cocoa/bookmark_button_cell.h" |
| 6 | 6 |
| 7 @implementation BookmarkButtonCell | 7 @implementation BookmarkButtonCell |
| 8 | 8 |
| 9 - (id)initTextCell:(NSString *)string { |
| 10 if ((self = [super initTextCell:string])) { |
| 11 [self setBordered:NO]; |
| 12 } |
| 13 return self; |
| 14 } |
| 15 |
| 9 - (NSSize)cellSizeForBounds:(NSRect)aRect { | 16 - (NSSize)cellSizeForBounds:(NSRect)aRect { |
| 10 NSSize size = [super cellSizeForBounds:aRect]; | 17 NSSize size = [super cellSizeForBounds:aRect]; |
| 11 size.width += 2; | 18 size.width += 2; |
| 12 size.height += 4; | 19 size.height += 4; |
| 13 return size; | 20 return size; |
| 14 } | 21 } |
| 15 | 22 |
| 16 @end | 23 @end |
| OLD | NEW |