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.
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsContentTreeOwner_h__
8 #define nsContentTreeOwner_h__
10 // Helper Classes
11 #include "nsCOMPtr.h"
12 #include "nsString.h"
14 // Interfaces Needed
15 #include "nsIBaseWindow.h"
16 #include "nsIDocShellTreeOwner.h"
17 #include "nsIInterfaceRequestor.h"
18 #include "nsIInterfaceRequestorUtils.h"
19 #include "nsIWebBrowserChrome3.h"
20 #include "nsIWindowProvider.h"
22 class nsXULWindow;
23 class nsSiteWindow;
25 class nsContentTreeOwner : public nsIDocShellTreeOwner,
26 public nsIBaseWindow,
27 public nsIInterfaceRequestor,
28 public nsIWebBrowserChrome3,
29 public nsIWindowProvider
30 {
31 friend class nsXULWindow;
32 friend class nsSiteWindow;
34 public:
35 NS_DECL_ISUPPORTS
37 NS_DECL_NSIBASEWINDOW
38 NS_DECL_NSIDOCSHELLTREEOWNER
39 NS_DECL_NSIINTERFACEREQUESTOR
40 NS_DECL_NSIWEBBROWSERCHROME
41 NS_DECL_NSIWEBBROWSERCHROME2
42 NS_DECL_NSIWEBBROWSERCHROME3
43 NS_DECL_NSIWINDOWPROVIDER
45 protected:
46 nsContentTreeOwner(bool fPrimary);
47 virtual ~nsContentTreeOwner();
49 void XULWindow(nsXULWindow* aXULWindow);
50 nsXULWindow* XULWindow();
52 protected:
53 nsXULWindow *mXULWindow;
54 nsSiteWindow *mSiteWindow;
55 bool mPrimary;
56 bool mContentTitleSetting;
57 nsString mWindowTitleModifier;
58 nsString mTitleSeparator;
59 nsString mTitlePreface;
60 nsString mTitleDefault;
61 };
63 #endif /* nsContentTreeOwner_h__ */