Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/. */
7 #ifndef nsChromeTreeOwner_h__
8 #define nsChromeTreeOwner_h__
10 // Helper Classes
11 #include "nsCOMPtr.h"
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"
21 class nsXULWindow;
23 class nsChromeTreeOwner : public nsIDocShellTreeOwner,
24 public nsIBaseWindow,
25 public nsIInterfaceRequestor,
26 public nsIWebProgressListener,
27 public nsSupportsWeakReference
28 {
29 friend class nsXULWindow;
31 public:
32 NS_DECL_ISUPPORTS
34 NS_DECL_NSIINTERFACEREQUESTOR
35 NS_DECL_NSIBASEWINDOW
36 NS_DECL_NSIDOCSHELLTREEOWNER
37 NS_DECL_NSIWEBPROGRESSLISTENER
39 static nsresult InitGlobals();
40 static void FreeGlobals();
42 protected:
43 nsChromeTreeOwner();
44 virtual ~nsChromeTreeOwner();
46 void XULWindow(nsXULWindow* aXULWindow);
47 nsXULWindow* XULWindow();
49 protected:
50 nsXULWindow* mXULWindow;
51 };
53 #endif /* nsChromeTreeOwner_h__ */