本文整理汇总了C++中JSTestMediaQueryListListener类的典型用法代码示例。如果您正苦于以下问题:C++ JSTestMediaQueryListListener类的具体用法?C++ JSTestMediaQueryListListener怎么用?C++ JSTestMediaQueryListListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JSTestMediaQueryListListener类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsTestMediaQueryListListenerConstructor
EncodedJSValue jsTestMediaQueryListListenerConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
{
JSTestMediaQueryListListener* domObject = jsDynamicCast<JSTestMediaQueryListListener*>(JSValue::decode(slotBase));
if (!domObject)
return throwVMTypeError(exec);
return JSValue::encode(JSTestMediaQueryListListener::getConstructor(exec->vm(), domObject->globalObject()));
}
示例2: finalize
void JSTestMediaQueryListListenerOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
JSTestMediaQueryListListener* jsTestMediaQueryListListener = jsCast<JSTestMediaQueryListListener*>(handle.slot()->asCell());
DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
uncacheWrapper(world, &jsTestMediaQueryListListener->impl(), jsTestMediaQueryListListener);
jsTestMediaQueryListListener->releaseImpl();
}
示例3: jsTestMediaQueryListListenerPrototypeFunctionMethod
EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSTestMediaQueryListListener::s_info))
return throwVMTypeError(exec);
JSTestMediaQueryListListener* castedThis = static_cast<JSTestMediaQueryListListener*>(asObject(thisValue));
TestMediaQueryListListener* imp = static_cast<TestMediaQueryListListener*>(castedThis->impl());
RefPtr<MediaQueryListListener> listener = MediaQueryListListener::create(exec->argument(0));
if (exec->hadException())
return JSValue::encode(jsUndefined());
imp->method(listener);
return JSValue::encode(jsUndefined());
}
示例4: jsTestMediaQueryListListenerPrototypeFunctionMethod
EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(ExecState* exec)
{
JSValue thisValue = exec->thisValue();
JSTestMediaQueryListListener* castedThis = jsDynamicCast<JSTestMediaQueryListListener*>(thisValue);
if (UNLIKELY(!castedThis))
return throwThisTypeError(*exec, "TestMediaQueryListListener", "method");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestMediaQueryListListener::info());
TestMediaQueryListListener& impl = castedThis->impl();
if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
if (!exec->argument(0).isFunction())
return throwArgumentMustBeFunctionError(*exec, 0, "listener", "TestMediaQueryListListener", "method");
RefPtr<MediaQueryListListener> listener = JSMediaQueryListListener::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
impl.method(listener);
return JSValue::encode(jsUndefined());
}