예제 #1
0
static v8::Handle<v8::Value> handleEventCallback(const v8::Arguments& args)
{
    INC_STATS("DOM.VoidCallback.handleEvent");
    VoidCallback* imp = V8VoidCallback::toNative(args.Holder());
    imp->handleEvent();
    return v8::Handle<v8::Value>();
}
예제 #2
0
JSValue* jsVoidCallbackPrototypeFunctionHandleEvent(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args)
{
    if (!thisValue->isObject(&JSVoidCallback::s_info))
        return throwError(exec, TypeError);
    JSVoidCallback* castedThisObj = static_cast<JSVoidCallback*>(thisValue);
    VoidCallback* imp = static_cast<VoidCallback*>(castedThisObj->impl());

    imp->handleEvent();
    return jsUndefined();
}