Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: gecko-sdk/include/nsIDOMHTMLCollection.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIDOMHTMLButtonElement.h ('k') | gecko-sdk/include/nsIDOMHTMLDListElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_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
25 class NS_NO_VTABLE nsIDOMHTMLCollection : public nsISupports {
26 public:
27
28 NS_DEFINE_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_IMETHOD GetLength(PRUint32 *aLength) = 0;
41
42 /* nsIDOMNode item (in unsigned long index); */
43 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
44
45 /* nsIDOMNode namedItem (in DOMString name); */
46 NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
47
48 };
49
50 /* Use this macro when declaring classes that implement this interface. */
51 #define NS_DECL_NSIDOMHTMLCOLLECTION \
52 NS_IMETHOD GetLength(PRUint32 *aLength); \
53 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
54 NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval);
55
56 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
57 #define NS_FORWARD_NSIDOMHTMLCOLLECTION(_to) \
58 NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
59 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
60 NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return _t o NamedItem(name, _retval); }
61
62 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
63 #define NS_FORWARD_SAFE_NSIDOMHTMLCOLLECTION(_to) \
64 NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
65 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR _NULL_POINTER : _to->Item(index, _retval); } \
66 NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_ to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); }
67
68 #if 0
69 /* Use the code below as a template for the implementation class for this interf ace. */
70
71 /* Header file */
72 class nsDOMHTMLCollection : public nsIDOMHTMLCollection
73 {
74 public:
75 NS_DECL_ISUPPORTS
76 NS_DECL_NSIDOMHTMLCOLLECTION
77
78 nsDOMHTMLCollection();
79
80 private:
81 ~nsDOMHTMLCollection();
82
83 protected:
84 /* additional members */
85 };
86
87 /* Implementation file */
88 NS_IMPL_ISUPPORTS1(nsDOMHTMLCollection, nsIDOMHTMLCollection)
89
90 nsDOMHTMLCollection::nsDOMHTMLCollection()
91 {
92 /* member initializers and constructor code */
93 }
94
95 nsDOMHTMLCollection::~nsDOMHTMLCollection()
96 {
97 /* destructor code */
98 }
99
100 /* readonly attribute unsigned long length; */
101 NS_IMETHODIMP nsDOMHTMLCollection::GetLength(PRUint32 *aLength)
102 {
103 return NS_ERROR_NOT_IMPLEMENTED;
104 }
105
106 /* nsIDOMNode item (in unsigned long index); */
107 NS_IMETHODIMP nsDOMHTMLCollection::Item(PRUint32 index, nsIDOMNode **_retval)
108 {
109 return NS_ERROR_NOT_IMPLEMENTED;
110 }
111
112 /* nsIDOMNode namedItem (in DOMString name); */
113 NS_IMETHODIMP nsDOMHTMLCollection::NamedItem(const nsAString & name, nsIDOMNode **_retval)
114 {
115 return NS_ERROR_NOT_IMPLEMENTED;
116 }
117
118 /* End of implementation class template. */
119 #endif
120
121
122 #endif /* __gen_nsIDOMHTMLCollection_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMHTMLButtonElement.h ('k') | gecko-sdk/include/nsIDOMHTMLDListElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698