mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
20 lines
631 B
C
20 lines
631 B
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);
|
||
|
};
|