Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 17:42:36 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-01-21 08:51:04 +00:00
|
|
|
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2002-05-08 21:55:48 +00:00
|
|
|
/**
|
|
|
|
* The nsIDOMWindowCollection interface is an interface for a
|
|
|
|
* collection of DOM window objects.
|
|
|
|
*/
|
|
|
|
|
2001-01-21 08:51:04 +00:00
|
|
|
[scriptable, uuid(a6cf906f-15b3-11d2-932e-00805f8add32)]
|
|
|
|
interface nsIDOMWindowCollection : nsISupports
|
|
|
|
{
|
2002-05-08 21:55:48 +00:00
|
|
|
/**
|
|
|
|
* Accessor for the number of windows in this collection.
|
|
|
|
*/
|
2001-01-22 04:01:04 +00:00
|
|
|
readonly attribute unsigned long length;
|
2001-01-21 08:51:04 +00:00
|
|
|
|
2002-05-08 21:55:48 +00:00
|
|
|
/**
|
|
|
|
* Method for accessing an item in this collection by index.
|
|
|
|
*/
|
2001-01-22 04:01:04 +00:00
|
|
|
nsIDOMWindow item(in unsigned long index);
|
2002-05-08 21:55:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Method for accessing an item in this collection by window name.
|
|
|
|
*/
|
2001-01-22 04:01:04 +00:00
|
|
|
nsIDOMWindow namedItem(in DOMString name);
|
2001-01-21 08:51:04 +00:00
|
|
|
};
|