FreeWRL/FreeX3D
3.0.0
|
Public Member Functions | |
void | initialize (in nsIPluginInstanceOwner aOwner, in string aMIMEType) |
Initializes a newly created plugin instance. More... | |
void | start () |
Called to instruct the plugin instance to start. More... | |
void | stop () |
Called to instruct the plugin instance to stop, thereby suspending its state. More... | |
void | setWindow (in nsPluginWindowPtr aWindow) |
Called when the window containing the plugin instance changes. More... | |
void | newStreamToPlugin (out nsIPluginStreamListener aListener) |
Called to tell the plugin that the initial src/data stream is ready. More... | |
void | newStreamFromPlugin (in string aType, in string aTarget, out nsIOutputStream aResult) |
This operation is called by the plugin instance when it wishes to send a stream of data to the browser. More... | |
void | print (in nsPluginPrintPtr aPlatformPrint) |
Called to instruct the plugin instance to print itself to a printer. More... | |
void | getValue (in nsPluginInstanceVariable aVariable, in voidPtr aValue) |
Returns the value of a variable associated with the plugin instance. More... | |
void | handleEvent (in nsPluginEventPtr aEvent, out boolean aHandled) |
Handles an event. More... | |
void | invalidateRect (in nsPluginRectPtr aRect) |
Corresponds to NPN_InvalidateRect. | |
void | invalidateRegion (in nsPluginRegion aRegion) |
Corresponds to NPN_InvalidateRegion. | |
void | forceRedraw () |
Corresponds to NPN_ForceRedraw. | |
void | getMIMEType ([const, shared] out string aValue) |
Returns the MIME type of the plugin instance. More... | |
void | showStatus (in string aMessage) |
This operation causes status information to be displayed on the window associated with the plugin instance. More... | |
void | invalidateOwner () |
Drop our reference to our owner. | |
JSObjectPtr | GetJSObject (in JSContextPtr cx) |
void | pushPopupsEnabledState (in boolean aEnabled) |
void | popPopupsEnabledState () |
void | defineJavaProperties () |
Data Fields | |
readonly attribute JSContextPtr | JSContext |
Get the JavaScript context to this plugin instance. More... | |
attribute nsIPluginInstanceOwner | owner |
readonly attribute AString | formValue |
readonly attribute PRUint16 | pluginAPIVersion |
Definition at line 57 of file nsIPluginInstance.idl.
void nsIPluginInstance::getMIMEType | ( | [const, shared] out string | aValue | ) |
Returns the MIME type of the plugin instance.
(Corresponds to NPP_New's MIMEType argument.)
aMIMEType | - resulting MIME type |
void nsIPluginInstance::getValue | ( | in nsPluginInstanceVariable | aVariable, |
in voidPtr | aValue | ||
) |
Returns the value of a variable associated with the plugin instance.
aVariable | - the plugin instance variable to get |
aValue | - the address of where to store the resulting value |
void nsIPluginInstance::handleEvent | ( | in nsPluginEventPtr | aEvent, |
out boolean | aHandled | ||
) |
Handles an event.
Note that for Unix and Mac the nsPluginEvent structure is different from the old NPEvent structure – it's no longer the native event record, but is instead a struct. This was done for future extensibility, and so that the Mac could receive the window argument too. For Windows and OS2, it's always been a struct, so there's no change for them.
(Corresponds to NPP_HandleEvent.)
aEvent | - the event to be handled |
aHandled | - set to PR_TRUE if event was handled |
void nsIPluginInstance::initialize | ( | in nsIPluginInstanceOwner | aOwner, |
in string | aMIMEType | ||
) |
Initializes a newly created plugin instance.
aOwner | - the plugin instance owner |
aMime | - the mime type for the instance |
void nsIPluginInstance::newStreamFromPlugin | ( | in string | aType, |
in string | aTarget, | ||
out nsIOutputStream | aResult | ||
) |
This operation is called by the plugin instance when it wishes to send a stream of data to the browser.
It constructs a new output stream to which the plugin may send the data. When complete, the Close and Release methods should be called on the output stream.
(Corresponds to NPN_NewStream.)
aType | - MIME type of the stream to create |
aTarget | - the target window name to receive the data |
aResult | - the resulting output stream |
void nsIPluginInstance::newStreamToPlugin | ( | out nsIPluginStreamListener | aListener | ) |
Called to tell the plugin that the initial src/data stream is ready.
Expects the plugin to return a nsIPluginStreamListener.
(Corresponds to NPP_NewStream.)
aListener | - listener the browser will use to give the plugin the data |
void nsIPluginInstance::print | ( | in nsPluginPrintPtr | aPlatformPrint | ) |
Called to instruct the plugin instance to print itself to a printer.
(Corresponds to NPP_Print.)
aPlatformPrint | - platform-specific printing information |
void nsIPluginInstance::setWindow | ( | in nsPluginWindowPtr | aWindow | ) |
Called when the window containing the plugin instance changes.
(Corresponds to NPP_SetWindow.)
aWindow | - the plugin window structure |
void nsIPluginInstance::showStatus | ( | in string | aMessage | ) |
This operation causes status information to be displayed on the window associated with the plugin instance.
(Corresponds to NPN_Status.)
aMessage | - the status message to display |
void nsIPluginInstance::start | ( | ) |
Called to instruct the plugin instance to start.
This will be called after the plugin is first created and initialized, and may be called after the plugin is stopped (via the Stop method) if the plugin instance is returned to in the browser window's history.
void nsIPluginInstance::stop | ( | ) |
Called to instruct the plugin instance to stop, thereby suspending its state.
This method will be called whenever the browser window goes on to display another page and the page containing the plugin goes into the window's history list.
readonly attribute JSContextPtr nsIPluginInstance::JSContext |
Get the JavaScript context to this plugin instance.
aJSContext | - the resulting JavaScript context |
Definition at line 192 of file nsIPluginInstance.idl.