xpfe/appshell/src/nsChromeTreeOwner.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:ab5eacf697f4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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/. */
6
7 #ifndef nsChromeTreeOwner_h__
8 #define nsChromeTreeOwner_h__
9
10 // Helper Classes
11 #include "nsCOMPtr.h"
12
13 // Interfaces Needed
14 #include "nsIBaseWindow.h"
15 #include "nsIDocShellTreeOwner.h"
16 #include "nsIInterfaceRequestor.h"
17 #include "nsIInterfaceRequestorUtils.h"
18 #include "nsIWebProgressListener.h"
19 #include "nsWeakReference.h"
20
21 class nsXULWindow;
22
23 class nsChromeTreeOwner : public nsIDocShellTreeOwner,
24 public nsIBaseWindow,
25 public nsIInterfaceRequestor,
26 public nsIWebProgressListener,
27 public nsSupportsWeakReference
28 {
29 friend class nsXULWindow;
30
31 public:
32 NS_DECL_ISUPPORTS
33
34 NS_DECL_NSIINTERFACEREQUESTOR
35 NS_DECL_NSIBASEWINDOW
36 NS_DECL_NSIDOCSHELLTREEOWNER
37 NS_DECL_NSIWEBPROGRESSLISTENER
38
39 static nsresult InitGlobals();
40 static void FreeGlobals();
41
42 protected:
43 nsChromeTreeOwner();
44 virtual ~nsChromeTreeOwner();
45
46 void XULWindow(nsXULWindow* aXULWindow);
47 nsXULWindow* XULWindow();
48
49 protected:
50 nsXULWindow* mXULWindow;
51 };
52
53 #endif /* nsChromeTreeOwner_h__ */

mercurial