mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
This makes sure that specs that rely on focus behavior don't end up failing because our focus is on an entirely different window.
38 lines
1.2 KiB
Objective-C
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);
|