Files
atom/Atom/src/AtomController.h
Nathan Sobo 0433d3c3d9 Never send blur events to specs window
This makes sure that specs that rely on focus behavior don't end up failing because our focus is on an entirely different window.
2012-07-02 19:41:12 -06:00

38 lines
1.2 KiB
Objective-C

#import <Cocoa/Cocoa.h>
#import "BrowserDelegate.h"
#import "include/cef_base.h"
#import "include/cef_v8.h"
class ClientHandler;
@interface AtomController : NSWindowController <NSWindowDelegate, BrowserDelegate> {
NSSplitView *_splitView;
NSView *_webView;
NSView *_devToolsView;
NSString *_bootstrapScript;
NSString *_pathToOpen;
bool _runningSpecs;
CefRefPtr<CefV8Context> _atomContext;
CefRefPtr<ClientHandler> _clientHandler;
}
- (id)initWithBootstrapScript:(NSString *)bootstrapScript atomContext:(CefRefPtr<CefV8Context>) context;
- (id)initWithPath:(NSString *)path atomContext:(CefRefPtr<CefV8Context>)atomContext;
- (id)initSpecsWithAtomContext:(CefRefPtr<CefV8Context>)atomContext;
- (id)initBenchmarksWithAtomContext:(CefRefPtr<CefV8Context>)atomContext;
- (void)createBrowser;
- (void)showDevTools;
- (void)toggleDevTools;
@property (nonatomic, retain) IBOutlet NSSplitView *splitView;
@property (nonatomic, retain) IBOutlet NSView *webView;
@property (nonatomic, retain) IBOutlet NSView *devToolsView;
@end
// Returns the application browser settings based on command line arguments.
void AppGetBrowserSettings(CefBrowserSettings& settings);