OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_SAD_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_SAD_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 class TabContents; | 11 class TabContents; |
12 | 12 |
13 // A controller class that manages the SadTabView (aka "Aw Snap" or crash page). | 13 // A controller class that manages the SadTabView (aka "Aw Snap" or crash page). |
14 @interface SadTabController : NSViewController { | 14 @interface SadTabController : NSViewController { |
15 @private | 15 @private |
16 TabContents* tabContents_; // Weak reference. | 16 TabContents* tabContents_; // Weak reference. |
17 } | 17 } |
18 | 18 |
19 // Designated initializer is initWithTabContents. | 19 // Designated initializer is initWithTabContents. |
20 - (id)initWithTabContents:(TabContents*)someTabContents | 20 - (id)initWithTabContents:(TabContents*)someTabContents |
21 superview:(NSView*)superview; | 21 superview:(NSView*)superview; |
22 | 22 |
23 // This action just calls the NSApp sendAction to get it into the standard | 23 // This action just calls the NSApp sendAction to get it into the standard |
24 // Cocoa action processing. | 24 // Cocoa action processing. |
25 - (IBAction)openLearnMoreAboutCrashLink:(id)sender; | 25 - (IBAction)openLearnMoreAboutCrashLink:(id)sender; |
26 | 26 |
27 // Returns a weak reference to the TabContents whose TabContentsView created | 27 // Returns a weak reference to the TabContents whose TabContentsView created |
28 // this SadTabController. | 28 // this SadTabController. |
29 - (TabContents*)tabContents; | 29 - (TabContents*)tabContents; |
30 | 30 |
31 @end | 31 @end |
32 | 32 |
33 #endif // CHROME_BROWSER_UI_COCOA_SAD_TAB_CONTROLLER_H_ | 33 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ |
OLD | NEW |