1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsDOMWindowList_h___
6 #define nsDOMWindowList_h___
9 #include "nsISupports.h"
10 #include "nsIDOMWindowCollection.h"
12 #include "mozilla/StandardInteger.h"
14 class nsIDocShellTreeNode
;
18 class nsDOMWindowList
: public nsIDOMWindowCollection
21 nsDOMWindowList(nsIDocShell
*aDocShell
);
22 virtual ~nsDOMWindowList();
25 NS_DECL_NSIDOMWINDOWCOLLECTION
28 already_AddRefed
<nsIDOMWindow
> IndexedGetter(uint32_t aIndex
, bool& aFound
);
31 NS_IMETHOD
SetDocShell(nsIDocShell
* aDocShell
);
34 // Note: this function may flush and cause mDocShellNode to become null.
37 nsIDocShellTreeNode
* mDocShellNode
; //Weak Reference
40 #endif // nsDOMWindowList_h___