Home | History | Annotate | Download | only in Netscape

Lines Matching full:variant

114 JSValue NPRuntimeObjectMap::convertNPVariantToJSValue(JSC::ExecState* exec, JSC::JSGlobalObject* globalObject, const NPVariant& variant)
116 switch (variant.type) {
124 return jsBoolean(variant.value.boolValue);
127 return jsNumber(variant.value.intValue);
130 return jsNumber(variant.value.doubleValue);
133 return jsString(exec, String::fromUTF8WithLatin1Fallback(variant.value.stringValue.UTF8Characters,
134 variant.value.stringValue.UTF8Length));
136 return getOrCreateJSObject(globalObject, variant.value.objectValue);
143 void NPRuntimeObjectMap::convertJSValueToNPVariant(ExecState* exec, JSValue value, NPVariant& variant)
147 VOID_TO_NPVARIANT(variant);
150 NULL_TO_NPVARIANT(variant);
155 VOID_TO_NPVARIANT(variant);
160 BOOLEAN_TO_NPVARIANT(value.toBoolean(exec), variant);
165 DOUBLE_TO_NPVARIANT(value.toNumber(exec), variant);
171 STRINGN_TO_NPVARIANT(npString.UTF8Characters, npString.UTF8Length, variant);
177 OBJECT_TO_NPVARIANT(npObject, variant);