本文整理汇总了C++中JSHTMLFrameElement类的典型用法代码示例。如果您正苦于以下问题:C++ JSHTMLFrameElement类的具体用法?C++ JSHTMLFrameElement怎么用?C++ JSHTMLFrameElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JSHTMLFrameElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLFrameElementHeight
JSValue jsHTMLFrameElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
return jsNumber(exec, imp->height());
}
示例2: jsHTMLFrameElementContentWindow
JSValue jsHTMLFrameElementContentWindow(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentWindow()));
}
示例3: jsHTMLFrameElementSrc
JSValue jsHTMLFrameElementSrc(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
return jsString(exec, imp->getURLAttribute(HTMLNames::srcAttr));
}
示例4: jsHTMLFrameElementNoResize
JSValue jsHTMLFrameElementNoResize(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
return jsBoolean(imp->noResize());
}
示例5: jsHTMLFrameElementLocation
JSValue jsHTMLFrameElementLocation(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->location());
return result;
}
示例6: jsHTMLFrameElementNoResize
JSValue jsHTMLFrameElementNoResize(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::noresizeAttr));
return result;
}
示例7: jsHTMLFrameElementHeight
JSValue jsHTMLFrameElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
JSValue result = jsNumber(imp->height());
return result;
}
示例8: jsHTMLFrameElementContentWindow
JSValue jsHTMLFrameElementContentWindow(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentWindow()));
return result;
}
示例9: jsHTMLFrameElementSrc
JSValue jsHTMLFrameElementSrc(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::srcAttr));
return result;
}
示例10: jsHTMLFrameElementPrototypeFunctionGetSVGDocument
JSValue JSC_HOST_CALL jsHTMLFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSHTMLFrameElement::s_info))
return throwError(exec, TypeError);
JSHTMLFrameElement* castedThisObj = static_cast<JSHTMLFrameElement*>(asObject(thisValue));
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThisObj->impl());
ExceptionCode ec = 0;
if (!checkNodeSecurity(exec, imp->getSVGDocument(ec)))
return jsUndefined();
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getSVGDocument(ec)));
setDOMException(exec, ec);
return result;
}
示例11: jsHTMLFrameElementPrototypeFunctionGetSVGDocument
EncodedJSValue JSC_HOST_CALL jsHTMLFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSHTMLFrameElement::s_info))
return throwVMTypeError(exec);
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(thisValue));
ASSERT_GC_OBJECT_INHERITS(castedThis, &JSHTMLFrameElement::s_info);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
ExceptionCode ec = 0;
if (!checkNodeSecurity(exec, imp->getSVGDocument(ec)))
return JSValue::encode(jsUndefined());
JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getSVGDocument(ec)));
setDOMException(exec, ec);
return JSValue::encode(result);
}
示例12: setJSHTMLFrameElementSrc
void setJSHTMLFrameElementSrc(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
imp->setAttribute(WebCore::HTMLNames::srcAttr, valueToStringWithNullCheck(exec, value));
}
示例13: setJSHTMLFrameElementNoResize
void setJSHTMLFrameElementNoResize(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLFrameElement* castedThisObj = static_cast<JSHTMLFrameElement*>(thisObject);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThisObj->impl());
imp->setNoResize(value.toBoolean(exec));
}
示例14: setJSHTMLFrameElementNoResize
void setJSHTMLFrameElementNoResize(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
imp->setBooleanAttribute(WebCore::HTMLNames::noresizeAttr, value.toBoolean(exec));
}
示例15: jsHTMLFrameElementConstructor
JSValue jsHTMLFrameElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFrameElement* domObject = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
return JSHTMLFrameElement::getConstructor(exec, domObject->globalObject());
}