michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsChromeTreeOwner_h__ michael@0: #define nsChromeTreeOwner_h__ michael@0: michael@0: // Helper Classes michael@0: #include "nsCOMPtr.h" michael@0: michael@0: // Interfaces Needed michael@0: #include "nsIBaseWindow.h" michael@0: #include "nsIDocShellTreeOwner.h" michael@0: #include "nsIInterfaceRequestor.h" michael@0: #include "nsIInterfaceRequestorUtils.h" michael@0: #include "nsIWebProgressListener.h" michael@0: #include "nsWeakReference.h" michael@0: michael@0: class nsXULWindow; michael@0: michael@0: class nsChromeTreeOwner : public nsIDocShellTreeOwner, michael@0: public nsIBaseWindow, michael@0: public nsIInterfaceRequestor, michael@0: public nsIWebProgressListener, michael@0: public nsSupportsWeakReference michael@0: { michael@0: friend class nsXULWindow; michael@0: michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_DECL_NSIINTERFACEREQUESTOR michael@0: NS_DECL_NSIBASEWINDOW michael@0: NS_DECL_NSIDOCSHELLTREEOWNER michael@0: NS_DECL_NSIWEBPROGRESSLISTENER michael@0: michael@0: static nsresult InitGlobals(); michael@0: static void FreeGlobals(); michael@0: michael@0: protected: michael@0: nsChromeTreeOwner(); michael@0: virtual ~nsChromeTreeOwner(); michael@0: michael@0: void XULWindow(nsXULWindow* aXULWindow); michael@0: nsXULWindow* XULWindow(); michael@0: michael@0: protected: michael@0: nsXULWindow* mXULWindow; michael@0: }; michael@0: michael@0: #endif /* nsChromeTreeOwner_h__ */