Chromium Code Reviews| Index: chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h |
| diff --git a/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h b/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h |
| index c97083cf305ac160dba5b9f88e9e5483ce503934..0bb5d0960aae96ee70721eb167735e6b69d4e5c4 100644 |
| --- a/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h |
| +++ b/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h |
| @@ -11,7 +11,7 @@ |
| #import <Cocoa/Cocoa.h> |
| -@class HyperlinkButtonCell; |
| +@class SadTabController; |
| // A view that displays the "sad tab" (aka crash page). |
| @interface SadTabView : BaseView { |
| @@ -19,17 +19,31 @@ |
| IBOutlet NSImageView* image_; |
| IBOutlet NSTextField* title_; |
| IBOutlet NSTextField* message_; |
| - IBOutlet NSButton* linkButton_; |
| - IBOutlet HyperlinkButtonCell* linkCell_; |
| + IBOutlet NSTextField* helpPlaceholder_; |
| scoped_nsobject<NSColor> backgroundColor_; |
| NSSize messageSize_; |
| + |
| + // Text fields don't work as well with embedded links as text views, but |
| + // text views cannot conveniently be created in IB. The xib file contains |
| + // a text field |helpPlaceholder_| that's replaced by this text view |help_| |
| + // in -awakeFromNib. |
| + scoped_nsobject<NSTextView> help_; |
| + |
| + // A weak reference to the parent controller. |
| + SadTabController* controller_; |
| } |
| // Designated initializer is -initWithFrame: . |
| -// Called by SadTabController to remove link button. |
| -- (void)removeLinkButton; |
| +// Called by SadTabController to provide a weak refernce to the view's parent. |
|
Avi (use Gerrit)
2011/08/12 01:07:48
drive-by: typo
msw
2011/08/30 04:09:06
Removed.
|
| +- (void)setController:(SadTabController*)controller; |
|
Nico
2011/08/12 02:29:56
You can make this an IBOutlet in interface builder
msw
2011/08/30 04:09:06
Done.
|
| + |
| +// Called by SadTabController to remove the help text and link. |
| +- (void)removeHelpText; |
| + |
| +// Sets |help_| based on |helpPlaceholder_|, sets |helpPlaceholder_| to nil. |
| +- (void)initializeHelpText; |
| @end |