nsIDOMWindowCollection.idl 939 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: IDL; 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. #include "domstubs.idl"
  6. interface mozIDOMWindowProxy;
  7. /**
  8. * The nsIDOMWindowCollection interface is an interface for a
  9. * collection of DOM window objects.
  10. */
  11. [uuid(8d64f457-fb8c-49ea-a359-cef30eed9774)]
  12. interface nsIDOMWindowCollection : nsISupports
  13. {
  14. /**
  15. * Accessor for the number of windows in this collection.
  16. */
  17. readonly attribute unsigned long length;
  18. /**
  19. * Method for accessing an item in this collection by index.
  20. */
  21. mozIDOMWindowProxy item(in unsigned long index);
  22. /**
  23. * Method for accessing an item in this collection by window name.
  24. */
  25. mozIDOMWindowProxy namedItem(in DOMString name);
  26. };