added GetJSWindow()

git-svn-id: svn://10.0.0.236/trunk@24975 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 1999-03-24 05:46:23 +00:00
parent c0cc339fa7
commit 849bde491e
2 changed files with 18 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#include "nsISupports.h"
class nsIOutputStream;
struct JSObject;
#define NS_IPLUGININSTANCEPEER_IID \
{ /* 4b7cea20-019b-11d2-815b-006008119d7a */ \
@ -136,6 +137,14 @@ public:
NS_IMETHOD
SetWindowSize(PRUint32 width, PRUint32 height) = 0;
/**
* Get the JavaScript window object corresponding to this plugin instance.
*
* @param outJSWindow - the resulting JavaScript window object
* @result - NS_OK if this operation was successful
*/
NS_IMETHOD
GetJSWindow(JSObject* *outJSWindow) = 0;
};
////////////////////////////////////////////////////////////////////////////////

View File

@ -38,6 +38,7 @@
#include "nsISupports.h"
class nsIOutputStream;
struct JSObject;
#define NS_IPLUGININSTANCEPEER_IID \
{ /* 4b7cea20-019b-11d2-815b-006008119d7a */ \
@ -136,6 +137,14 @@ public:
NS_IMETHOD
SetWindowSize(PRUint32 width, PRUint32 height) = 0;
/**
* Get the JavaScript window object corresponding to this plugin instance.
*
* @param outJSWindow - the resulting JavaScript window object
* @result - NS_OK if this operation was successful
*/
NS_IMETHOD
GetJSWindow(JSObject* *outJSWindow) = 0;
};
////////////////////////////////////////////////////////////////////////////////