pulsar/native/atom_window_controller.h
Kevin Sawicki 32d23d6303 Allow Atom to be run in stable mode
Previously isDevMode was returning true when it was called
before the resource path was initially set forcing Atom to
always run in dev mode.

Now we just use the new isDevFlagSpecified() method to check
where the bundle resource path should be used.
2013-04-29 17:51:13 -07:00

45 lines
1.2 KiB
Objective-C

#include "include/cef_app.h"
class AtomCefClient;
@interface AtomWindowController : NSWindowController <NSWindowDelegate> {
NSSplitView *_splitView;
NSView *_devToolsView;
NSView *_webView;
NSButton *_devButton;
NSString *_bootstrapScript;
NSString *_resourcePath;
NSString *_pathToOpen;
NSNumber *_pidToKillOnClose;
CefRefPtr<AtomCefClient> _cefClient;
CefRefPtr<AtomCefClient> _cefDevToolsClient;
CefRefPtr<CefV8Context> _atomContext;
BOOL _runningSpecs;
BOOL _exitWhenDone;
BOOL _isConfig;
}
@property (nonatomic, retain) IBOutlet NSSplitView *splitView;
@property (nonatomic, retain) IBOutlet NSView *webView;
@property (nonatomic, retain) IBOutlet NSView *devToolsView;
@property (nonatomic, retain) NSString *pathToOpen;
@property (nonatomic) BOOL isConfig;
- (id)initWithPath:(NSString *)path;
- (id)initDevWithPath:(NSString *)path;
- (id)initInBackground;
- (id)initConfig;
- (id)initSpecsThenExit:(BOOL)exitWhenDone;
- (id)initBenchmarksThenExit:(BOOL)exitWhenDone;
- (void)setPidToKillOnClose:(NSNumber *)pid;
- (BOOL)isDevMode;
- (BOOL)isDevFlagSpecified;
- (void)toggleDevTools;
- (void)showDevTools;
- (void)openPath:(NSString*)path;
@end