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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
7 7
8 #include "base/mac/scoped_nsobject.h"
9
10 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
11 9
12 namespace content { 10 #import "ui/base/cocoa/controls/hyperlink_text_view.h"
13 class WebContents;
14 }
15 11
16 @class SadTabContainerView; 12 @class SadTabView;
13
14 @protocol SadTabViewDelegate
15 - (void)sadTabViewButtonClicked:(SadTabView*)sadTabView;
16 - (void)sadTabView:(SadTabView*)sadTabView
17 helpLinkClickedWithURL:(NSString*)url;
18 @end
17 19
18 // A view that displays the "sad tab" (aka crash page). 20 // A view that displays the "sad tab" (aka crash page).
19 @interface SadTabView : NSView { 21 @interface SadTabView : NSView
20 @private
21 base::scoped_nsobject<SadTabContainerView> container_;
22 }
23 22
24 @property(readonly,nonatomic) NSButton* reloadButton; 23 @property(nonatomic, assign) id<SadTabViewDelegate> delegate;
24
25 - (void)setTitle:(int)title;
26 - (void)setMessage:(int)message;
27 - (void)setButtonTitle:(int)buttonTitle;
28 - (void)setHelpLinkTitle:(int)helpLinkTitle URL:(NSString*)url;
25 29
26 @end 30 @end
27 31
28 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_ 32 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698