Added the method that will give me the new popup doc.

This commit is contained in:
hyatt%netscape.com 1999-05-16 08:05:32 +00:00
Родитель c575f00e29
Коммит eac829cd24
3 изменённых файлов: 26 добавлений и 2 удалений

Просмотреть файл

@ -614,6 +614,7 @@ public:
// nsIXULParentDocument interface
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer);
NS_IMETHOD GetCommand(nsString& aCommand);
NS_IMETHOD CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult);
// nsIXULChildDocument Interface
NS_IMETHOD SetFragmentRoot(nsIRDFResource* aFragmentRoot);
@ -2873,6 +2874,15 @@ XULDocumentImpl::GetCommand(nsString& aCommand)
return NS_OK;
}
NS_IMETHODIMP
XULDocumentImpl::CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult)
{
*aResult = this;
NS_ADDREF(*aResult);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// nsIXULChildDocument interface
NS_IMETHODIMP

Просмотреть файл

@ -31,8 +31,12 @@ class nsIXULParentDocument: public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IXULPARENTDOCUMENT_IID; return iid; }
// Used for XUL fragment child documents
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer) = 0;
NS_IMETHOD GetCommand(nsString& aCommand) = 0;
// Used for XUL popup child documents
NS_IMETHOD CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult) = 0;
};
#endif // nsIXULParentDocument_h__

Просмотреть файл

@ -614,6 +614,7 @@ public:
// nsIXULParentDocument interface
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer);
NS_IMETHOD GetCommand(nsString& aCommand);
NS_IMETHOD CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult);
// nsIXULChildDocument Interface
NS_IMETHOD SetFragmentRoot(nsIRDFResource* aFragmentRoot);
@ -2873,6 +2874,15 @@ XULDocumentImpl::GetCommand(nsString& aCommand)
return NS_OK;
}
NS_IMETHODIMP
XULDocumentImpl::CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult)
{
*aResult = this;
NS_ADDREF(*aResult);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// nsIXULChildDocument interface
NS_IMETHODIMP