зеркало из https://github.com/mozilla/pjs.git
Add SetWebShell.
This commit is contained in:
Родитель
69554edf57
Коммит
4822c1ca3d
|
@ -25,6 +25,19 @@
|
|||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
|
||||
NS_BEGIN_EXTERN_C
|
||||
|
||||
nsresult
|
||||
NS_NewMsgStatusFeedback(const nsIID& iid, void **result)
|
||||
{
|
||||
nsMsgStatusFeedback *statusFeedback = new nsMsgStatusFeedback();
|
||||
if(!statusFeedback)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
return statusFeedback->QueryInterface(iid, result);
|
||||
}
|
||||
|
||||
NS_END_EXTERN_C
|
||||
|
||||
nsMsgStatusFeedback::nsMsgStatusFeedback()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
|
@ -193,7 +206,7 @@ nsMsgStatusFeedback::StopMeteors()
|
|||
}
|
||||
|
||||
|
||||
void nsMsgStatusFeedback::SetWebShell(nsIWebShell *shell, nsIDOMWindow *aWindow)
|
||||
NS_IMETHODIMP nsMsgStatusFeedback::SetWebShell(nsIWebShell *shell, nsIDOMWindow *aWindow)
|
||||
{
|
||||
if (aWindow)
|
||||
{
|
||||
|
@ -206,6 +219,7 @@ void nsMsgStatusFeedback::SetWebShell(nsIWebShell *shell, nsIDOMWindow *aWindow)
|
|||
webshell->GetRootWebShell(*getter_AddRefs(mWebShell));
|
||||
}
|
||||
mWindow = aWindow;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static int debugSetAttr = 0;
|
||||
|
|
|
@ -38,6 +38,7 @@ public:
|
|||
NS_IMETHOD StartMeteors();
|
||||
NS_IMETHOD StopMeteors();
|
||||
NS_IMETHOD ShowProgress(PRInt32 percent);
|
||||
NS_IMETHOD SetWebShell(nsIWebShell *shell, nsIDOMWindow *mWindow);
|
||||
|
||||
// nsIDocumntLoaderObserver
|
||||
NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aCommand);
|
||||
|
@ -48,7 +49,6 @@ public:
|
|||
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, nsresult aStatus);
|
||||
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader, nsIChannel* channel, const char *aContentType,const char *aCommand );
|
||||
|
||||
void SetWebShell(nsIWebShell *shell, nsIDOMWindow *mWindow);
|
||||
|
||||
nsresult setAttribute( nsIWebShell *shell,
|
||||
const char *id,
|
||||
|
@ -60,6 +60,13 @@ protected:
|
|||
PRBool m_meteorsSpinning;
|
||||
};
|
||||
|
||||
NS_BEGIN_EXTERN_C
|
||||
|
||||
nsresult
|
||||
NS_NewMsgStatusFeedback(const nsIID& iid, void **result);
|
||||
|
||||
NS_END_EXTERN_C
|
||||
|
||||
|
||||
#endif // _nsMsgStatusFeedback_h
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче