| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 @class NSColor; | 7 @class NSColor; |
| 8 | 8 |
| 9 // HyperlinkTextView is an NSTextView subclass for unselectable, linkable text. | 9 // HyperlinkTextView is an NSTextView subclass for unselectable, linkable text. |
| 10 // This subclass doesn't show the text caret or IBeamCursor, whereas the base | 10 // This subclass doesn't show the text caret or IBeamCursor, whereas the base |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // Marks a |range| within the given message as link, associating it with | 33 // Marks a |range| within the given message as link, associating it with |
| 34 // a |name| that is passed to the delegate's textView:clickedOnLink:atIndex:. | 34 // a |name| that is passed to the delegate's textView:clickedOnLink:atIndex:. |
| 35 - (void)addLinkRange:(NSRange)range | 35 - (void)addLinkRange:(NSRange)range |
| 36 withName:(id)name | 36 withName:(id)name |
| 37 linkColor:(NSColor*)linkColor; | 37 linkColor:(NSColor*)linkColor; |
| 38 | 38 |
| 39 // This is YES (by default) if the view accepts first responder status. | 39 // This is YES (by default) if the view accepts first responder status. |
| 40 - (void)setAcceptsFirstResponder:(BOOL)acceptsFirstResponder; | 40 - (void)setAcceptsFirstResponder:(BOOL)acceptsFirstResponder; |
| 41 | 41 |
| 42 // Sets size of the text view to fit all text, keeping a fixed |width|. |
| 43 - (void)setFrameSizeForWidth:(CGFloat)width; |
| 44 |
| 42 @end | 45 @end |
| OLD | NEW |