Index: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h |
diff --git a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h b/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h |
index 48a97f689eb495f1c345b3e1b4b1efcc76f3748b..4aa0d32cd0f07e75a1b456942a725ee8479335ad 100644 |
--- a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h |
+++ b/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h |
@@ -6,19 +6,24 @@ |
#define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ |
#pragma once |
+#include "ui/gfx/native_widget_types.h" |
+ |
+#if defined(__OBJC__) |
#import <Cocoa/Cocoa.h> |
+#endif // __OBJC__ |
class TabContents; |
+#if defined(__OBJC__) |
+ |
// 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; |
+// Designated initializer. |
+- (id)initWithTabContents:(TabContents*)tabContents; |
// This action just calls the NSApp sendAction to get it into the standard |
// Cocoa action processing. |
@@ -30,4 +35,16 @@ class TabContents; |
@end |
+#else |
+ |
+class SadTabController; |
+ |
+#endif // __OBJC__ |
+ |
+// Functions that may be accessed from non-Objective-C C/C++ code. |
+namespace sad_tab_controller_mac { |
+SadTabController* CreateSadTabController(TabContents* tab_contents); |
+gfx::NativeView GetViewOfSadTabController(SadTabController* sad_tab); |
+} |
+ |
#endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ |