bool JSObjectDeclaration::checkIframesSupported() const
{
- LogDebug("Check iframe supported");
if (!m_options ||
m_options->getIframeObject() == Options::IFrameObject::None)
{
- LogDebug("Iframe NOT supported for object: " << getName());
return false;
}
- LogDebug("Iframe supported for object: " << getName());
-
return true;
}
JSObjectDeclaration::Options::ClassType
JSObjectDeclaration::Options::getType() const
{
- LogDebug("Get type field from declaration's option");
Assert(m_options && "Pointer to options is NULL");
switch (m_options->type) {
JSObjectDeclaration::Options::IFrameObject
JSObjectDeclaration::Options::getIframeObject() const
{
- LogDebug("Get Frame Option");
Assert(m_options && "Options object is NULL");
switch (m_options->iframe_option) {
case NONE: return IFrameObject::None;
- case REFERENCE: return IFrameObject::Reference;
+ case REFERENCE: return IFrameObject::Reference; // deprecated
case CREATE_INSTANCE: return IFrameObject::CreateInstance;
default:
Assert(0 && "Wrong value of behaviour type");
JSObjectDeclaration::Options::IFrameNotice
JSObjectDeclaration::Options::getIframeNotice() const
{
- LogDebug("Get Frame Option");
Assert(m_options && "Pointer to options is null");
switch (m_options->iframe_notice) {
}
}
-JSObjectDeclaration::Options::IFrameOverlay
-JSObjectDeclaration::Options::getIframeOverlay() const
-{
- LogDebug("Get Frame Option");
- Assert(m_options && "Pointer to options is null");
-
- switch (m_options->iframe_overlay) {
- case IGNORED: return IFrameOverlay::Ignored;
- case USE_OVERLAYED: return IFrameOverlay::UseOverlayed;
- case OVERLAYED_BEFORE_ORIGINAL:
- return IFrameOverlay::OverlayedBeforeOriginal;
- default:
- Assert(0 && "Wrong value of overlay option");
- }
-}
-
js_function_impl JSObjectDeclaration::Options::getFunctionImpl() const
{
Assert(m_options && "Pointer to options is null");