From 06ceab1335fb8306a7315f805b2b4d53d05c20d6 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Wed, 24 Mar 1999 05:46:23 +0000 Subject: [PATCH] added GetJSWindow() --- modules/plugin/base/public/nsIPluginInstancePeer.h | 9 +++++++++ modules/plugin/public/nsIPluginInstancePeer.h | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/modules/plugin/base/public/nsIPluginInstancePeer.h b/modules/plugin/base/public/nsIPluginInstancePeer.h index c977455c5a63..174e2500f758 100644 --- a/modules/plugin/base/public/nsIPluginInstancePeer.h +++ b/modules/plugin/base/public/nsIPluginInstancePeer.h @@ -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; }; //////////////////////////////////////////////////////////////////////////////// diff --git a/modules/plugin/public/nsIPluginInstancePeer.h b/modules/plugin/public/nsIPluginInstancePeer.h index c977455c5a63..174e2500f758 100644 --- a/modules/plugin/public/nsIPluginInstancePeer.h +++ b/modules/plugin/public/nsIPluginInstancePeer.h @@ -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; }; ////////////////////////////////////////////////////////////////////////////////