mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
27 lines
677 B
Objective-C
27 lines
677 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
#import "JSCocoa.h"
|
|
|
|
@class JSCocoa;
|
|
@class WebView;
|
|
|
|
struct JSGlobalContextRef;
|
|
|
|
@interface AtomController : NSWindowController <NSWindowDelegate>
|
|
|
|
@property (assign) WebView *webView;
|
|
@property (nonatomic, retain, readonly) NSString *url;
|
|
@property (nonatomic, retain, readonly) NSString *bootstrapScript;
|
|
|
|
- (id)initForSpecs;
|
|
- (id)initWithURL:(NSString *)url;
|
|
|
|
- (void)triggerAtomEventWithName:(NSString *)name data:(id)data;
|
|
- (void)reload;
|
|
- (JSValueRefAndContextRef)jsWindow;
|
|
- (void)performActionForMenuItemPath:(NSString *)menuItemPath;
|
|
|
|
- (void)contentsOfDirectoryAtPath:(NSString *)path onComplete:(JSValueRefAndContextRef)jsFunction;
|
|
|
|
|
|
@end
|