1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/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 : class nsIContent; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMHTMLCollection */
21 : #define NS_IDOMHTMLCOLLECTION_IID_STR "b7ccd7b3-86aa-4322-a50c-b972643bb662"
22 :
23 : #define NS_IDOMHTMLCOLLECTION_IID \
24 : {0xb7ccd7b3, 0x86aa, 0x4322, \
25 : { 0xa5, 0x0c, 0xb9, 0x72, 0x64, 0x3b, 0xb6, 0x62 }}
26 :
27 3302 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLCollection : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLCOLLECTION_IID)
31 :
32 : /* readonly attribute unsigned long length; */
33 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
34 :
35 : /* [forward(getNodeAt),getter] nsIDOMNode item (in unsigned long index); */
36 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM) = 0;
37 :
38 : /* [forward(getNamedItem),getter] nsIDOMNode namedItem (in DOMString name); */
39 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* [noscript,nostdcall,notxpcom] nsIContent getNodeAt (in unsigned long index); */
42 : virtual nsIContent * GetNodeAt(PRUint32 index) = 0;
43 :
44 : /* [noscript,nostdcall,notxpcom] nsISupports getNamedItem (in DOMString name, out nsWrapperCachePtr cache); */
45 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLCollection, NS_IDOMHTMLCOLLECTION_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIDOMHTMLCOLLECTION \
53 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
54 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM); \
55 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM); \
56 : virtual nsIContent * GetNodeAt(PRUint32 index); \
57 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIDOMHTMLCOLLECTION(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
62 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM) { return _to Item(index, _retval); } \
63 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM) { return _to NamedItem(name, _retval); } \
64 : virtual nsIContent * GetNodeAt(PRUint32 index) { return _to GetNodeAt(index); } \
65 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM) { return _to GetNamedItem(name, cache); }
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
68 : #define NS_FORWARD_SAFE_NSIDOMHTMLCOLLECTION(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
70 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
71 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } \
72 : virtual nsIContent * GetNodeAt(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeAt(index); } \
73 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamedItem(name, cache); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsDOMHTMLCollection : public nsIDOMHTMLCollection
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSIDOMHTMLCOLLECTION
84 :
85 : nsDOMHTMLCollection();
86 :
87 : private:
88 : ~nsDOMHTMLCollection();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsDOMHTMLCollection, nsIDOMHTMLCollection)
96 :
97 : nsDOMHTMLCollection::nsDOMHTMLCollection()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsDOMHTMLCollection::~nsDOMHTMLCollection()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* readonly attribute unsigned long length; */
108 : NS_IMETHODIMP nsDOMHTMLCollection::GetLength(PRUint32 *aLength)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* [forward(getNodeAt),getter] nsIDOMNode item (in unsigned long index); */
114 : NS_IMETHODIMP nsDOMHTMLCollection::Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* [forward(getNamedItem),getter] nsIDOMNode namedItem (in DOMString name); */
120 : NS_IMETHODIMP nsDOMHTMLCollection::NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* [noscript,nostdcall,notxpcom] nsIContent getNodeAt (in unsigned long index); */
126 : nsIContent * nsDOMHTMLCollection::GetNodeAt(PRUint32 index)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* [noscript,nostdcall,notxpcom] nsISupports getNamedItem (in DOMString name, out nsWrapperCachePtr cache); */
132 : nsISupports * nsDOMHTMLCollection::GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* End of implementation class template. */
138 : #endif
139 :
140 :
141 : #endif /* __gen_nsIDOMHTMLCollection_h__ */
|