Chromium Code Reviews| 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..39b8557dccb328a2e1ee0c25eff8899b61359a0c 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 ViewOfSadTabController(SadTabController* sad_tab); |
|
jochen (gone - plz use gerrit)
2011/11/14 16:44:54
maybe verb+noun would be better? GetViewOfSadTabCo
|
| +} |
| + |
| #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ |