本文整理汇总了C++中setPrototype函数的典型用法代码示例。如果您正苦于以下问题:C++ setPrototype函数的具体用法?C++ setPrototype怎么用?C++ setPrototype使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setPrototype函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ASSERT_ARG
void JSProxy::setTarget(JSGlobalData& globalData, JSGlobalObject* globalObject)
{
ASSERT_ARG(globalObject, globalObject);
m_target.set(globalData, this, globalObject);
setPrototype(globalData, globalObject->prototype());
resetInheritorID(globalData);
}
示例2: currentFileInfo
void DataSourceView::createDirectory()
{
QFileInfo fi = currentFileInfo();
CreateDirectoryDialog dlg(fi.absoluteFilePath());
if (dlg.exec() != QDialog::Accepted)
return;
if (QFile::exists(fi.absoluteFilePath() + "/" + dlg.name()))
{
QMessageBox::warning(
this,
tr("Directory exists"),
tr("Directory %1 already exists.").arg(dlg.name())
);
return;
}
auto creator = new DirectoryCreator(fi.absoluteFilePath(), dlg.name(), this);
if (dlg.hasPrototype())
creator->setPrototype(dlg.prototype());
creator->work();
}
示例3: setPrototype
// Set prototype, and also insert the object prototype at the end of the chain.
void JSGlobalObject::resetPrototype(VM& vm, JSValue prototype)
{
setPrototype(vm, prototype);
JSObject* oldLastInPrototypeChain = lastInPrototypeChain(this);
JSObject* objectPrototype = m_objectPrototype.get();
if (oldLastInPrototypeChain != objectPrototype)
oldLastInPrototypeChain->setPrototype(vm, objectPrototype);
}
示例4: JSSVGPathSeg
JSSVGPathSegClosePath::JSSVGPathSegClosePath(ExecState* exec, SVGPathSegClosePath* impl)
: JSSVGPathSeg(exec, impl)
{
setPrototype(JSSVGPathSegClosePathPrototype::self(exec));
}
示例5: JSSVGUnitTypesConstructor
JSSVGUnitTypesConstructor(ExecState* exec)
{
setPrototype(exec->lexicalInterpreter()->builtinObjectPrototype());
putDirect(exec->propertyNames().prototype, JSSVGUnitTypesPrototype::self(exec), None);
}
示例6: JSHTMLElement
JSHTMLScriptElement::JSHTMLScriptElement(ExecState* exec, HTMLScriptElement* impl)
: JSHTMLElement(exec, impl)
{
setPrototype(JSHTMLScriptElementPrototype::self(exec));
}
示例7: m_doc
JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor(ExecState* exec, Document* d)
: m_doc(d)
{
setPrototype(exec->lexicalInterpreter()->builtinObjectPrototype());
put(exec, lengthPropertyName, jsNumber(4), ReadOnly|DontDelete|DontEnum);
}
示例8: JSSVGPathSeg
JSSVGPathSegCurvetoQuadraticSmoothRel::JSSVGPathSegCurvetoQuadraticSmoothRel(ExecState* exec, SVGPathSegCurvetoQuadraticSmoothRel* impl)
: JSSVGPathSeg(exec, impl)
{
setPrototype(JSSVGPathSegCurvetoQuadraticSmoothRelPrototype::self(exec));
}
示例9: JSSVGElement
JSSVGFEPointLightElement::JSSVGFEPointLightElement(ExecState* exec, SVGFEPointLightElement* impl)
: JSSVGElement(exec, impl)
{
setPrototype(JSSVGFEPointLightElementPrototype::self(exec));
}
示例10: m_impl
JSClipboard::JSClipboard(ExecState* exec, Clipboard* clipboard)
: m_impl(clipboard)
{
setPrototype(JSClipboardPrototype::self(exec));
}
示例11: JSSVGTextPositioningElement
JSSVGTRefElement::JSSVGTRefElement(ExecState* exec, SVGTRefElement* impl)
: JSSVGTextPositioningElement(exec, impl)
{
setPrototype(JSSVGTRefElementPrototype::self(exec));
}
示例12: m_impl
JSNodeIterator::JSNodeIterator(ExecState* exec, NodeIterator* impl)
: m_impl(impl)
{
setPrototype(JSNodeIteratorPrototype::self(exec));
}
示例13: m_impl
JSSVGAnimatedRect::JSSVGAnimatedRect(ExecState* exec, SVGAnimatedRect* impl)
: m_impl(impl)
{
setPrototype(JSSVGAnimatedRectPrototype::self(exec));
}
示例14: m_impl
JSNode::JSNode(ExecState* exec, Node* impl)
: m_impl(impl)
{
setPrototype(JSNodePrototype::self(exec));
}
示例15: JSXPathEvaluatorConstructor
JSXPathEvaluatorConstructor(ExecState* exec)
{
setPrototype(exec->lexicalInterpreter()->builtinObjectPrototype());
putDirect(exec->propertyNames().prototype, JSXPathEvaluatorPrototype::self(exec), None);
}