2000-01-22 06:15:41 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-01-22 06:15:41 +03:00
|
|
|
|
|
|
|
#ifndef nsContentTreeOwner_h__
|
|
|
|
#define nsContentTreeOwner_h__
|
|
|
|
|
2000-02-08 16:40:10 +03:00
|
|
|
// Helper Classes
|
2000-01-22 06:15:41 +03:00
|
|
|
#include "nsCOMPtr.h"
|
2000-02-14 09:15:35 +03:00
|
|
|
#include "nsString.h"
|
2000-02-08 16:40:10 +03:00
|
|
|
|
|
|
|
// Interfaces Needed
|
2000-01-22 06:15:41 +03:00
|
|
|
#include "nsIBaseWindow.h"
|
2000-02-08 16:40:10 +03:00
|
|
|
#include "nsIDocShellTreeOwner.h"
|
|
|
|
#include "nsIInterfaceRequestor.h"
|
2001-09-06 01:28:38 +04:00
|
|
|
#include "nsIInterfaceRequestorUtils.h"
|
2021-04-06 21:52:47 +03:00
|
|
|
#include "nsIWebBrowserChrome.h"
|
2006-02-07 23:46:39 +03:00
|
|
|
#include "nsIWindowProvider.h"
|
2000-01-22 06:15:41 +03:00
|
|
|
|
2019-11-05 20:56:28 +03:00
|
|
|
namespace mozilla {
|
|
|
|
class AppWindow;
|
|
|
|
}
|
2012-06-11 03:44:50 +04:00
|
|
|
class nsSiteWindow;
|
2000-01-22 06:15:41 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsContentTreeOwner final : public nsIDocShellTreeOwner,
|
2015-03-27 21:52:19 +03:00
|
|
|
public nsIBaseWindow,
|
|
|
|
public nsIInterfaceRequestor,
|
2021-04-06 21:52:47 +03:00
|
|
|
public nsIWebBrowserChrome,
|
2015-03-27 21:52:19 +03:00
|
|
|
public nsIWindowProvider {
|
2019-11-05 20:56:28 +03:00
|
|
|
friend class mozilla::AppWindow;
|
2012-06-11 03:44:50 +04:00
|
|
|
friend class nsSiteWindow;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2000-01-22 06:15:41 +03:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2000-01-22 06:15:41 +03:00
|
|
|
NS_DECL_NSIBASEWINDOW
|
|
|
|
NS_DECL_NSIDOCSHELLTREEOWNER
|
2000-02-08 16:40:10 +03:00
|
|
|
NS_DECL_NSIINTERFACEREQUESTOR
|
|
|
|
NS_DECL_NSIWEBBROWSERCHROME
|
2006-02-07 23:46:39 +03:00
|
|
|
NS_DECL_NSIWINDOWPROVIDER
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2000-01-22 06:15:41 +03:00
|
|
|
protected:
|
2014-09-03 02:24:24 +04:00
|
|
|
explicit nsContentTreeOwner(bool fPrimary);
|
2000-01-27 07:56:21 +03:00
|
|
|
virtual ~nsContentTreeOwner();
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2019-11-05 20:56:28 +03:00
|
|
|
void AppWindow(mozilla::AppWindow* aAppWindow);
|
|
|
|
mozilla::AppWindow* AppWindow();
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2000-01-22 06:15:41 +03:00
|
|
|
protected:
|
2019-11-05 20:56:28 +03:00
|
|
|
mozilla::AppWindow* mAppWindow;
|
2012-06-11 03:44:50 +04:00
|
|
|
nsSiteWindow* mSiteWindow;
|
2011-09-29 10:19:26 +04:00
|
|
|
bool mPrimary;
|
2000-01-22 06:15:41 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsContentTreeOwner_h__ */
|