Files
atom/Atom/src/AtomController.h
2012-05-04 10:12:36 -07:00

31 lines
938 B
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> {
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);