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

Unified Diff: chrome/browser/ui/cocoa/static_text_view.h

Issue 7610011: Update Sad Tab help text and link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix message centering. Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/static_text_view.h
diff --git a/chrome/browser/ui/cocoa/static_text_view.h b/chrome/browser/ui/cocoa/static_text_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..f157c91778cb100f913ed4d104733fe058cafbfb
--- /dev/null
+++ b/chrome/browser/ui/cocoa/static_text_view.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+// StaticTextView is an NSTextView subclass for unselectable, linkable UI text.
+// This subclass doesn't show the text caret or IBeamCursor, whereas the base
+// class NSTextView displays both with full keyboard accessibility enabled.
+@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.
+// Change the current IBeamCursor to an arrowCursor.
+- (void)fixupCursor;
+
+// Convenience function that sets the |StaticTextView| contents to the specified
+// |message| with a hypertext style |link| inserted at |linkOffset|. Uses the
+// supplied |font|, |messageColor|, and |linkColor|.
+- (void)setMessageAndLink:(NSString*)message
+ withLink:(NSString*)link
+ atOffset:(NSUInteger)linkOffset
+ font:(NSFont*)font
+ messageColor:(NSColor*)messageColor
+ linkColor:(NSColor*)linkColor;
+@end

Powered by Google App Engine
This is Rietveld 408576698