зеркало из https://github.com/mozilla/pjs.git
support nsIEmbeddingSiteWindow. bug 57841 r=hyatt,saari
This commit is contained in:
Родитель
3b9f6d3cf2
Коммит
da4c666d93
|
@ -26,6 +26,7 @@
|
|||
|
||||
// Helper Classes
|
||||
#include "nsString.h"
|
||||
#include "nsIEmbeddingSiteWindow.h"
|
||||
#include "nsIEmbeddingSiteWindow2.h"
|
||||
#include "nsIGenericFactory.h"
|
||||
#include "nsIServiceManager.h"
|
||||
|
@ -83,6 +84,8 @@ NS_IMETHODIMP nsChromeTreeOwner::GetInterface(const nsIID& aIID, void** aSink)
|
|||
return mXULWindow->GetInterface(aIID, aSink);
|
||||
if(aIID.Equals(NS_GET_IID(nsIWebBrowserChrome)))
|
||||
return mXULWindow->GetInterface(aIID, aSink);
|
||||
if (aIID.Equals(NS_GET_IID(nsIEmbeddingSiteWindow)))
|
||||
return mXULWindow->GetInterface(aIID, aSink);
|
||||
if (aIID.Equals(NS_GET_IID(nsIEmbeddingSiteWindow2)))
|
||||
return mXULWindow->GetInterface(aIID, aSink);
|
||||
if (aIID.Equals(NS_GET_IID(nsIXULWindow)))
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "nsIDOMWindowInternal.h"
|
||||
#include "nsIDOMScreen.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIEmbeddingSiteWindow.h"
|
||||
#include "nsIEmbeddingSiteWindow2.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
|
@ -152,6 +153,10 @@ NS_IMETHODIMP nsXULWindow::GetInterface(const nsIID& aIID, void** aSink)
|
|||
NS_SUCCEEDED(mContentTreeOwner->QueryInterface(aIID, aSink)))
|
||||
return NS_OK;
|
||||
|
||||
if (aIID.Equals(NS_GET_IID(nsIEmbeddingSiteWindow)) &&
|
||||
NS_SUCCEEDED(EnsureContentTreeOwner()) &&
|
||||
NS_SUCCEEDED(mContentTreeOwner->QueryInterface(aIID, aSink)))
|
||||
return NS_OK;
|
||||
if (aIID.Equals(NS_GET_IID(nsIEmbeddingSiteWindow2)) &&
|
||||
NS_SUCCEEDED(EnsureContentTreeOwner()) &&
|
||||
NS_SUCCEEDED(mContentTreeOwner->QueryInterface(aIID, aSink)))
|
||||
|
|
Загрузка…
Ссылка в новой задаче