Search completed in 1.34 seconds.
15 results for "npvariant":
NPVariant - Archive of obsolete content
<< Gecko Plugin API Reference << Scripting plugins Summary
NPVariant is a struct that holds a value and the type of that value. The value is held in a union, and the type is one of types defined in the
NPVariantType enumeration. Syntax typedef struct _
NPVariant {
NPVariantType type; union { bool boolValue; int32_t intValue; double_t doubleValue; NPString stringValue; NPObject *objectValue; } value; }
NPVariant; Fields The data structure has the following fields: type A member of the
NPVariantType enumeration specifying the data type contained in the
NPVariant. value The value contained in the
NPVariant structure. ...
...PString stringValue; NPObject *objectValue; } value; }
NPVariant; Fields The data structure has the following fields: type A member of the
NPVariantType enumeration specifying the data type contained in the
NPVariant. value The value contained in the
NPVariant structure. It may be a boolean, integer, double, string, or object, depending on the variant type. ...
...e; } value; }
NPVariant; Fields The data structure has the following fields: type A member of the
NPVariantType enumeration specifying the data type contained in the
NPVariant. value The value contained in the
NPVariant structure. It may be a boolean, integer, double, string, or object, depending on the variant type. ...
...And 12 more matches
NPVariantType - Archive of obsolete content
<< Gecko Plugin API Reference << Scripting plugins Summary
NPVariantType is an enumeration that is used to identify the data type of an
NPVariant structure. ...
... << Gecko Plugin API Reference << Scripting plugins Summary
NPVariantType is an enumeration that is used to identify the data type of an
NPVariant structure. ...
... << Gecko Plugin API Reference << Scripting plugins Summary
NPVariantType is an enumeration that is used to identify the data type of an
NPVariant structure. ...
...And 7 more matches
NPClass - Archive of obsolete content
unction pointer syntax typedef NPObject *(*NPAllocateFunctionPtr)(NPP npp, NPClass *aClass); typedef void (*NPDeallocateFunctionPtr)(NPObject *npobj); typedef void (*NPInvalidateFunctionPtr)(NPObject *npobj); typedef bool (*NPHasMethodFunctionPtr)(NPObject *npobj, NPIdentifier name); typedef bool (*NPInvokeFunctionPtr)(NPObject *npobj, NPIdentifier name, const
NPVariant *args, uint32_t argCount,
NPVariant *result); typedef bool (*NPInvokeDefaultFunctionPtr)(NPObject *npobj, const
NPVariant *args, uint32_t argCount,
NPVariant *result); typedef bool (*NPHasPropertyFunctionPtr)(NPObject *npobj, NPIdenti...
...ject *npobj, const
NPVariant *args, uint32_t argCount,
NPVariant *result); typedef bool (*NPHasPropertyFunctionPtr)(NPObject *npobj, NPIdentifier name); typedef bool (*NPGetPropertyFunctionPtr)(NPObject *npobj, NPIdentifier name,
NPVariant *result); typedef bool (*NPSetPropertyFunctionPtr)(NPObject *npobj, NPIdentifier name, const
NPVariant *value); typedef bool (*NPRemovePropertyFunctionPtr)(NPObject *npobj, NPIdentifier name); typedef bool (*NPEnumerationFunctionPtr)(NPObject *npobj, NPIdentifier **value, ...
... const
NPVariant *value); typedef bool (*NPRemovePropertyFunctionPtr)(NPObject *npobj, NPIdentifier name); typedef bool (*NPEnumerationFunctionPtr)(NPObject *npobj, NPIdentifier **value, uint32_t *count); typedef bool (*NPConstructFunctionPtr)(NPObject *npobj, const
NPVariant *args, uint32_t argCount,
NPVariant *result); See also NPObject ...
NPN_Invoke - Archive of obsolete content
<< Gecko Plugin API Reference << Scripting plugins Summary Invokes a method on the given NPObject. Syntax #include <npruntime.h> bool NPN_Invoke(NPP npp, NPObject *npobj, NPIdentifier methodName, const
NPVariant *args, uint32_t argCount,
NPVariant *result); Parameters The function has the following parameters: npp The NPP indicating which plugin wants to call the method on the object. npobj The object on which to invoke a method. methodName A string identifier indicating the name of the method to invoke. args An array of arguments to pass to the method. argCount The number of arguments in the args array. result A pointer to an
NPVariant to receive the result returned by the method. Returns true if the method was successfully invoked, otherwise false. If the method was invoked...
...thodName A string identifier indicating the name of the method to invoke. args An array of arguments to pass to the method. argCount The number of arguments in the args array. result A pointer to an
NPVariant to receive the result returned by the method. Returns true if the method was successfully invoked, otherwise false. If the method was invoked successfully, any return value is stored in the
NPVariant specified by result. When the caller no longer needs the result, it must call NPN_ReleaseVariantValue() to release it. Description The method arguments are passed as an array of
NPVariants, and the number of arguments is passed in. The result of the method invocation is returned through an
NPVariant result parameter. If the method invocation succeeds, NPN_Invoke() returns true, else false. Note: ...
NPN_InvokeDefault - Archive of obsolete content
<< Gecko Plugin API Reference << Scripting plugins Summary Invokes the default method, if one exists, on the given NPObject. Syntax #include <npruntime.h> bool NPN_InvokeDefault(NPP npp, NPObject *npobj, const
NPVariant *args, uint32_t argCount,
NPVariant *result); Parameters The function has the following parameters: npp The NPP indicating which plugin wants to call the default method on the object. npobj The object on which to invoke the default method. args An array of arguments to pass to the default method. argCount The number of arguments in the args array. result A pointer to an
NPVariant to receive the result returned by the default method. Returns true if the default method was successfully invoked, otherwise fals...
...e default method. args An array of arguments to pass to the default method. argCount The number of arguments in the args array. result A pointer to an
NPVariant to receive the result returned by the default method. Returns true if the default method was successfully invoked, otherwise false. If the default method was invoked successfully, any return value is stored in the
NPVariant specified by result. When the caller no longer needs the result, it must call NPN_ReleaseVariantValue() to release it. Description The method arguments are passed as an array of
NPVariants, and the number of arguments is passed in. The result of the method invocation is returned through an
NPVariant result parameter. If the method invocation succeeds, NPN_Invoke() returns true, else false. ...
NPN_ReleaseVariantValue - Archive of obsolete content
<< Gecko Plugin API Reference << Scripting plugins Summary NPN_ReleaseVariantValue() releases the value in the given variant. Syntax #include <npruntime.h> void NPN_ReleaseVariantValue(
NPVariant *variant); Parameters The function has the following parameters: <tt>variant</tt> The variant whose value is to be released. Returns Nothing. Description NPN_ReleaseVariantValue() releases the value in the given variant. This must always be called on result variants and such in this API, i.e. ...
...given variant. Syntax #include <npruntime.h> void NPN_ReleaseVariantValue(
NPVariant *variant); Parameters The function has the following parameters: <tt>variant</tt> The variant whose value is to be released. Returns Nothing. Description NPN_ReleaseVariantValue() releases the value in the given variant. This must always be called on result variants and such in this API, i.e. any
NPVariant whose value comes from a call that passes back an
NPVariant must be released using this function. Access to the value in an
NPVariant that has been released will result in undefined behavior. NPN_ReleaseVariantValue() will call NPN_ReleaseObject() on
NPVariants of type
NPVARIANTTYPE_OBJECT, and NPN_MemFree() on
NPVariants of type
NPVARIANTTYPE_STRING. ...
Getting the page URL in NPAPI plugin - Archive of obsolete content
of the HTML which embeds the plugin, i.e. which caused the plugin to load? There are at least 3 solutions (quoting newsgroup posts): Via window location From Robert Platt: // Get the Dom window object. NPN_GetValue( m_pNPInstance, NPNVWindowNPObject, &sWindowObj ); // Create a "location" identifier. NPIdentifier identifier = NPN_GetStringIdentifier( "location" ); // Declare a local variant value.
NPVariant variantValue; // Get the location property from the window object (which is another object). bool b1 = NPN_GetProperty( m_pNPInstance, sWindowObj, identifier, &variantValue ); // Get a pointer to the "location" object. NPObject *locationObj = variantValue.value.objectValue; // Create a "href" identifier. identifier = NPN_GetStringIdentifier( "href" ); // Get the location property from the locatio...
Index - Archive of obsolete content
NPString is a struct that holds a pointer to a sequence of 8-bit units (NPUTF8) making up a UTF-8 string, and the number of 8-bit units in the UTF-8 string. 3699 NPUTF8 NPAPI, Plugins NPUTF8 is a byte representing an 8-bit unit of a UTF-8 character. This is not the same thing as an entire UTF-8 character, which may be comprised of multiple NPUTF8 bytes. 3700
NPVariant NPAPI, Plugins
NPVariant is a struct that holds a value and the type of that value. The value is held in a union, and the type is one of types defined in the
NPVariantType enumeration. 3701
NPVariantType NPAPI, Plugins
NPVariantType is an enumeration that is used to identify the data type of an
NPVariant structure. 3702 NPWindow NPAPI, Plugins C...
Index of archived content - Archive of obsolete content
NPP_Print NPP_SetValue NPP_SetWindow NPP_StreamAsFile NPP_URLNotify NPP_Write NPP_WriteReady NPPrint NPPrintCallbackStruct NPRect NPRegion NPSavedData NPSetWindowCallbackStruct NPStream NPString NPUTF8
NPVariant NPVariantType NPWindow NP_GetMIMEDescription NP_GetValue NP_Initialize NP_Port NP_Shutdown Samples and Test Cases Shipping a plugin as a Toolkit bundle Supporting private browsing in plugins The First Install Problem Writing a plugin for Mac ...
NPAPI plugin reference - Archive of obsolete content
duced by the plug-in and consumed by the browser. NPString NPString is a struct that holds a pointer to a sequence of 8-bit units (NPUTF8) making up a UTF-8 string, and the number of 8-bit units in the UTF-8 string. NPUTF8 NPUTF8 is a byte representing an 8-bit unit of a UTF-8 character. This is not the same thing as an entire UTF-8 character, which may be comprised of multiple NPUTF8 bytes.
NPVariant NPVariant is a struct that holds a value and the type of that value. The value is held in a union, and the type is one of types defined in the
NPVariantType enumeration.
NPVariantType
NPVariantType is an enumeration that is used to identify the data type of an
NPVariant structure. NPWindow Contains information about the target into which the plug-in instance can draw. ...
Scripting plugins - Plugins
t = 15, NPNVPluginElementNPObject = 16 How to call plugin native methods The following HTML code will do the job: <embed type="application/plugin-mimetype"> <script> var embed = document.embeds[0]; embed.nativeMethod(); alert(embed.nativeProperty); embed.nativeProperty.anotherNativeMethod(); </script> The API extensions The API extensions are based on four new structs: NPString
NPVariant NPN_ReleaseVariantValue NPN_GetStringIdentifier NPN_GetStringIdentifiers NPN_GetIntIdentifier NPN_IdentifierIsString NPN_UTF8FromIdentifier NPN_IntFromIdentifier NPObject NPN_Construct (since Firefox 3.0b1) NPN_CreateObject NPN_RetainObject NPN_ReleaseObject NPN_Invoke NPN_InvokeDefault NPN_Enumerate (since Mozilla 1.9a1) NPN_Evaluate NP...
Gecko Plugin API Reference - Plugins
er agent field. NPN_Version Returns version information for the Plug-in API. NPN_Write Pushes data into a stream produced by the plug-in and consumed by the browser. ...