本文整理汇总了C++中JSHTMLFormElement类的典型用法代码示例。如果您正苦于以下问题:C++ JSHTMLFormElement类的具体用法?C++ JSHTMLFormElement怎么用?C++ JSHTMLFormElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JSHTMLFormElement类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLFormElementTarget
JSValue jsHTMLFormElementTarget(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFormElement* castedThis = static_cast<JSHTMLFormElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThis->impl());
return jsString(exec, imp->target());
}
示例2: jsHTMLFormElementNoValidate
JSValue jsHTMLFormElementNoValidate(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFormElement* castedThis = static_cast<JSHTMLFormElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThis->impl());
return jsBoolean(imp->noValidate());
}
示例3: jsHTMLFormElementPrototypeFunctionSubmit
JSValue JSC_HOST_CALL jsHTMLFormElementPrototypeFunctionSubmit(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSHTMLFormElement::s_info))
return throwError(exec, TypeError);
JSHTMLFormElement* castedThisObj = static_cast<JSHTMLFormElement*>(asObject(thisValue));
return castedThisObj->submit(exec, args);
}
示例4: jsHTMLFormElementTarget
JSValue jsHTMLFormElementTarget(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFormElement* castedThis = static_cast<JSHTMLFormElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->target());
return result;
}
示例5: jsHTMLFormElementNoValidate
JSValue jsHTMLFormElementNoValidate(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFormElement* castedThis = static_cast<JSHTMLFormElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThis->impl());
JSValue result = jsBoolean(imp->noValidate());
return result;
}
示例6: jsHTMLFormElementPrototypeFunctionReset
JSValue* jsHTMLFormElementPrototypeFunctionReset(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args)
{
if (!thisValue->isObject(&JSHTMLFormElement::s_info))
return throwError(exec, TypeError);
JSHTMLFormElement* castedThisObj = static_cast<JSHTMLFormElement*>(thisValue);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThisObj->impl());
imp->reset();
return jsUndefined();
}
示例7: jsHTMLFormElementPrototypeFunctionReset
JSValue JSC_HOST_CALL jsHTMLFormElementPrototypeFunctionReset(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSHTMLFormElement::s_info))
return throwError(exec, TypeError);
JSHTMLFormElement* castedThisObj = static_cast<JSHTMLFormElement*>(asObject(thisValue));
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThisObj->impl());
imp->reset();
return jsUndefined();
}
示例8: jsHTMLFormElementPrototypeFunctionCheckValidity
JSValue JSC_HOST_CALL jsHTMLFormElementPrototypeFunctionCheckValidity(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSHTMLFormElement::s_info))
return throwError(exec, TypeError);
JSHTMLFormElement* castedThisObj = static_cast<JSHTMLFormElement*>(asObject(thisValue));
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThisObj->impl());
JSC::JSValue result = jsBoolean(imp->checkValidity());
return result;
}
示例9: indexGetter
JSValue* JSHTMLFormElement::indexGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot)
{
JSHTMLFormElement* thisObj = static_cast<JSHTMLFormElement*>(slot.slotBase());
return toJS(exec, static_cast<HTMLFormElement*>(thisObj->impl())->item(slot.index()));
}
示例10: indexGetter
JSValue JSHTMLFormElement::indexGetter(ExecState* exec, JSValue slotBase, unsigned index)
{
JSHTMLFormElement* thisObj = static_cast<JSHTMLFormElement*>(asObject(slotBase));
return toJS(exec, thisObj->globalObject(), static_cast<HTMLFormElement*>(thisObj->impl())->item(index));
}
示例11: setJSHTMLFormElementTarget
void setJSHTMLFormElementTarget(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLFormElement* castedThisObj = static_cast<JSHTMLFormElement*>(thisObject);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThisObj->impl());
imp->setTarget(valueToStringWithNullCheck(exec, value));
}
示例12: setJSHTMLFormElementNoValidate
void setJSHTMLFormElementNoValidate(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLFormElement* castedThisObj = static_cast<JSHTMLFormElement*>(thisObject);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThisObj->impl());
imp->setNoValidate(value.toBoolean(exec));
}
示例13: jsHTMLFormElementConstructor
JSValue jsHTMLFormElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFormElement* domObject = static_cast<JSHTMLFormElement*>(asObject(slotBase));
return JSHTMLFormElement::getConstructor(exec, domObject->globalObject());
}
示例14: jsHTMLFormElementConstructor
JSValue jsHTMLFormElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFormElement* domObject = static_cast<JSHTMLFormElement*>(asObject(slot.slotBase()));
return JSHTMLFormElement::getConstructor(exec, domObject->globalObject());
}