summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/sad_tab_view.h
blob: f89e679cf4cad780f23af1442802dbae1c6a936b (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
33
34
35
// 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_VIEW_H_
#define CHROME_BROWSER_COCOA_SAD_TAB_VIEW_H_

#include "base/scoped_nsobject.h"
#include "chrome/browser/cocoa/base_view.h"

#import <Cocoa/Cocoa.h>

@class HyperlinkButtonCell;

// A view that displays the "sad tab" (aka crash page).
@interface SadTabView : BaseView {
 @private
  IBOutlet NSImageView* image_;
  IBOutlet NSTextField* title_;
  IBOutlet NSTextField* message_;
  IBOutlet NSButton* linkButton_;
  IBOutlet HyperlinkButtonCell* linkCell_;

  scoped_nsobject<NSColor> backgroundColor_;
  NSSize messageSize_;
}

// Designated initializer is -initWithFrame: .

// Called by SadTabController to remove link button.
- (void)removeLinkButton;

@end

#endif  // CHROME_BROWSER_COCOA_SAD_TAB_VIEW_H_