Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #import <Cocoa/Cocoa.h> | |
| 6 | |
| 7 // StaticTextView is an NSTextView subclass for unselectable, linkable UI text. | |
| 8 // This subclass doesn't show the text caret or IBeamCursor, whereas the base | |
| 9 // class NSTextView displays both with full keyboard accessibility enabled. | |
| 10 @interface StaticTextView : NSTextView | |
|
Nico
2011/08/31 22:35:19
I feel this should say "hyperlink" somewhere in th
msw
2011/09/01 03:30:49
Done.
| |
| 11 // Change the current IBeamCursor to an arrowCursor. | |
| 12 - (void)fixupCursor; | |
| 13 | |
| 14 // Convenience function that sets the |StaticTextView| contents to the specified | |
| 15 // |message| with a hypertext style |link| inserted at |linkOffset|. Uses the | |
| 16 // supplied |font|, |messageColor|, and |linkColor|. | |
| 17 - (void)setMessageAndLink:(NSString*)message | |
| 18 withLink:(NSString*)link | |
| 19 atOffset:(NSUInteger)linkOffset | |
| 20 font:(NSFont*)font | |
| 21 messageColor:(NSColor*)messageColor | |
| 22 linkColor:(NSColor*)linkColor; | |
| 23 @end | |
| OLD | NEW |