1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 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__
15 #include "nsIBaseWindow.h"
16 #include "nsIDocShellTreeOwner.h"
17 #include "nsIInterfaceRequestor.h"
18 #include "nsIInterfaceRequestorUtils.h"
19 #include "nsIWebBrowserChrome.h"
20 #include "nsIWindowProvider.h"
27 class nsContentTreeOwner final
: public nsIDocShellTreeOwner
,
29 public nsIInterfaceRequestor
,
30 public nsIWebBrowserChrome
,
31 public nsIWindowProvider
{
32 friend class mozilla::AppWindow
;
33 friend class nsSiteWindow
;
39 NS_DECL_NSIDOCSHELLTREEOWNER
40 NS_DECL_NSIINTERFACEREQUESTOR
41 NS_DECL_NSIWEBBROWSERCHROME
42 NS_DECL_NSIWINDOWPROVIDER
45 explicit nsContentTreeOwner(bool fPrimary
);
46 virtual ~nsContentTreeOwner();
48 void AppWindow(mozilla::AppWindow
* aAppWindow
);
49 mozilla::AppWindow
* AppWindow();
52 mozilla::AppWindow
* mAppWindow
;
53 nsSiteWindow
* mSiteWindow
;
57 #endif /* nsContentTreeOwner_h__ */