Files
atom/Atom/src/AtomController.h
2012-03-21 11:13:20 -07:00

30 lines
906 B
Objective-C

#import <Cocoa/Cocoa.h>
#import "BrowserDelegate.h"
#import "include/cef.h"
class ClientHandler;
@interface AtomController : NSWindowController <NSWindowDelegate, BrowserDelegate> {
NSView *_webView;
NSString *_bootstrapScript;
NSString *_pathToOpen;
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;
@property (nonatomic, retain) IBOutlet NSView *webView;
@end
// Returns the application browser settings based on command line arguments.
void AppGetBrowserSettings(CefBrowserSettings& settings);