本文整理汇总了C++中JSNavigator::impl方法的典型用法代码示例。如果您正苦于以下问题:C++ JSNavigator::impl方法的具体用法?C++ JSNavigator::impl怎么用?C++ JSNavigator::impl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSNavigator
的用法示例。
在下文中一共展示了JSNavigator::impl方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: finalize
void JSNavigatorOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
JSNavigator* jsNavigator = jsCast<JSNavigator*>(handle.get().asCell());
DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
uncacheWrapper(world, &jsNavigator->impl(), jsNavigator);
jsNavigator->releaseImpl();
}
示例2: jsNavigatorOnLine
JSValue jsNavigatorOnLine(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSNavigator* castedThis = static_cast<JSNavigator*>(asObject(slotBase));
UNUSED_PARAM(exec);
Navigator* imp = static_cast<Navigator*>(castedThis->impl());
JSValue result = jsBoolean(imp->onLine());
return result;
}
示例3: jsNavigatorVendorSub
JSValue jsNavigatorVendorSub(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSNavigator* castedThis = static_cast<JSNavigator*>(asObject(slotBase));
UNUSED_PARAM(exec);
Navigator* imp = static_cast<Navigator*>(castedThis->impl());
JSValue result = jsString(exec, imp->vendorSub());
return result;
}
示例4: jsNavigatorMimeTypes
JSValue jsNavigatorMimeTypes(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSNavigator* castedThis = static_cast<JSNavigator*>(asObject(slotBase));
UNUSED_PARAM(exec);
Navigator* imp = static_cast<Navigator*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->mimeTypes()));
return result;
}
示例5: isReachableFromOpaqueRoots
bool JSNavigatorOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
{
JSNavigator* jsNavigator = jsCast<JSNavigator*>(handle.get().asCell());
if (!isObservable(jsNavigator))
return false;
Frame* root = jsNavigator->impl().frame();
if (!root)
return false;
return visitor.containsOpaqueRoot(root);
}
示例6: jsNavigatorPrototypeFunctionGetStorageUpdates
EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionGetStorageUpdates(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
JSNavigator* castedThis = jsDynamicCast<JSNavigator*>(thisValue);
if (!castedThis)
return throwVMTypeError(exec);
ASSERT_GC_OBJECT_INHERITS(castedThis, JSNavigator::info());
Navigator& impl = castedThis->impl();
impl.getStorageUpdates();
return JSValue::encode(jsUndefined());
}
示例7: jsNavigatorOnLine
EncodedJSValue jsNavigatorOnLine(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSNavigator* castedThis = jsDynamicCast<JSNavigator*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
Navigator& impl = castedThis->impl();
JSValue result = jsBoolean(impl.onLine());
return JSValue::encode(result);
}
示例8: jsNavigatorVendorSub
EncodedJSValue jsNavigatorVendorSub(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSNavigator* castedThis = jsDynamicCast<JSNavigator*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
Navigator& impl = castedThis->impl();
JSValue result = jsStringWithCache(exec, impl.vendorSub());
return JSValue::encode(result);
}
示例9: jsNavigatorPrototypeFunctionJavaEnabled
EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionJavaEnabled(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
JSNavigator* castedThis = jsDynamicCast<JSNavigator*>(thisValue);
if (!castedThis)
return throwVMTypeError(exec);
ASSERT_GC_OBJECT_INHERITS(castedThis, JSNavigator::info());
Navigator& impl = castedThis->impl();
JSC::JSValue result = jsBoolean(impl.javaEnabled());
return JSValue::encode(result);
}
示例10: jsNavigatorPrototypeFunctionGetStorageUpdates
EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionGetStorageUpdates(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSNavigator::s_info))
return throwVMTypeError(exec);
JSNavigator* castedThis = static_cast<JSNavigator*>(asObject(thisValue));
ASSERT_GC_OBJECT_INHERITS(castedThis, &JSNavigator::s_info);
Navigator* imp = static_cast<Navigator*>(castedThis->impl());
imp->getStorageUpdates();
return JSValue::encode(jsUndefined());
}
示例11: jsNavigatorPrototypeFunctionJavaEnabled
EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionJavaEnabled(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSNavigator::s_info))
return throwVMTypeError(exec);
JSNavigator* castedThis = static_cast<JSNavigator*>(asObject(thisValue));
ASSERT_GC_OBJECT_INHERITS(castedThis, &JSNavigator::s_info);
Navigator* imp = static_cast<Navigator*>(castedThis->impl());
JSC::JSValue result = jsBoolean(imp->javaEnabled());
return JSValue::encode(result);
}