mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
85c37fd652
The resourcePath is now set using a url param. Because resourcePath is needed by require.js, it needs to be on `window` rather than `atom`.
34 lines
843 B
Objective-C
34 lines
843 B
Objective-C
#include "include/cef_app.h"
|
|
|
|
class AtomCefClient;
|
|
|
|
@interface AtomWindowController : NSWindowController <NSWindowDelegate> {
|
|
NSSplitView *_splitView;
|
|
NSView *_devToolsView;
|
|
NSView *_webView;
|
|
NSString *_bootstrapScript;
|
|
NSString *_resourcePath;
|
|
NSString *_pathToOpen;
|
|
|
|
CefRefPtr<AtomCefClient> _cefClient;
|
|
CefRefPtr<AtomCefClient> _cefDevToolsClient;
|
|
CefRefPtr<CefV8Context> _atomContext;
|
|
|
|
BOOL _runningSpecs;
|
|
BOOL _exitWhenDone;
|
|
}
|
|
|
|
@property (nonatomic, retain) IBOutlet NSSplitView *splitView;
|
|
@property (nonatomic, retain) IBOutlet NSView *webView;
|
|
@property (nonatomic, retain) IBOutlet NSView *devToolsView;
|
|
|
|
- (id)initWithPath:(NSString *)path;
|
|
- (id)initInBackground;
|
|
- (id)initSpecsThenExit:(BOOL)exitWhenDone;
|
|
- (id)initBenchmarksThenExit:(BOOL)exitWhenDone;
|
|
|
|
- (void)toggleDevTools;
|
|
- (void)showDevTools;
|
|
|
|
@end
|