Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMWindowCollection.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMWindowCollection_h__
6 : #define __gen_nsIDOMWindowCollection_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 mozIDOMWindowProxy; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMWindowCollection */
21 : #define NS_IDOMWINDOWCOLLECTION_IID_STR "8d64f457-fb8c-49ea-a359-cef30eed9774"
22 :
23 : #define NS_IDOMWINDOWCOLLECTION_IID \
24 : {0x8d64f457, 0xfb8c, 0x49ea, \
25 : { 0xa3, 0x59, 0xce, 0xf3, 0x0e, 0xed, 0x97, 0x74 }}
26 :
27 2 : class NS_NO_VTABLE nsIDOMWindowCollection : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOWCOLLECTION_IID)
31 :
32 : /* readonly attribute unsigned long length; */
33 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
34 :
35 : /* mozIDOMWindowProxy item (in unsigned long index); */
36 : NS_IMETHOD Item(uint32_t index, mozIDOMWindowProxy * *_retval) = 0;
37 :
38 : /* mozIDOMWindowProxy namedItem (in DOMString name); */
39 : NS_IMETHOD NamedItem(const nsAString & name, mozIDOMWindowProxy * *_retval) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindowCollection, NS_IDOMWINDOWCOLLECTION_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIDOMWINDOWCOLLECTION \
47 : NS_IMETHOD GetLength(uint32_t *aLength) override; \
48 : NS_IMETHOD Item(uint32_t index, mozIDOMWindowProxy * *_retval) override; \
49 : NS_IMETHOD NamedItem(const nsAString & name, mozIDOMWindowProxy * *_retval) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIDOMWINDOWCOLLECTION \
54 : nsresult GetLength(uint32_t *aLength); \
55 : nsresult Item(uint32_t index, mozIDOMWindowProxy * *_retval); \
56 : nsresult NamedItem(const nsAString & name, mozIDOMWindowProxy * *_retval);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIDOMWINDOWCOLLECTION(_to) \
60 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
61 : NS_IMETHOD Item(uint32_t index, mozIDOMWindowProxy * *_retval) override { return _to Item(index, _retval); } \
62 : NS_IMETHOD NamedItem(const nsAString & name, mozIDOMWindowProxy * *_retval) override { 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_NSIDOMWINDOWCOLLECTION(_to) \
66 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
67 : NS_IMETHOD Item(uint32_t index, mozIDOMWindowProxy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
68 : NS_IMETHOD NamedItem(const nsAString & name, mozIDOMWindowProxy * *_retval) override { 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 */
74 : class nsDOMWindowCollection : public nsIDOMWindowCollection
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSIDOMWINDOWCOLLECTION
79 :
80 : nsDOMWindowCollection();
81 :
82 : private:
83 : ~nsDOMWindowCollection();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsDOMWindowCollection, nsIDOMWindowCollection)
91 :
92 : nsDOMWindowCollection::nsDOMWindowCollection()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsDOMWindowCollection::~nsDOMWindowCollection()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* readonly attribute unsigned long length; */
103 : NS_IMETHODIMP nsDOMWindowCollection::GetLength(uint32_t *aLength)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* mozIDOMWindowProxy item (in unsigned long index); */
109 : NS_IMETHODIMP nsDOMWindowCollection::Item(uint32_t index, mozIDOMWindowProxy * *_retval)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* mozIDOMWindowProxy namedItem (in DOMString name); */
115 : NS_IMETHODIMP nsDOMWindowCollection::NamedItem(const nsAString & name, mozIDOMWindowProxy * *_retval)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsIDOMWindowCollection_h__ */
|