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

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

Issue 2247493003: [Mac] Clean up SadTabView and let SadTabController provide its content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use base::mac::ObjCCast Created 4 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_cocoa.h
diff --git a/chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h b/chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h
index e5f420a1b903eda5648a23c3503deb2fa5fcd42c..bbaf5906ae76bb4d07bf225cc6bdbf11866854c7 100644
--- a/chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h
+++ b/chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h
@@ -5,23 +5,27 @@
#ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
#define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
-#include "base/mac/scoped_nsobject.h"
-
#import <Cocoa/Cocoa.h>
-namespace content {
-class WebContents;
-}
+#import "ui/base/cocoa/controls/hyperlink_text_view.h"
+
+@class SadTabView;
-@class SadTabContainerView;
+@protocol SadTabViewDelegate
+- (void)sadTabViewButtonClicked:(SadTabView*)sadTabView;
+- (void)sadTabView:(SadTabView*)sadTabView
+ helpLinkClickedWithURL:(NSString*)url;
+@end
// A view that displays the "sad tab" (aka crash page).
-@interface SadTabView : NSView {
- @private
- base::scoped_nsobject<SadTabContainerView> container_;
-}
+@interface SadTabView : NSView
+
+@property(nonatomic, assign) id<SadTabViewDelegate> delegate;
-@property(readonly,nonatomic) NSButton* reloadButton;
+- (void)setTitle:(int)title;
+- (void)setMessage:(int)message;
+- (void)setButtonTitle:(int)buttonTitle;
+- (void)setHelpLinkTitle:(int)helpLinkTitle URL:(NSString*)url;
@end

Powered by Google App Engine
This is Rietveld 408576698