| OLD | NEW |
| 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_ |
| OLD | NEW |