PageRenderTime 123ms CodeModel.GetById 70ms app.highlight 3ms RepoModel.GetById 47ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLCollection.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 124 lines | 64 code | 30 blank | 30 comment | 0 complexity | 232002f2387389c7a652c3ea5f154056 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/html/nsIDOMHTMLCollection.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLCollection_h__
  6#define __gen_nsIDOMHTMLCollection_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMHTMLCollection */
 19#define NS_IDOMHTMLCOLLECTION_IID_STR "a6cf9083-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLCOLLECTION_IID \
 22  {0xa6cf9083, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLCollection : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLCOLLECTION_IID)
 29
 30  /**
 31 * The nsIDOMHTMLCollection interface is an interface to a collection
 32 * of [X]HTML elements.
 33 *
 34 * For more information on this interface please see
 35 * http://www.w3.org/TR/DOM-Level-2-HTML/
 36 *
 37 * @status FROZEN
 38 */
 39  /* readonly attribute unsigned long length; */
 40  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 41
 42  /* nsIDOMNode item (in unsigned long index); */
 43  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
 44
 45  /* nsIDOMNode namedItem (in DOMString name); */
 46  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
 47
 48};
 49
 50  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLCollection, NS_IDOMHTMLCOLLECTION_IID)
 51
 52/* Use this macro when declaring classes that implement this interface. */
 53#define NS_DECL_NSIDOMHTMLCOLLECTION \
 54  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 55  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
 56  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval); 
 57
 58/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 59#define NS_FORWARD_NSIDOMHTMLCOLLECTION(_to) \
 60  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 61  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
 62  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to NamedItem(name, _retval); } 
 63
 64/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 65#define NS_FORWARD_SAFE_NSIDOMHTMLCOLLECTION(_to) \
 66  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 67  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
 68  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } 
 69
 70#if 0
 71/* Use the code below as a template for the implementation class for this interface. */
 72
 73/* Header file */
 74class nsDOMHTMLCollection : public nsIDOMHTMLCollection
 75{
 76public:
 77  NS_DECL_ISUPPORTS
 78  NS_DECL_NSIDOMHTMLCOLLECTION
 79
 80  nsDOMHTMLCollection();
 81
 82private:
 83  ~nsDOMHTMLCollection();
 84
 85protected:
 86  /* additional members */
 87};
 88
 89/* Implementation file */
 90NS_IMPL_ISUPPORTS1(nsDOMHTMLCollection, nsIDOMHTMLCollection)
 91
 92nsDOMHTMLCollection::nsDOMHTMLCollection()
 93{
 94  /* member initializers and constructor code */
 95}
 96
 97nsDOMHTMLCollection::~nsDOMHTMLCollection()
 98{
 99  /* destructor code */
100}
101
102/* readonly attribute unsigned long length; */
103NS_IMETHODIMP nsDOMHTMLCollection::GetLength(PRUint32 *aLength)
104{
105    return NS_ERROR_NOT_IMPLEMENTED;
106}
107
108/* nsIDOMNode item (in unsigned long index); */
109NS_IMETHODIMP nsDOMHTMLCollection::Item(PRUint32 index, nsIDOMNode **_retval)
110{
111    return NS_ERROR_NOT_IMPLEMENTED;
112}
113
114/* nsIDOMNode namedItem (in DOMString name); */
115NS_IMETHODIMP nsDOMHTMLCollection::NamedItem(const nsAString & name, nsIDOMNode **_retval)
116{
117    return NS_ERROR_NOT_IMPLEMENTED;
118}
119
120/* End of implementation class template. */
121#endif
122
123
124#endif /* __gen_nsIDOMHTMLCollection_h__ */