xpfe/appshell/src/nsContentTreeOwner.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpfe/appshell/src/nsContentTreeOwner.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsContentTreeOwner_h__
    1.11 +#define nsContentTreeOwner_h__
    1.12 +
    1.13 +// Helper Classes
    1.14 +#include "nsCOMPtr.h"
    1.15 +#include "nsString.h"
    1.16 +
    1.17 +// Interfaces Needed
    1.18 +#include "nsIBaseWindow.h"
    1.19 +#include "nsIDocShellTreeOwner.h"
    1.20 +#include "nsIInterfaceRequestor.h"
    1.21 +#include "nsIInterfaceRequestorUtils.h"
    1.22 +#include "nsIWebBrowserChrome3.h"
    1.23 +#include "nsIWindowProvider.h"
    1.24 +
    1.25 +class nsXULWindow;
    1.26 +class nsSiteWindow;
    1.27 +
    1.28 +class nsContentTreeOwner : public nsIDocShellTreeOwner,
    1.29 +                           public nsIBaseWindow,
    1.30 +                           public nsIInterfaceRequestor,
    1.31 +                           public nsIWebBrowserChrome3,
    1.32 +                           public nsIWindowProvider
    1.33 +{
    1.34 +friend class nsXULWindow;
    1.35 +friend class nsSiteWindow;
    1.36 +
    1.37 +public:
    1.38 +   NS_DECL_ISUPPORTS
    1.39 +
    1.40 +   NS_DECL_NSIBASEWINDOW
    1.41 +   NS_DECL_NSIDOCSHELLTREEOWNER
    1.42 +   NS_DECL_NSIINTERFACEREQUESTOR
    1.43 +   NS_DECL_NSIWEBBROWSERCHROME
    1.44 +   NS_DECL_NSIWEBBROWSERCHROME2
    1.45 +   NS_DECL_NSIWEBBROWSERCHROME3
    1.46 +   NS_DECL_NSIWINDOWPROVIDER
    1.47 +
    1.48 +protected:
    1.49 +   nsContentTreeOwner(bool fPrimary);
    1.50 +   virtual ~nsContentTreeOwner();
    1.51 +
    1.52 +   void XULWindow(nsXULWindow* aXULWindow);
    1.53 +   nsXULWindow* XULWindow();
    1.54 +
    1.55 +protected:
    1.56 +   nsXULWindow      *mXULWindow;
    1.57 +   nsSiteWindow    *mSiteWindow;
    1.58 +   bool              mPrimary;
    1.59 +   bool              mContentTitleSetting;
    1.60 +   nsString          mWindowTitleModifier;
    1.61 +   nsString          mTitleSeparator;
    1.62 +   nsString          mTitlePreface;
    1.63 +   nsString          mTitleDefault;
    1.64 +};
    1.65 +
    1.66 +#endif /* nsContentTreeOwner_h__ */

mercurial