[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / tab_contents / sad_tab_view.h
blob5219b997191f907bf087b44f783b76705f514780
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_H_
8 #include "base/mac/scoped_nsobject.h"
9 #include "ui/base/cocoa/base_view.h"
11 #import <Cocoa/Cocoa.h>
13 @class SadTabController;
14 @class HyperlinkTextView;
16 // A view that displays the "sad tab" (aka crash page).
17 @interface SadTabView : BaseView<NSTextViewDelegate> {
18 @private
19 IBOutlet NSImageView* image_;
20 base::scoped_nsobject<NSTextField> title_;
21 base::scoped_nsobject<NSTextField> message_;
22 base::scoped_nsobject<HyperlinkTextView> help_;
24 base::scoped_nsobject<NSColor> backgroundColor_;
25 NSSize messageSize_;
27 // A weak reference to the parent controller.
28 IBOutlet SadTabController* controller_;
31 // Designated initializer is -initWithFrame: .
33 // Called by SadTabController to remove the help text and link.
34 - (void)removeHelpText;
36 // Sets |help_| based on |helpPlaceholder_|, sets |helpPlaceholder_| to nil.
37 - (void)initializeHelpText;
39 @end
41 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_H_