diff --git a/mozilla/modules/plugin/base/public/nsIPluginTagInfo.h b/mozilla/modules/plugin/base/public/nsIPluginTagInfo.h index b9ad32fcc0f..ac47412b9d3 100644 --- a/mozilla/modules/plugin/base/public/nsIPluginTagInfo.h +++ b/mozilla/modules/plugin/base/public/nsIPluginTagInfo.h @@ -81,19 +81,6 @@ public: */ NS_IMETHOD GetAttribute(const char* name, const char* *result) = 0; - - /** - * Returns the DOM element corresponding to the tag which references - * this plugin in the document. - * - * REMIND: do we need to expose as an nsISupports * to avoid - * introducing runtime dependencies on XPCOM? - * - * @param result - resulting DOM element - * @result - NS_OK if this operation was successful - */ - NS_IMETHOD - GetDOMElement(nsIDOMElement* *result) = 0; }; //////////////////////////////////////////////////////////////////////////////// diff --git a/mozilla/modules/plugin/base/public/nsIPluginTagInfo2.h b/mozilla/modules/plugin/base/public/nsIPluginTagInfo2.h index 60cfdbba8ea..cfd25d2d9ab 100644 --- a/mozilla/modules/plugin/base/public/nsIPluginTagInfo2.h +++ b/mozilla/modules/plugin/base/public/nsIPluginTagInfo2.h @@ -118,6 +118,18 @@ public: NS_IMETHOD GetUniqueID(PRUint32 *result) = 0; + /** + * Returns the DOM element corresponding to the tag which references + * this plugin in the document. + * + * REMIND: do we need to expose as an nsISupports * to avoid + * introducing runtime dependencies on XPCOM? + * + * @param result - resulting DOM element + * @result - NS_OK if this operation was successful + */ + NS_IMETHOD + GetDOMElement(nsIDOMElement* *result) = 0; }; //////////////////////////////////////////////////////////////////////////////// diff --git a/mozilla/modules/plugin/base/src/nsPluginInstancePeer.cpp b/mozilla/modules/plugin/base/src/nsPluginInstancePeer.cpp index 56c07d232a3..3971fef2af9 100644 --- a/mozilla/modules/plugin/base/src/nsPluginInstancePeer.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginInstancePeer.cpp @@ -371,10 +371,10 @@ NS_IMETHODIMP nsPluginInstancePeerImpl::GetDOMElement(nsIDOMElement* *result) return NS_ERROR_FAILURE; } - nsIPluginTagInfo *tinfo; + nsIPluginTagInfo2 *tinfo; nsresult rv; - rv = mOwner->QueryInterface(kIPluginTagInfoIID, (void **)&tinfo); + rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo); if (NS_OK == rv) { diff --git a/mozilla/modules/plugin/nglsrc/nsPluginInstancePeer.cpp b/mozilla/modules/plugin/nglsrc/nsPluginInstancePeer.cpp index 56c07d232a3..3971fef2af9 100644 --- a/mozilla/modules/plugin/nglsrc/nsPluginInstancePeer.cpp +++ b/mozilla/modules/plugin/nglsrc/nsPluginInstancePeer.cpp @@ -371,10 +371,10 @@ NS_IMETHODIMP nsPluginInstancePeerImpl::GetDOMElement(nsIDOMElement* *result) return NS_ERROR_FAILURE; } - nsIPluginTagInfo *tinfo; + nsIPluginTagInfo2 *tinfo; nsresult rv; - rv = mOwner->QueryInterface(kIPluginTagInfoIID, (void **)&tinfo); + rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo); if (NS_OK == rv) { diff --git a/mozilla/modules/plugin/public/nsIPluginTagInfo.h b/mozilla/modules/plugin/public/nsIPluginTagInfo.h index b9ad32fcc0f..ac47412b9d3 100644 --- a/mozilla/modules/plugin/public/nsIPluginTagInfo.h +++ b/mozilla/modules/plugin/public/nsIPluginTagInfo.h @@ -81,19 +81,6 @@ public: */ NS_IMETHOD GetAttribute(const char* name, const char* *result) = 0; - - /** - * Returns the DOM element corresponding to the tag which references - * this plugin in the document. - * - * REMIND: do we need to expose as an nsISupports * to avoid - * introducing runtime dependencies on XPCOM? - * - * @param result - resulting DOM element - * @result - NS_OK if this operation was successful - */ - NS_IMETHOD - GetDOMElement(nsIDOMElement* *result) = 0; }; //////////////////////////////////////////////////////////////////////////////// diff --git a/mozilla/modules/plugin/public/nsIPluginTagInfo2.h b/mozilla/modules/plugin/public/nsIPluginTagInfo2.h index 60cfdbba8ea..cfd25d2d9ab 100644 --- a/mozilla/modules/plugin/public/nsIPluginTagInfo2.h +++ b/mozilla/modules/plugin/public/nsIPluginTagInfo2.h @@ -118,6 +118,18 @@ public: NS_IMETHOD GetUniqueID(PRUint32 *result) = 0; + /** + * Returns the DOM element corresponding to the tag which references + * this plugin in the document. + * + * REMIND: do we need to expose as an nsISupports * to avoid + * introducing runtime dependencies on XPCOM? + * + * @param result - resulting DOM element + * @result - NS_OK if this operation was successful + */ + NS_IMETHOD + GetDOMElement(nsIDOMElement* *result) = 0; }; ////////////////////////////////////////////////////////////////////////////////