本文整理汇总了C++中JSXMLHttpRequest::impl方法的典型用法代码示例。如果您正苦于以下问题:C++ JSXMLHttpRequest::impl方法的具体用法?C++ JSXMLHttpRequest::impl怎么用?C++ JSXMLHttpRequest::impl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSXMLHttpRequest
的用法示例。
在下文中一共展示了JSXMLHttpRequest::impl方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsXMLHttpRequestResponseXML
JSValue jsXMLHttpRequestResponseXML(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSXMLHttpRequest* castedThis = static_cast<JSXMLHttpRequest*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThis->impl());
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->responseXML()));
}
示例2: jsXMLHttpRequestWithCredentials
JSValue jsXMLHttpRequestWithCredentials(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSXMLHttpRequest* castedThis = static_cast<JSXMLHttpRequest*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThis->impl());
return jsBoolean(imp->withCredentials());
}
示例3: jsXMLHttpRequestReadyState
JSValue jsXMLHttpRequestReadyState(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSXMLHttpRequest* castedThis = static_cast<JSXMLHttpRequest*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThis->impl());
return jsNumber(exec, imp->readyState());
}
示例4: jsXMLHttpRequestStatusText
JSValue jsXMLHttpRequestStatusText(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSXMLHttpRequest* castedThis = static_cast<JSXMLHttpRequest*>(asObject(slot.slotBase()));
ExceptionCode ec = 0;
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThis->impl());
JSC::JSValue result = jsString(exec, imp->statusText(ec));
setDOMException(exec, ec);
return result;
}
示例5: jsXMLHttpRequestPrototypeFunctionAbort
JSValue* jsXMLHttpRequestPrototypeFunctionAbort(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args)
{
if (!thisValue->isObject(&JSXMLHttpRequest::s_info))
return throwError(exec, TypeError);
JSXMLHttpRequest* castedThisObj = static_cast<JSXMLHttpRequest*>(thisValue);
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThisObj->impl());
imp->abort();
return jsUndefined();
}
示例6: jsXMLHttpRequestPrototypeFunctionAbort
JSValue JSC_HOST_CALL jsXMLHttpRequestPrototypeFunctionAbort(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSXMLHttpRequest::s_info))
return throwError(exec, TypeError);
JSXMLHttpRequest* castedThisObj = static_cast<JSXMLHttpRequest*>(asObject(thisValue));
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThisObj->impl());
imp->abort();
return jsUndefined();
}
示例7: jsXMLHttpRequestOnreadystatechange
JSValue jsXMLHttpRequestOnreadystatechange(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSXMLHttpRequest* castedThis = static_cast<JSXMLHttpRequest*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThis->impl());
if (EventListener* listener = imp->onreadystatechange()) {
if (JSObject* jsFunction = listener->jsFunction(imp->scriptExecutionContext()))
return jsFunction;
}
return jsNull();
}
示例8: jsXMLHttpRequestPrototypeFunctionGetAllResponseHeaders
JSValue* jsXMLHttpRequestPrototypeFunctionGetAllResponseHeaders(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args)
{
if (!thisValue->isObject(&JSXMLHttpRequest::s_info))
return throwError(exec, TypeError);
JSXMLHttpRequest* castedThisObj = static_cast<JSXMLHttpRequest*>(thisValue);
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThisObj->impl());
ExceptionCode ec = 0;
KJS::JSValue* result = jsStringOrUndefined(exec, imp->getAllResponseHeaders(ec));
setDOMException(exec, ec);
return result;
}
示例9: jsXMLHttpRequestPrototypeFunctionGetAllResponseHeaders
JSValue JSC_HOST_CALL jsXMLHttpRequestPrototypeFunctionGetAllResponseHeaders(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSXMLHttpRequest::s_info))
return throwError(exec, TypeError);
JSXMLHttpRequest* castedThisObj = static_cast<JSXMLHttpRequest*>(asObject(thisValue));
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThisObj->impl());
ExceptionCode ec = 0;
JSC::JSValue result = jsStringOrUndefined(exec, imp->getAllResponseHeaders(ec));
setDOMException(exec, ec);
return result;
}
示例10: jsXMLHttpRequestPrototypeFunctionDispatchEvent
JSValue JSC_HOST_CALL jsXMLHttpRequestPrototypeFunctionDispatchEvent(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSXMLHttpRequest::s_info))
return throwError(exec, TypeError);
JSXMLHttpRequest* castedThisObj = static_cast<JSXMLHttpRequest*>(asObject(thisValue));
XMLHttpRequest* imp = static_cast<XMLHttpRequest*>(castedThisObj->impl());
ExceptionCode ec = 0;
Event* evt = toEvent(args.at(0));
JSC::JSValue result = jsBoolean(imp->dispatchEvent(evt, ec));
setDOMException(exec, ec);
return result;
}