38 #include "nsISupports.idl"
39 #include "nsIPluginStreamListener.idl"
42 interface nsIOutputStream;
45 #include "nsplugindefs.h"
46 #include "nsStringGlue.h"
50 #define NPRUNTIME_JSCLASS_NAME "NPObject JS wrapper class"
53 [ptr] native JSContextPtr(JSContext);
54 [ptr] native JSObjectPtr(JSObject);
56 [uuid(67D606F4-1D6D-4FE2-A2D6-10BDA65788E1)]
97 void setWindow(in nsPluginWindowPtr aWindow);
133 void print(in nsPluginPrintPtr aPlatformPrint);
142 void getValue(in nsPluginInstanceVariable aVariable, in voidPtr aValue);
159 void handleEvent(in nsPluginEventPtr aEvent, out
boolean aHandled);
184 void getMIMEType([
const, shared] out
string aValue);
212 JSObjectPtr GetJSObject(in JSContextPtr cx);
214 readonly attribute AString formValue;
216 void pushPopupsEnabledState(in
boolean aEnabled);
217 void popPopupsEnabledState();
219 readonly attribute PRUint16 pluginAPIVersion;
221 void defineJavaProperties();
void initialize(in nsIPluginInstanceOwner aOwner, in string aMIMEType)
Initializes a newly created plugin instance.
void forceRedraw()
Corresponds to NPN_ForceRedraw.
void getMIMEType([const, shared] out string aValue)
Returns the MIME type of the plugin instance.
void invalidateOwner()
Drop our reference to our owner.
void invalidateRect(in nsPluginRectPtr aRect)
Corresponds to NPN_InvalidateRect.
void start()
Called to instruct the plugin instance to start.
void handleEvent(in nsPluginEventPtr aEvent, out boolean aHandled)
Handles an event.
void invalidateRegion(in nsPluginRegion aRegion)
Corresponds to NPN_InvalidateRegion.
void setWindow(in nsPluginWindowPtr aWindow)
Called when the window containing the plugin instance changes.
void print(in nsPluginPrintPtr aPlatformPrint)
Called to instruct the plugin instance to print itself to a printer.
void showStatus(in string aMessage)
This operation causes status information to be displayed on the window associated with the plugin ins...
readonly attribute JSContextPtr JSContext
Get the JavaScript context to this plugin instance.
void newStreamToPlugin(out nsIPluginStreamListener aListener)
Called to tell the plugin that the initial src/data stream is ready.
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 browse...
void stop()
Called to instruct the plugin instance to stop, thereby suspending its state.
void getValue(in nsPluginInstanceVariable aVariable, in voidPtr aValue)
Returns the value of a variable associated with the plugin instance.