michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: michael@0: /** michael@0: * The nsIDOMWindowCollection interface is an interface for a michael@0: * collection of DOM window objects. michael@0: */ michael@0: michael@0: [uuid(a6cf906f-15b3-11d2-932e-00805f8add32)] michael@0: interface nsIDOMWindowCollection : nsISupports michael@0: { michael@0: /** michael@0: * Accessor for the number of windows in this collection. michael@0: */ michael@0: readonly attribute unsigned long length; michael@0: michael@0: /** michael@0: * Method for accessing an item in this collection by index. michael@0: */ michael@0: nsIDOMWindow item(in unsigned long index); michael@0: michael@0: /** michael@0: * Method for accessing an item in this collection by window name. michael@0: */ michael@0: nsIDOMWindow namedItem(in DOMString name); michael@0: };