mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
We send a message from the render process to the browser process indicating which path to open. Also start introducing a `v8_extensions::` namespace to contain the extensions.
10 lines
373 B
Plaintext
10 lines
373 B
Plaintext
#import <AppKit/AppKit.h>
|
|
#import "include/cef_browser.h"
|
|
#import "include/cef_frame.h"
|
|
#import "native/atom_cef_client.h"
|
|
#import "atom_application.h"
|
|
|
|
void AtomCefClient::Open(std::string path) {
|
|
NSString *pathString = [NSString stringWithCString:path.c_str() encoding:NSUTF8StringEncoding];
|
|
[(AtomApplication *)[AtomApplication sharedApplication] open:pathString];
|
|
} |