Example #1
0
bool JsObjectWrapper::hasMethod(NPIdentifier name) {
	Debug::println("JsObjectWrapper::hasMethod: %s", debugName(name));
	TypeMemberInfo info;
	if(!getInfo(name, info)) {
		Debug::println("JsObjectWrapper::hasMethod> not found: %s", debugName(name));
		return false;
	}
	return info.dispatchType == DT_Method;
}
void ApplicationLauncher::start(int index)
{
    if (!m_synced) {
        return;
    }

#ifdef QT_DEBUG
    DEBUG_TAG(1, debugName(), "starting launcher" << index)
#endif

    m_tx.set_index(index);
    sendLauncherStart(m_tx);
}
Example #3
0
bool JsAgent::invoke(NPIdentifier name, const NPVariant* args, unsigned argCount, NPVariant* result) {
	//	NPUTF8* strName = NPN_UTF8FromIdentifier(name);
	Debug::println("JsAgent::invoke: %s", debugName(name));

	if(name == methods.onLoad) {
		return onLoad(args, argCount);
	}
	else if(name == methods.onUnload) {
		return onUnload();
	}
	else if(name == methods.toString) {
		std::string str("[DotWeb Plugin]");
		Variant var;
		var.set(str);
		*result = var.take();
		return true;
	}

	return false;
}
Example #4
0
bool JsAgent::getProperty(NPIdentifier name, NPVariant* result) {
	Debug::println("JsAgent::getProperty: %s", debugName(name));
	return false;
}
Example #5
0
bool JsAgent::hasProperty(NPIdentifier name) {
	Debug::println("JsAgent::hasProperty: %s", debugName(name));
	return false;
}
Example #6
0
bool JsAgent::hasMethod(NPIdentifier name) {
	Debug::println("JsAgent::hasMethod: %s", debugName(name));
	return (name == methods.onLoad || 
		name == methods.onUnload ||
		name == methods.toString);
}
Example #7
0
bool JsAgent::setProperty(NPIdentifier name, const NPVariant* value) {
	Debug::println("JsAgent::setProperty: %s", debugName(name));
	return false;
}
Example #8
0
WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfoFor(WebLayer* layer)
{
    GraphicsLayerDebugInfo* clone = m_debugInfo.clone();
    clone->setDebugName(debugName(layer));
    return clone;
}
Example #9
0
bool JsObjectWrapper::getProperty(NPIdentifier name, NPVariant* result) {
	Debug::println("JsObjectWrapper::getProperty: %s", debugName(name));
	DispatchIdentifier dispId = CreateDispatchIdentifier(name);
	return m_agent->invokeRemoteMember(m_targetId, dispId, DT_PropertyGet, NULL, 0, result);
}
Example #10
0
bool JsObjectWrapper::hasProperty(NPIdentifier name) {
	Debug::println("JsObjectWrapper::hasProperty: %s", debugName(name));
	return true;
}
Example #11
0
bool JsObjectWrapper::invoke(NPIdentifier name, const NPVariant* args, unsigned argCount, NPVariant* result) {
	Debug::println("JsObjectWrapper::invoke: %s", debugName(name));
	DispatchIdentifier dispId = CreateDispatchIdentifier(name);
	return m_agent->invokeRemoteMember(m_targetId, dispId, DT_Method, args, argCount, result);
}
Example #12
0
bool JsObjectWrapper::removeProperty(NPIdentifier name) {
	Debug::println("JsObjectWrapper::removeProperty: %s", debugName(name));
	m_hasInfo = false;
	return false;
}
Example #13
0
bool JsObjectWrapper::setProperty(NPIdentifier name, const NPVariant* value) {
	Debug::println("JsObjectWrapper::setProperty: %s", debugName(name));
	m_hasInfo = false;
	DispatchIdentifier dispId = CreateDispatchIdentifier(name);
	return m_agent->invokeRemoteMember(m_targetId, dispId, DT_PropertySet, value, 1, NULL);
}