зеркало из https://github.com/mozilla/pjs.git
Added the method that will give me the new popup doc.
This commit is contained in:
Родитель
c575f00e29
Коммит
eac829cd24
|
@ -614,6 +614,7 @@ public:
|
||||||
// nsIXULParentDocument interface
|
// nsIXULParentDocument interface
|
||||||
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer);
|
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer);
|
||||||
NS_IMETHOD GetCommand(nsString& aCommand);
|
NS_IMETHOD GetCommand(nsString& aCommand);
|
||||||
|
NS_IMETHOD CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult);
|
||||||
|
|
||||||
// nsIXULChildDocument Interface
|
// nsIXULChildDocument Interface
|
||||||
NS_IMETHOD SetFragmentRoot(nsIRDFResource* aFragmentRoot);
|
NS_IMETHOD SetFragmentRoot(nsIRDFResource* aFragmentRoot);
|
||||||
|
@ -749,7 +750,7 @@ protected:
|
||||||
nsString mCommand;
|
nsString mCommand;
|
||||||
nsIRDFResource* mFragmentRoot; // [OWNER]
|
nsIRDFResource* mFragmentRoot; // [OWNER]
|
||||||
nsVoidArray mSubDocuments; // [OWNER] of subelements
|
nsVoidArray mSubDocuments; // [OWNER] of subelements
|
||||||
nsIDOMElement* mPopup; // [OWNER] of this popup element in the doc
|
nsIDOMElement* mPopup; // [OWNER] of this popup element in the doc
|
||||||
};
|
};
|
||||||
|
|
||||||
PRInt32 XULDocumentImpl::gRefCnt = 0;
|
PRInt32 XULDocumentImpl::gRefCnt = 0;
|
||||||
|
@ -2873,6 +2874,15 @@ XULDocumentImpl::GetCommand(nsString& aCommand)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
XULDocumentImpl::CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult)
|
||||||
|
{
|
||||||
|
*aResult = this;
|
||||||
|
NS_ADDREF(*aResult);
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// nsIXULChildDocument interface
|
// nsIXULChildDocument interface
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
|
@ -31,8 +31,12 @@ class nsIXULParentDocument: public nsISupports {
|
||||||
public:
|
public:
|
||||||
static const nsIID& GetIID() { static nsIID iid = NS_IXULPARENTDOCUMENT_IID; return iid; }
|
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 GetContentViewerContainer(nsIContentViewerContainer** aContainer) = 0;
|
||||||
NS_IMETHOD GetCommand(nsString& aCommand) = 0;
|
NS_IMETHOD GetCommand(nsString& aCommand) = 0;
|
||||||
|
|
||||||
|
// Used for XUL popup child documents
|
||||||
|
NS_IMETHOD CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // nsIXULParentDocument_h__
|
#endif // nsIXULParentDocument_h__
|
||||||
|
|
|
@ -614,6 +614,7 @@ public:
|
||||||
// nsIXULParentDocument interface
|
// nsIXULParentDocument interface
|
||||||
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer);
|
NS_IMETHOD GetContentViewerContainer(nsIContentViewerContainer** aContainer);
|
||||||
NS_IMETHOD GetCommand(nsString& aCommand);
|
NS_IMETHOD GetCommand(nsString& aCommand);
|
||||||
|
NS_IMETHOD CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult);
|
||||||
|
|
||||||
// nsIXULChildDocument Interface
|
// nsIXULChildDocument Interface
|
||||||
NS_IMETHOD SetFragmentRoot(nsIRDFResource* aFragmentRoot);
|
NS_IMETHOD SetFragmentRoot(nsIRDFResource* aFragmentRoot);
|
||||||
|
@ -749,7 +750,7 @@ protected:
|
||||||
nsString mCommand;
|
nsString mCommand;
|
||||||
nsIRDFResource* mFragmentRoot; // [OWNER]
|
nsIRDFResource* mFragmentRoot; // [OWNER]
|
||||||
nsVoidArray mSubDocuments; // [OWNER] of subelements
|
nsVoidArray mSubDocuments; // [OWNER] of subelements
|
||||||
nsIDOMElement* mPopup; // [OWNER] of this popup element in the doc
|
nsIDOMElement* mPopup; // [OWNER] of this popup element in the doc
|
||||||
};
|
};
|
||||||
|
|
||||||
PRInt32 XULDocumentImpl::gRefCnt = 0;
|
PRInt32 XULDocumentImpl::gRefCnt = 0;
|
||||||
|
@ -2873,6 +2874,15 @@ XULDocumentImpl::GetCommand(nsString& aCommand)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
XULDocumentImpl::CreatePopupDocument(nsIDOMElement* aPopupElement, nsIDocument** aResult)
|
||||||
|
{
|
||||||
|
*aResult = this;
|
||||||
|
NS_ADDREF(*aResult);
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// nsIXULChildDocument interface
|
// nsIXULChildDocument interface
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче