本文整理汇总了C++中JSTestEventConstructor类的典型用法代码示例。如果您正苦于以下问题:C++ JSTestEventConstructor类的具体用法?C++ JSTestEventConstructor怎么用?C++ JSTestEventConstructor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JSTestEventConstructor类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: finalize
void JSTestEventConstructorOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
JSTestEventConstructor* jsTestEventConstructor = jsCast<JSTestEventConstructor*>(handle.slot()->asCell());
DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
uncacheWrapper(world, &jsTestEventConstructor->impl(), jsTestEventConstructor);
jsTestEventConstructor->releaseImpl();
}
示例2: jsTestEventConstructorAttr2
EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
{
JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase));
UNUSED_PARAM(exec);
TestEventConstructor& impl = castedThis->impl();
JSValue result = jsStringWithCache(exec, impl.attr2());
return JSValue::encode(result);
}
示例3: jsTestEventConstructorAttr2
EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
{
JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
if (UNLIKELY(!castedThis)) {
if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase))
return reportDeprecatedGetterError(*exec, "TestEventConstructor", "attr2");
return throwGetterTypeError(*exec, "TestEventConstructor", "attr2");
}
TestEventConstructor& impl = castedThis->impl();
JSValue result = jsStringWithCache(exec, impl.attr2());
return JSValue::encode(result);
}
示例4: jsTestEventConstructorAttr1
EncodedJSValue jsTestEventConstructorAttr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
{
UNUSED_PARAM(state);
UNUSED_PARAM(slotBase);
UNUSED_PARAM(thisValue);
JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
if (UNLIKELY(!castedThis)) {
if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase))
return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr1");
return throwGetterTypeError(*state, "TestEventConstructor", "attr1");
}
auto& impl = castedThis->wrapped();
JSValue result = jsStringWithCache(state, impl.attr1());
return JSValue::encode(result);
}
示例5: jsTestEventConstructorAttr3Getter
static inline JSValue jsTestEventConstructorAttr3Getter(ExecState& state, JSTestEventConstructor& thisObject, ThrowScope& throwScope)
{
UNUSED_PARAM(throwScope);
UNUSED_PARAM(state);
auto& impl = thisObject.wrapped();
JSValue result = toJS<IDLDOMString>(state, impl.attr3());
return result;
}
示例6: jsTestEventConstructorConstructor
EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
{
JSTestEventConstructor* domObject = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase));
return JSValue::encode(JSTestEventConstructor::getConstructor(exec->vm(), domObject->globalObject()));
}