JSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionCloseWindow(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
    UNUSED_PARAM(args);
    if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
        return throwError(exec, TypeError);
    JSInspectorFrontendHost* castedThisObj = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
    InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThisObj->impl());

    imp->closeWindow();
    return jsUndefined();
}
static v8::Handle<v8::Value> closeWindowCallback(const v8::Arguments& args)
{
    InspectorFrontendHost* imp = V8InspectorFrontendHost::toNative(args.Holder());
    imp->closeWindow();
    return v8Undefined();
}
Пример #3
0
 static v8::Handle<v8::Value> closeWindowCallback(const v8::Arguments& args) {
   INC_STATS("DOM.InspectorFrontendHost.closeWindow");
   InspectorFrontendHost* imp = V8InspectorFrontendHost::toNative(args.Holder());
   imp->closeWindow();
   return v8::Handle<v8::Value>();
 }