diff options
author | 2015-06-18 11:49:42 -0700 | |
---|---|---|
committer | 2015-06-18 11:49:42 -0700 | |
commit | 241b56db1d5c9d058dc316ad33b397be50428c4c (patch) | |
tree | ab3f50079c0c2e7cbd8fbb8c4496af913593cd00 /src/views/mac/SampleAppDelegate.mm | |
parent | 274980cda1fbad2e8c61d268747070c7130c9de3 (diff) |
Allows windowed apps to be built on the Mac just by writing a SkOSWindow subclass without needing nib/plist files.
Makes visualbench work on the Mac.
Review URL: https://codereview.chromium.org/1184143011
Diffstat (limited to 'src/views/mac/SampleAppDelegate.mm')
-rw-r--r-- | src/views/mac/SampleAppDelegate.mm | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/views/mac/SampleAppDelegate.mm b/src/views/mac/SampleAppDelegate.mm deleted file mode 100644 index 2d45034897..0000000000 --- a/src/views/mac/SampleAppDelegate.mm +++ /dev/null @@ -1,26 +0,0 @@ -#import "SampleAppDelegate.h" - -#include "SkApplication.h" - -@implementation SampleAppDelegate -@synthesize fWindow, fView, fOptions; - --(void) applicationDidFinishLaunching:(NSNotification *)aNotification { - //Load specified skia views after launching - fView.fOptionsDelegate = fOptions; - [fWindow setAcceptsMouseMovedEvents:YES]; - [fOptions registerMenus:fView.fWind->getMenus()]; -} - -- (IBAction)toiPadSize:(id)sender { - NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024); - [fWindow setFrame:frame display:YES animate:YES]; -} - -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { - [fView freeNativeWind]; - application_term(); - return NSTerminateNow; -} - -@end |