当前位置: 首页>>代码示例>>C++>>正文


C++ JSTestEventConstructor类代码示例

本文整理汇总了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();
}
开发者ID:Wrichik1999,项目名称:webkit,代码行数:7,代码来源:JSTestEventConstructor.cpp

示例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);
}
开发者ID:ewmailing,项目名称:webkit,代码行数:8,代码来源:JSTestEventConstructor.cpp

示例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);
}
开发者ID:Wrichik1999,项目名称:webkit,代码行数:12,代码来源:JSTestEventConstructor.cpp

示例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);
}
开发者ID:josedealcala,项目名称:webkit,代码行数:15,代码来源:JSTestEventConstructor.cpp

示例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;
}
开发者ID:ollie314,项目名称:webkit,代码行数:8,代码来源:JSTestEventConstructor.cpp

示例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()));
}
开发者ID:ewmailing,项目名称:webkit,代码行数:5,代码来源:JSTestEventConstructor.cpp


注:本文中的JSTestEventConstructor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。