Bug 1835241 - Part 8: Use TimeDuration() to construct durations of zero time in the...
[gecko.git] / xpfe / appshell / nsChromeTreeOwner.h
blob768fc446280e1ce5d444b422aad3891054d98c0c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 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 namespace mozilla {
22 class AppWindow;
25 class nsChromeTreeOwner : public nsIDocShellTreeOwner,
26 public nsIBaseWindow,
27 public nsIInterfaceRequestor,
28 public nsIWebProgressListener,
29 public nsSupportsWeakReference {
30 friend class mozilla::AppWindow;
32 public:
33 NS_DECL_ISUPPORTS
35 NS_DECL_NSIINTERFACEREQUESTOR
36 NS_DECL_NSIBASEWINDOW
37 NS_DECL_NSIDOCSHELLTREEOWNER
38 NS_DECL_NSIWEBPROGRESSLISTENER
40 protected:
41 nsChromeTreeOwner();
42 virtual ~nsChromeTreeOwner();
44 void AppWindow(mozilla::AppWindow* aAppWindow);
45 mozilla::AppWindow* AppWindow();
47 protected:
48 mozilla::AppWindow* mAppWindow;
51 #endif /* nsChromeTreeOwner_h__ */