1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMMediaQueryList.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMMediaQueryList_h__
6 : #define __gen_nsIDOMMediaQueryList_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 nsIDOMMediaQueryListListener; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMMediaQueryList */
21 : #define NS_IDOMMEDIAQUERYLIST_IID_STR "e0e49c52-915b-40f9-9cba-6026305cdf3e"
22 :
23 : #define NS_IDOMMEDIAQUERYLIST_IID \
24 : {0xe0e49c52, 0x915b, 0x40f9, \
25 : { 0x9c, 0xba, 0x60, 0x26, 0x30, 0x5c, 0xdf, 0x3e }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMediaQueryList : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMEDIAQUERYLIST_IID)
31 :
32 : /* readonly attribute DOMString media; */
33 : NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) = 0;
34 :
35 : /* readonly attribute boolean matches; */
36 : NS_SCRIPTABLE NS_IMETHOD GetMatches(bool *aMatches) = 0;
37 :
38 : /* void addListener (in nsIDOMMediaQueryListListener listener); */
39 : NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDOMMediaQueryListListener *listener) = 0;
40 :
41 : /* void removeListener (in nsIDOMMediaQueryListListener listener); */
42 : NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDOMMediaQueryListListener *listener) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMediaQueryList, NS_IDOMMEDIAQUERYLIST_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIDOMMEDIAQUERYLIST \
50 : NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia); \
51 : NS_SCRIPTABLE NS_IMETHOD GetMatches(bool *aMatches); \
52 : NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDOMMediaQueryListListener *listener); \
53 : NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDOMMediaQueryListListener *listener);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIDOMMEDIAQUERYLIST(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetMatches(bool *aMatches) { return _to GetMatches(aMatches); } \
59 : NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDOMMediaQueryListListener *listener) { return _to AddListener(listener); } \
60 : NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDOMMediaQueryListListener *listener) { return _to RemoveListener(listener); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIDOMMEDIAQUERYLIST(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetMatches(bool *aMatches) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatches(aMatches); } \
66 : NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDOMMediaQueryListListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(listener); } \
67 : NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDOMMediaQueryListListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(listener); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsDOMMediaQueryList : public nsIDOMMediaQueryList
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIDOMMEDIAQUERYLIST
78 :
79 : nsDOMMediaQueryList();
80 :
81 : private:
82 : ~nsDOMMediaQueryList();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsDOMMediaQueryList, nsIDOMMediaQueryList)
90 :
91 : nsDOMMediaQueryList::nsDOMMediaQueryList()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsDOMMediaQueryList::~nsDOMMediaQueryList()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* readonly attribute DOMString media; */
102 : NS_IMETHODIMP nsDOMMediaQueryList::GetMedia(nsAString & aMedia)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* readonly attribute boolean matches; */
108 : NS_IMETHODIMP nsDOMMediaQueryList::GetMatches(bool *aMatches)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* void addListener (in nsIDOMMediaQueryListListener listener); */
114 : NS_IMETHODIMP nsDOMMediaQueryList::AddListener(nsIDOMMediaQueryListListener *listener)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* void removeListener (in nsIDOMMediaQueryListListener listener); */
120 : NS_IMETHODIMP nsDOMMediaQueryList::RemoveListener(nsIDOMMediaQueryListListener *listener)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* End of implementation class template. */
126 : #endif
127 :
128 :
129 : /* starting interface: nsIDOMMediaQueryListListener */
130 : #define NS_IDOMMEDIAQUERYLISTLISTENER_IID_STR "279a5cbd-5c15-475d-847b-e0de1624eb77"
131 :
132 : #define NS_IDOMMEDIAQUERYLISTLISTENER_IID \
133 : {0x279a5cbd, 0x5c15, 0x475d, \
134 : { 0x84, 0x7b, 0xe0, 0xde, 0x16, 0x24, 0xeb, 0x77 }}
135 :
136 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMediaQueryListListener : public nsISupports {
137 : public:
138 :
139 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMEDIAQUERYLISTLISTENER_IID)
140 :
141 : /* void handleChange (in nsIDOMMediaQueryList mql); */
142 : NS_SCRIPTABLE NS_IMETHOD HandleChange(nsIDOMMediaQueryList *mql) = 0;
143 :
144 : };
145 :
146 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMediaQueryListListener, NS_IDOMMEDIAQUERYLISTLISTENER_IID)
147 :
148 : /* Use this macro when declaring classes that implement this interface. */
149 : #define NS_DECL_NSIDOMMEDIAQUERYLISTLISTENER \
150 : NS_SCRIPTABLE NS_IMETHOD HandleChange(nsIDOMMediaQueryList *mql);
151 :
152 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
153 : #define NS_FORWARD_NSIDOMMEDIAQUERYLISTLISTENER(_to) \
154 : NS_SCRIPTABLE NS_IMETHOD HandleChange(nsIDOMMediaQueryList *mql) { return _to HandleChange(mql); }
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
157 : #define NS_FORWARD_SAFE_NSIDOMMEDIAQUERYLISTLISTENER(_to) \
158 : NS_SCRIPTABLE NS_IMETHOD HandleChange(nsIDOMMediaQueryList *mql) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleChange(mql); }
159 :
160 : #if 0
161 : /* Use the code below as a template for the implementation class for this interface. */
162 :
163 : /* Header file */
164 : class nsDOMMediaQueryListListener : public nsIDOMMediaQueryListListener
165 : {
166 : public:
167 : NS_DECL_ISUPPORTS
168 : NS_DECL_NSIDOMMEDIAQUERYLISTLISTENER
169 :
170 : nsDOMMediaQueryListListener();
171 :
172 : private:
173 : ~nsDOMMediaQueryListListener();
174 :
175 : protected:
176 : /* additional members */
177 : };
178 :
179 : /* Implementation file */
180 : NS_IMPL_ISUPPORTS1(nsDOMMediaQueryListListener, nsIDOMMediaQueryListListener)
181 :
182 : nsDOMMediaQueryListListener::nsDOMMediaQueryListListener()
183 : {
184 : /* member initializers and constructor code */
185 : }
186 :
187 : nsDOMMediaQueryListListener::~nsDOMMediaQueryListListener()
188 : {
189 : /* destructor code */
190 : }
191 :
192 : /* void handleChange (in nsIDOMMediaQueryList mql); */
193 : NS_IMETHODIMP nsDOMMediaQueryListListener::HandleChange(nsIDOMMediaQueryList *mql)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 :
198 : /* End of implementation class template. */
199 : #endif
200 :
201 :
202 : #endif /* __gen_nsIDOMMediaQueryList_h__ */
|