blob: 148729afbb3124a27a944e28cca408ab5740f6f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_COCOA_SAD_TAB_CONTROLLER_H_
#define CHROME_BROWSER_COCOA_SAD_TAB_CONTROLLER_H_
#import <Cocoa/Cocoa.h>
class TabContents;
// A controller class that manages the SadTabView (aka "Aw Snap" or crash page).
@interface SadTabController : NSViewController {
@private
TabContents* tabContents_; // Weak reference.
}
// Designated initializer is initWithTabContents.
- (id)initWithTabContents:(TabContents*)someTabContents
superview:(NSView*)superview;
// This action just calls the NSApp sendAction to get it into the standard
// Cocoa action processing.
- (IBAction)openLearnMoreAboutCrashLink:(id)sender;
// Returns a weak reference to the TabContents whose TabContentsView created
// this SadTabController.
- (TabContents*)tabContents;
@end
#endif // CHROME_BROWSER_COCOA_SAD_TAB_CONTROLLER_H_
|