2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsContentTreeOwner_h__
|
|
|
|
#define nsContentTreeOwner_h__
|
|
|
|
|
|
|
|
// Helper Classes
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
|
|
|
|
// Interfaces Needed
|
|
|
|
#include "nsIBaseWindow.h"
|
|
|
|
#include "nsIDocShellTreeOwner.h"
|
|
|
|
#include "nsIInterfaceRequestor.h"
|
|
|
|
#include "nsIInterfaceRequestorUtils.h"
|
2010-10-28 15:00:31 -07:00
|
|
|
#include "nsIWebBrowserChrome3.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsIWindowProvider.h"
|
|
|
|
|
|
|
|
class nsXULWindow;
|
2012-06-10 16:44:50 -07:00
|
|
|
class nsSiteWindow;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-08-05 10:33:55 -07:00
|
|
|
class nsContentTreeOwner MOZ_FINAL : public nsIDocShellTreeOwner,
|
|
|
|
public nsIBaseWindow,
|
|
|
|
public nsIInterfaceRequestor,
|
|
|
|
public nsIWebBrowserChrome3,
|
|
|
|
public nsIWindowProvider
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
friend class nsXULWindow;
|
2012-06-10 16:44:50 -07:00
|
|
|
friend class nsSiteWindow;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
NS_DECL_NSIBASEWINDOW
|
|
|
|
NS_DECL_NSIDOCSHELLTREEOWNER
|
|
|
|
NS_DECL_NSIINTERFACEREQUESTOR
|
|
|
|
NS_DECL_NSIWEBBROWSERCHROME
|
|
|
|
NS_DECL_NSIWEBBROWSERCHROME2
|
2010-10-28 15:00:31 -07:00
|
|
|
NS_DECL_NSIWEBBROWSERCHROME3
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_DECL_NSIWINDOWPROVIDER
|
|
|
|
|
|
|
|
protected:
|
2014-09-02 15:24:24 -07:00
|
|
|
explicit nsContentTreeOwner(bool fPrimary);
|
2007-03-22 10:30:00 -07:00
|
|
|
virtual ~nsContentTreeOwner();
|
|
|
|
|
|
|
|
void XULWindow(nsXULWindow* aXULWindow);
|
|
|
|
nsXULWindow* XULWindow();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsXULWindow *mXULWindow;
|
2012-06-10 16:44:50 -07:00
|
|
|
nsSiteWindow *mSiteWindow;
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mPrimary;
|
|
|
|
bool mContentTitleSetting;
|
2007-03-22 10:30:00 -07:00
|
|
|
nsString mWindowTitleModifier;
|
|
|
|
nsString mTitleSeparator;
|
|
|
|
nsString mTitlePreface;
|
|
|
|
nsString mTitleDefault;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsContentTreeOwner_h__ */
|