Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef nsContentTreeOwner_h__ |
michael@0 | 8 | #define nsContentTreeOwner_h__ |
michael@0 | 9 | |
michael@0 | 10 | // Helper Classes |
michael@0 | 11 | #include "nsCOMPtr.h" |
michael@0 | 12 | #include "nsString.h" |
michael@0 | 13 | |
michael@0 | 14 | // Interfaces Needed |
michael@0 | 15 | #include "nsIBaseWindow.h" |
michael@0 | 16 | #include "nsIDocShellTreeOwner.h" |
michael@0 | 17 | #include "nsIInterfaceRequestor.h" |
michael@0 | 18 | #include "nsIInterfaceRequestorUtils.h" |
michael@0 | 19 | #include "nsIWebBrowserChrome3.h" |
michael@0 | 20 | #include "nsIWindowProvider.h" |
michael@0 | 21 | |
michael@0 | 22 | class nsXULWindow; |
michael@0 | 23 | class nsSiteWindow; |
michael@0 | 24 | |
michael@0 | 25 | class nsContentTreeOwner : public nsIDocShellTreeOwner, |
michael@0 | 26 | public nsIBaseWindow, |
michael@0 | 27 | public nsIInterfaceRequestor, |
michael@0 | 28 | public nsIWebBrowserChrome3, |
michael@0 | 29 | public nsIWindowProvider |
michael@0 | 30 | { |
michael@0 | 31 | friend class nsXULWindow; |
michael@0 | 32 | friend class nsSiteWindow; |
michael@0 | 33 | |
michael@0 | 34 | public: |
michael@0 | 35 | NS_DECL_ISUPPORTS |
michael@0 | 36 | |
michael@0 | 37 | NS_DECL_NSIBASEWINDOW |
michael@0 | 38 | NS_DECL_NSIDOCSHELLTREEOWNER |
michael@0 | 39 | NS_DECL_NSIINTERFACEREQUESTOR |
michael@0 | 40 | NS_DECL_NSIWEBBROWSERCHROME |
michael@0 | 41 | NS_DECL_NSIWEBBROWSERCHROME2 |
michael@0 | 42 | NS_DECL_NSIWEBBROWSERCHROME3 |
michael@0 | 43 | NS_DECL_NSIWINDOWPROVIDER |
michael@0 | 44 | |
michael@0 | 45 | protected: |
michael@0 | 46 | nsContentTreeOwner(bool fPrimary); |
michael@0 | 47 | virtual ~nsContentTreeOwner(); |
michael@0 | 48 | |
michael@0 | 49 | void XULWindow(nsXULWindow* aXULWindow); |
michael@0 | 50 | nsXULWindow* XULWindow(); |
michael@0 | 51 | |
michael@0 | 52 | protected: |
michael@0 | 53 | nsXULWindow *mXULWindow; |
michael@0 | 54 | nsSiteWindow *mSiteWindow; |
michael@0 | 55 | bool mPrimary; |
michael@0 | 56 | bool mContentTitleSetting; |
michael@0 | 57 | nsString mWindowTitleModifier; |
michael@0 | 58 | nsString mTitleSeparator; |
michael@0 | 59 | nsString mTitlePreface; |
michael@0 | 60 | nsString mTitleDefault; |
michael@0 | 61 | }; |
michael@0 | 62 | |
michael@0 | 63 | #endif /* nsContentTreeOwner_h__ */ |