mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
22 lines
703 B
Plaintext
22 lines
703 B
Plaintext
#import "git.h"
|
|
#import "include/git2.h"
|
|
#import "include/cef_base.h"
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
namespace v8_extensions {
|
|
|
|
Git::Git() : CefV8Handler() {
|
|
NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"v8_extensions/git.js"];
|
|
NSString *extensionCode = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
|
|
CefRegisterExtension("v8/git", [extensionCode UTF8String], this);
|
|
}
|
|
|
|
bool Git::Execute(const CefString& name,
|
|
CefRefPtr<CefV8Value> object,
|
|
const CefV8ValueList& arguments,
|
|
CefRefPtr<CefV8Value>& retval,
|
|
CefString& exception) {
|
|
}
|
|
|
|
}
|