Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

sad_tab_view.h

// 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_

Generated by  Doxygen 1.6.0   Back to index