|
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/. */ |
|
6 |
|
7 #ifndef nsContentTreeOwner_h__ |
|
8 #define nsContentTreeOwner_h__ |
|
9 |
|
10 // Helper Classes |
|
11 #include "nsCOMPtr.h" |
|
12 #include "nsString.h" |
|
13 |
|
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" |
|
21 |
|
22 class nsXULWindow; |
|
23 class nsSiteWindow; |
|
24 |
|
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; |
|
33 |
|
34 public: |
|
35 NS_DECL_ISUPPORTS |
|
36 |
|
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 |
|
44 |
|
45 protected: |
|
46 nsContentTreeOwner(bool fPrimary); |
|
47 virtual ~nsContentTreeOwner(); |
|
48 |
|
49 void XULWindow(nsXULWindow* aXULWindow); |
|
50 nsXULWindow* XULWindow(); |
|
51 |
|
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 }; |
|
62 |
|
63 #endif /* nsContentTreeOwner_h__ */ |