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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h

Issue 7610011: Update Sad Tab help text and link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. 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/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

Powered by Google App Engine
This is Rietveld 408576698