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

Side by Side Diff: ui/base/cocoa/controls/hyperlink_button_cell.mm

Issue 18355002: Move HyperlinkButtonCell to /ui/base/cocoa/controls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: helpful comment Created 7 years, 5 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) 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
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
OLDNEW
« no previous file with comments | « ui/base/cocoa/controls/hyperlink_button_cell.h ('k') | ui/base/cocoa/controls/hyperlink_button_cell_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698