1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpfe/appshell/src/nsChromeTreeOwner.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +/* -*- Mode: C++; 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 nsChromeTreeOwner_h__ 1.11 +#define nsChromeTreeOwner_h__ 1.12 + 1.13 +// Helper Classes 1.14 +#include "nsCOMPtr.h" 1.15 + 1.16 +// Interfaces Needed 1.17 +#include "nsIBaseWindow.h" 1.18 +#include "nsIDocShellTreeOwner.h" 1.19 +#include "nsIInterfaceRequestor.h" 1.20 +#include "nsIInterfaceRequestorUtils.h" 1.21 +#include "nsIWebProgressListener.h" 1.22 +#include "nsWeakReference.h" 1.23 + 1.24 +class nsXULWindow; 1.25 + 1.26 +class nsChromeTreeOwner : public nsIDocShellTreeOwner, 1.27 + public nsIBaseWindow, 1.28 + public nsIInterfaceRequestor, 1.29 + public nsIWebProgressListener, 1.30 + public nsSupportsWeakReference 1.31 +{ 1.32 +friend class nsXULWindow; 1.33 + 1.34 +public: 1.35 + NS_DECL_ISUPPORTS 1.36 + 1.37 + NS_DECL_NSIINTERFACEREQUESTOR 1.38 + NS_DECL_NSIBASEWINDOW 1.39 + NS_DECL_NSIDOCSHELLTREEOWNER 1.40 + NS_DECL_NSIWEBPROGRESSLISTENER 1.41 + 1.42 + static nsresult InitGlobals(); 1.43 + static void FreeGlobals(); 1.44 + 1.45 +protected: 1.46 + nsChromeTreeOwner(); 1.47 + virtual ~nsChromeTreeOwner(); 1.48 + 1.49 + void XULWindow(nsXULWindow* aXULWindow); 1.50 + nsXULWindow* XULWindow(); 1.51 + 1.52 +protected: 1.53 + nsXULWindow* mXULWindow; 1.54 +}; 1.55 + 1.56 +#endif /* nsChromeTreeOwner_h__ */