michael@0: /* -*- Mode: IDL; 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 nsContentTreeOwner_h__ michael@0: #define nsContentTreeOwner_h__ michael@0: michael@0: // Helper Classes michael@0: #include "nsCOMPtr.h" michael@0: #include "nsString.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 "nsIWebBrowserChrome3.h" michael@0: #include "nsIWindowProvider.h" michael@0: michael@0: class nsXULWindow; michael@0: class nsSiteWindow; michael@0: michael@0: class nsContentTreeOwner : public nsIDocShellTreeOwner, michael@0: public nsIBaseWindow, michael@0: public nsIInterfaceRequestor, michael@0: public nsIWebBrowserChrome3, michael@0: public nsIWindowProvider michael@0: { michael@0: friend class nsXULWindow; michael@0: friend class nsSiteWindow; michael@0: michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_DECL_NSIBASEWINDOW michael@0: NS_DECL_NSIDOCSHELLTREEOWNER michael@0: NS_DECL_NSIINTERFACEREQUESTOR michael@0: NS_DECL_NSIWEBBROWSERCHROME michael@0: NS_DECL_NSIWEBBROWSERCHROME2 michael@0: NS_DECL_NSIWEBBROWSERCHROME3 michael@0: NS_DECL_NSIWINDOWPROVIDER michael@0: michael@0: protected: michael@0: nsContentTreeOwner(bool fPrimary); michael@0: virtual ~nsContentTreeOwner(); michael@0: michael@0: void XULWindow(nsXULWindow* aXULWindow); michael@0: nsXULWindow* XULWindow(); michael@0: michael@0: protected: michael@0: nsXULWindow *mXULWindow; michael@0: nsSiteWindow *mSiteWindow; michael@0: bool mPrimary; michael@0: bool mContentTitleSetting; michael@0: nsString mWindowTitleModifier; michael@0: nsString mTitleSeparator; michael@0: nsString mTitlePreface; michael@0: nsString mTitleDefault; michael@0: }; michael@0: michael@0: #endif /* nsContentTreeOwner_h__ */