| 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..4470c2f1f3431939cfa75b89330a1e1f7920d0b5 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,8 @@
|
|
|
| #import <Cocoa/Cocoa.h>
|
|
|
| -@class HyperlinkButtonCell;
|
| +@class SadTabController;
|
| +@class HyperlinkTextView;
|
|
|
| // A view that displays the "sad tab" (aka crash page).
|
| @interface SadTabView : BaseView {
|
| @@ -19,17 +20,28 @@
|
| 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<HyperlinkTextView> help_;
|
| +
|
| + // A weak reference to the parent controller.
|
| + IBOutlet SadTabController* controller_;
|
| }
|
|
|
| // Designated initializer is -initWithFrame: .
|
|
|
| -// Called by SadTabController to remove link button.
|
| -- (void)removeLinkButton;
|
| +// Called by SadTabController to remove the help text and link.
|
| +- (void)removeHelpText;
|
| +
|
| +// Sets |help_| based on |helpPlaceholder_|, sets |helpPlaceholder_| to nil.
|
| +- (void)initializeHelpText;
|
|
|
| @end
|
|
|
|
|