mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Expose AtomController's context
This commit is contained in:
@@ -19,6 +19,8 @@ class ClientHandler;
|
||||
- (id)initSpecsWithAtomContext:(CefRefPtr<CefV8Context>)atomContext;
|
||||
- (id)initBenchmarksWithAtomContext:(CefRefPtr<CefV8Context>)atomContext;
|
||||
|
||||
- (CefRefPtr<CefV8Context>)context;
|
||||
|
||||
- (void)createBrowser;
|
||||
|
||||
@property (nonatomic, retain) IBOutlet NSView *webView;
|
||||
|
||||
@@ -60,6 +60,10 @@
|
||||
CefBrowser::CreateBrowser(window_info, _clientHandler.get(), [indexURLString UTF8String], settings);
|
||||
}
|
||||
|
||||
- (CefRefPtr<CefV8Context>)context {
|
||||
return _clientHandler->GetBrowser()->GetMainFrame()->GetV8Context();
|
||||
}
|
||||
|
||||
#pragma mark BrowserDelegate
|
||||
|
||||
- (void)loadStart {
|
||||
|
||||
Reference in New Issue
Block a user