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

Side by Side Diff: chrome/browser/ui/cocoa/hyperlink_text_view.h

Issue 7610011: Update Sad Tab help text and link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use views::GridLayout, address Cocoa comments. Created 9 years, 3 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
(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 // HyperlinkTextView is an NSTextView subclass for unselectable, linkable 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 HyperlinkTextView : NSTextView
11 // Initialize the NSTextView properties for this subclass.
12 - (void)configureTextView;
13
14 // Change the current IBeamCursor to an arrowCursor.
15 - (void)fixupCursor;
16
17 // Convenience function that sets the |HyperlinkTextView| contents to the
18 // specified |message| with a hypertext style |link| inserted at |linkOffset|.
19 // Uses the supplied |font|, |messageColor|, and |linkColor|.
20 - (void)setMessageAndLink:(NSString*)message
21 withLink:(NSString*)link
22 atOffset:(NSUInteger)linkOffset
23 font:(NSFont*)font
24 messageColor:(NSColor*)messageColor
25 linkColor:(NSColor*)linkColor;
26 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698