2011-02-04 16:25:05 +01:00
|
|
|
#import <AppKit/NSApplication.h>
|
|
|
|
|
2011-03-26 18:36:13 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#ifdef HAVE_BREAKPAD
|
2011-03-25 12:38:03 +01:00
|
|
|
#import <Breakpad/Breakpad.h>
|
2011-03-26 18:36:13 +01:00
|
|
|
#endif
|
2011-03-25 12:38:03 +01:00
|
|
|
|
2011-02-04 16:25:05 +01:00
|
|
|
|
|
|
|
class PlatformInterface;
|
|
|
|
|
|
|
|
#ifdef SNOW_LEOPARD
|
|
|
|
@interface AppDelegate :NSObject <NSApplicationDelegate> {
|
|
|
|
#else
|
|
|
|
@interface AppDelegate :NSObject {
|
|
|
|
#endif
|
|
|
|
PlatformInterface* application_handler_;
|
|
|
|
NSMenu* dock_menu_;
|
2011-03-25 12:38:03 +01:00
|
|
|
|
2011-03-26 18:36:13 +01:00
|
|
|
#ifdef HAVE_BREAKPAD
|
2011-03-25 12:38:03 +01:00
|
|
|
BreakpadRef breakpad_;
|
2011-03-26 18:36:13 +01:00
|
|
|
#endif
|
2011-02-04 16:25:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithHandler: (PlatformInterface*)handler;
|
|
|
|
// NSApplicationDelegate
|
|
|
|
- (BOOL) applicationShouldHandleReopen: (NSApplication*)app hasVisibleWindows:(BOOL)flag;
|
|
|
|
- (NSMenu*) applicationDockMenu: (NSApplication*)sender;
|
|
|
|
- (void) setDockMenu: (NSMenu*)menu;
|
2011-03-25 12:38:03 +01:00
|
|
|
|
|
|
|
- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication*)sender;
|
2011-02-04 16:25:05 +01:00
|
|
|
@end
|
|
|
|
|