summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/about_window_controller.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 21:42:46 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 21:42:46 +0000
commitcd1b1db449f9bd1ea6d75bf38562e3a2e72106d9 (patch)
tree09591b0d16869ccccc5e2122aec6db2a07bb115b /chrome/browser/cocoa/about_window_controller.h
parent3dc5eac55b0c9d69a3491296c34270d819506e2d (diff)
downloadchromium_src-cd1b1db449f9bd1ea6d75bf38562e3a2e72106d9.zip
chromium_src-cd1b1db449f9bd1ea6d75bf38562e3a2e72106d9.tar.gz
chromium_src-cd1b1db449f9bd1ea6d75bf38562e3a2e72106d9.tar.bz2
Make links in the cocoa about dialog clickable. (Try #2).
Once again, we're changing the implementation from an NSTextField to an NSTextView. The text is no longer editable, the margins have been fixed to not be standard cocoa margins and the font is explicitly set to Lucida Grande. After talking with jrg, I think the text should be selectable. BUG=20493 BUG=20855 Review URL: http://codereview.chromium.org/216028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/about_window_controller.h')
-rw-r--r--chrome/browser/cocoa/about_window_controller.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/about_window_controller.h b/chrome/browser/cocoa/about_window_controller.h
index f9c7528..63ed4f1 100644
--- a/chrome/browser/cocoa/about_window_controller.h
+++ b/chrome/browser/cocoa/about_window_controller.h
@@ -11,6 +11,9 @@
@class BackgroundTileView;
+// Returns an NSAttributedString that contains the locale specific legal text.
+NSAttributedString* BuildAboutWindowLegalTextBlock();
+
// A window controller that handles the branded (Chrome.app) about
// window. The branded about window has a few features beyond the
// standard Cocoa about panel. For example, opening the about window
@@ -21,7 +24,8 @@
IBOutlet NSTextField* version_;
IBOutlet BackgroundTileView* backgroundView_;
IBOutlet NSImageView* logoView_;
- IBOutlet NSTextField* legalBlock_;
+ IBOutlet NSView* legalBlock_;
+ IBOutlet NSTextView* legalText_;
IBOutlet NSView* updateBlock_; // Holds everything related to updates
IBOutlet NSProgressIndicator* spinner_;
IBOutlet NSImageView* updateStatusIndicator_;
@@ -41,6 +45,7 @@
@interface AboutWindowController (JustForTesting)
+- (NSTextView*)legalText;
- (NSButton*)updateButton;
- (NSTextField*)updateText;
@end