Files
atom/native/v8_extensions/atom.h
Nathan Sobo 76b8f42bb7 Add atom extension, which implements atom.open
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.
2012-08-28 11:08:50 -05:00

20 lines
555 B
Objective-C

#import <Cocoa/Cocoa.h>
#import "include/cef_base.h"
#import "include/cef_v8.h"
namespace v8_extensions {
class Atom : public CefV8Handler {
public:
Atom();
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(Atom);
};
}