зеркало из https://github.com/mozilla/pjs.git
implementing nsIPluginInstancePeer2.
This commit is contained in:
Родитель
215e3a894b
Коммит
a0f2326d8d
|
@ -62,7 +62,6 @@ nsPluginInstancePeerImpl :: ~nsPluginInstancePeerImpl()
|
|||
|
||||
static NS_DEFINE_IID(kIPluginTagInfoIID, NS_IPLUGINTAGINFO_IID);
|
||||
static NS_DEFINE_IID(kIPluginTagInfo2IID, NS_IPLUGINTAGINFO2_IID);
|
||||
static NS_DEFINE_IID(kIPluginInstancePeerIID, NS_IPLUGININSTANCEPEER_IID);
|
||||
static NS_DEFINE_IID(kIJVMPluginTagInfoIID, NS_IJVMPLUGINTAGINFO_IID);
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
|
@ -74,9 +73,9 @@ nsresult nsPluginInstancePeerImpl :: QueryInterface(const nsIID& iid, void** ins
|
|||
if (instance == NULL)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (iid.Equals(kIPluginInstancePeerIID))
|
||||
if (iid.Equals(nsIPluginInstancePeer::GetIID()) || iid.Equals(nsIPluginInstancePeer2::GetIID()))
|
||||
{
|
||||
*instance = (void *)(nsIPluginInstancePeer *)this;
|
||||
*instance = (void *)(nsIPluginInstancePeer2*)this;
|
||||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
#ifndef nsPluginInstancePeer_h___
|
||||
#define nsPluginInstancePeer_h___
|
||||
|
||||
#include "nsIPluginInstancePeer.h"
|
||||
#include "nsIPluginInstancePeer2.h"
|
||||
#include "nsIWindowlessPlugInstPeer.h"
|
||||
#include "nsIPluginTagInfo.h"
|
||||
#include "nsIPluginInstanceOwner.h"
|
||||
#include "nsIJVMPluginTagInfo.h"
|
||||
|
||||
|
||||
class nsPluginInstancePeerImpl : public nsIPluginInstancePeer,
|
||||
class nsPluginInstancePeerImpl : public nsIPluginInstancePeer2,
|
||||
public nsIWindowlessPluginInstancePeer,
|
||||
public nsIPluginTagInfo2,
|
||||
public nsIJVMPluginTagInfo
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
//nsIPluginInstancePeer interface
|
||||
// nsIPluginInstancePeer interface
|
||||
|
||||
NS_IMETHOD
|
||||
GetValue(nsPluginInstancePeerVariable variable, void *value);
|
||||
|
@ -58,6 +58,8 @@ public:
|
|||
NS_IMETHOD
|
||||
SetWindowSize(PRUint32 width, PRUint32 height);
|
||||
|
||||
// nsIPluginInstancePeer2 interface
|
||||
|
||||
NS_IMETHOD
|
||||
GetJSWindow(JSObject* *outJSWindow);
|
||||
|
||||
|
|
|
@ -62,7 +62,6 @@ nsPluginInstancePeerImpl :: ~nsPluginInstancePeerImpl()
|
|||
|
||||
static NS_DEFINE_IID(kIPluginTagInfoIID, NS_IPLUGINTAGINFO_IID);
|
||||
static NS_DEFINE_IID(kIPluginTagInfo2IID, NS_IPLUGINTAGINFO2_IID);
|
||||
static NS_DEFINE_IID(kIPluginInstancePeerIID, NS_IPLUGININSTANCEPEER_IID);
|
||||
static NS_DEFINE_IID(kIJVMPluginTagInfoIID, NS_IJVMPLUGINTAGINFO_IID);
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
|
@ -74,9 +73,9 @@ nsresult nsPluginInstancePeerImpl :: QueryInterface(const nsIID& iid, void** ins
|
|||
if (instance == NULL)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (iid.Equals(kIPluginInstancePeerIID))
|
||||
if (iid.Equals(nsIPluginInstancePeer::GetIID()) || iid.Equals(nsIPluginInstancePeer2::GetIID()))
|
||||
{
|
||||
*instance = (void *)(nsIPluginInstancePeer *)this;
|
||||
*instance = (void *)(nsIPluginInstancePeer2*)this;
|
||||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
#ifndef nsPluginInstancePeer_h___
|
||||
#define nsPluginInstancePeer_h___
|
||||
|
||||
#include "nsIPluginInstancePeer.h"
|
||||
#include "nsIPluginInstancePeer2.h"
|
||||
#include "nsIWindowlessPlugInstPeer.h"
|
||||
#include "nsIPluginTagInfo.h"
|
||||
#include "nsIPluginInstanceOwner.h"
|
||||
#include "nsIJVMPluginTagInfo.h"
|
||||
|
||||
|
||||
class nsPluginInstancePeerImpl : public nsIPluginInstancePeer,
|
||||
class nsPluginInstancePeerImpl : public nsIPluginInstancePeer2,
|
||||
public nsIWindowlessPluginInstancePeer,
|
||||
public nsIPluginTagInfo2,
|
||||
public nsIJVMPluginTagInfo
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
//nsIPluginInstancePeer interface
|
||||
// nsIPluginInstancePeer interface
|
||||
|
||||
NS_IMETHOD
|
||||
GetValue(nsPluginInstancePeerVariable variable, void *value);
|
||||
|
@ -58,6 +58,8 @@ public:
|
|||
NS_IMETHOD
|
||||
SetWindowSize(PRUint32 width, PRUint32 height);
|
||||
|
||||
// nsIPluginInstancePeer2 interface
|
||||
|
||||
NS_IMETHOD
|
||||
GetJSWindow(JSObject* *outJSWindow);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче