mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-08 16:19:17 +03:00
20 lines
631 B
Objective-C
20 lines
631 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
#import "include/cef_base.h"
|
|
#import "include/cef_v8.h"
|
|
|
|
class NativeHandler : public CefV8Handler {
|
|
public:
|
|
NativeHandler();
|
|
|
|
CefRefPtr<CefV8Value> m_object;
|
|
|
|
virtual bool Execute(const CefString& name,
|
|
CefRefPtr<CefV8Value> object,
|
|
const CefV8ValueList& arguments,
|
|
CefRefPtr<CefV8Value>& retval,
|
|
CefString& exception) OVERRIDE;
|
|
|
|
// Provide the reference counting implementation for this class.
|
|
IMPLEMENT_REFCOUNTING(NativeHandler);
|
|
};
|