Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / tab_contents / sad_tab_view_cocoa.h
blob306ad4c58a6580ad274b8cb8580ee81e16f58d6c
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_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
8 #include "base/mac/scoped_nsobject.h"
10 #import <Cocoa/Cocoa.h>
12 @class HyperlinkTextView;
14 // A view that displays the "sad tab" (aka crash page).
15 @interface SadTabView : NSView<NSTextViewDelegate> {
16 @private
17 base::scoped_nsobject<NSImageView> image_;
18 base::scoped_nsobject<NSTextField> title_;
19 base::scoped_nsobject<NSTextField> message_;
20 base::scoped_nsobject<HyperlinkTextView> help_;
22 NSSize messageSize_;
25 // Designated initializer is -initWithFrame: .
27 // Called by SadTabController to remove the help text and link.
28 - (void)removeHelpText;
30 // Sets |help_| based on |helpPlaceholder_|, sets |helpPlaceholder_| to nil.
31 - (void)initializeHelpText;
33 @end
35 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_