1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMNavigator.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMNavigator_h__
6 : #define __gen_nsIDOMNavigator_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsIDOMNavigator */
21 : #define NS_IDOMNAVIGATOR_IID_STR "e0737ed5-89c5-4fe3-891e-a75bf3a1bb55"
22 :
23 : #define NS_IDOMNAVIGATOR_IID \
24 : {0xe0737ed5, 0x89c5, 0x4fe3, \
25 : { 0x89, 0x1e, 0xa7, 0x5b, 0xf3, 0xa1, 0xbb, 0x55 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMNavigator : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMNAVIGATOR_IID)
31 :
32 : /* readonly attribute DOMString appCodeName; */
33 : NS_SCRIPTABLE NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName) = 0;
34 :
35 : /* readonly attribute DOMString appName; */
36 : NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName) = 0;
37 :
38 : /* readonly attribute DOMString appVersion; */
39 : NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion) = 0;
40 :
41 : /* readonly attribute DOMString language; */
42 : NS_SCRIPTABLE NS_IMETHOD GetLanguage(nsAString & aLanguage) = 0;
43 :
44 : /* readonly attribute nsIDOMMimeTypeArray mimeTypes; */
45 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes) = 0;
46 :
47 : /* readonly attribute DOMString platform; */
48 : NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform) = 0;
49 :
50 : /* readonly attribute DOMString oscpu; */
51 : NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsAString & aOscpu) = 0;
52 :
53 : /* readonly attribute DOMString vendor; */
54 : NS_SCRIPTABLE NS_IMETHOD GetVendor(nsAString & aVendor) = 0;
55 :
56 : /* readonly attribute DOMString vendorSub; */
57 : NS_SCRIPTABLE NS_IMETHOD GetVendorSub(nsAString & aVendorSub) = 0;
58 :
59 : /* readonly attribute DOMString product; */
60 : NS_SCRIPTABLE NS_IMETHOD GetProduct(nsAString & aProduct) = 0;
61 :
62 : /* readonly attribute DOMString productSub; */
63 : NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsAString & aProductSub) = 0;
64 :
65 : /* readonly attribute nsIDOMPluginArray plugins; */
66 : NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins) = 0;
67 :
68 : /* readonly attribute DOMString userAgent; */
69 : NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent) = 0;
70 :
71 : /* readonly attribute boolean cookieEnabled; */
72 : NS_SCRIPTABLE NS_IMETHOD GetCookieEnabled(bool *aCookieEnabled) = 0;
73 :
74 : /* readonly attribute boolean onLine; */
75 : NS_SCRIPTABLE NS_IMETHOD GetOnLine(bool *aOnLine) = 0;
76 :
77 : /* readonly attribute DOMString buildID; */
78 : NS_SCRIPTABLE NS_IMETHOD GetBuildID(nsAString & aBuildID) = 0;
79 :
80 : /* readonly attribute DOMString doNotTrack; */
81 : NS_SCRIPTABLE NS_IMETHOD GetDoNotTrack(nsAString & aDoNotTrack) = 0;
82 :
83 : /* readonly attribute nsIDOMMozPowerManager mozPower; */
84 : NS_SCRIPTABLE NS_IMETHOD GetMozPower(nsIDOMMozPowerManager * *aMozPower) = 0;
85 :
86 : /* boolean javaEnabled (); */
87 : NS_SCRIPTABLE NS_IMETHOD JavaEnabled(bool *_retval NS_OUTPARAM) = 0;
88 :
89 : /* boolean taintEnabled (); */
90 : NS_SCRIPTABLE NS_IMETHOD TaintEnabled(bool *_retval NS_OUTPARAM) = 0;
91 :
92 : /* [implicit_jscontext] void mozVibrate (in jsval aPattern); */
93 : NS_SCRIPTABLE NS_IMETHOD MozVibrate(const JS::Value & aPattern, JSContext* cx) = 0;
94 :
95 : /* nsIDOMMozWakeLock requestWakeLock (in DOMString aTopic); */
96 : NS_SCRIPTABLE NS_IMETHOD RequestWakeLock(const nsAString & aTopic, nsIDOMMozWakeLock * *_retval NS_OUTPARAM) = 0;
97 :
98 : };
99 :
100 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMNavigator, NS_IDOMNAVIGATOR_IID)
101 :
102 : /* Use this macro when declaring classes that implement this interface. */
103 : #define NS_DECL_NSIDOMNAVIGATOR \
104 : NS_SCRIPTABLE NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName); \
105 : NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName); \
106 : NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion); \
107 : NS_SCRIPTABLE NS_IMETHOD GetLanguage(nsAString & aLanguage); \
108 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes); \
109 : NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform); \
110 : NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsAString & aOscpu); \
111 : NS_SCRIPTABLE NS_IMETHOD GetVendor(nsAString & aVendor); \
112 : NS_SCRIPTABLE NS_IMETHOD GetVendorSub(nsAString & aVendorSub); \
113 : NS_SCRIPTABLE NS_IMETHOD GetProduct(nsAString & aProduct); \
114 : NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsAString & aProductSub); \
115 : NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins); \
116 : NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent); \
117 : NS_SCRIPTABLE NS_IMETHOD GetCookieEnabled(bool *aCookieEnabled); \
118 : NS_SCRIPTABLE NS_IMETHOD GetOnLine(bool *aOnLine); \
119 : NS_SCRIPTABLE NS_IMETHOD GetBuildID(nsAString & aBuildID); \
120 : NS_SCRIPTABLE NS_IMETHOD GetDoNotTrack(nsAString & aDoNotTrack); \
121 : NS_SCRIPTABLE NS_IMETHOD GetMozPower(nsIDOMMozPowerManager * *aMozPower); \
122 : NS_SCRIPTABLE NS_IMETHOD JavaEnabled(bool *_retval NS_OUTPARAM); \
123 : NS_SCRIPTABLE NS_IMETHOD TaintEnabled(bool *_retval NS_OUTPARAM); \
124 : NS_SCRIPTABLE NS_IMETHOD MozVibrate(const JS::Value & aPattern, JSContext* cx); \
125 : NS_SCRIPTABLE NS_IMETHOD RequestWakeLock(const nsAString & aTopic, nsIDOMMozWakeLock * *_retval NS_OUTPARAM);
126 :
127 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
128 : #define NS_FORWARD_NSIDOMNAVIGATOR(_to) \
129 : NS_SCRIPTABLE NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName) { return _to GetAppCodeName(aAppCodeName); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName) { return _to GetAppName(aAppName); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion) { return _to GetAppVersion(aAppVersion); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetLanguage(nsAString & aLanguage) { return _to GetLanguage(aLanguage); } \
133 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes) { return _to GetMimeTypes(aMimeTypes); } \
134 : NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform) { return _to GetPlatform(aPlatform); } \
135 : NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsAString & aOscpu) { return _to GetOscpu(aOscpu); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetVendor(nsAString & aVendor) { return _to GetVendor(aVendor); } \
137 : NS_SCRIPTABLE NS_IMETHOD GetVendorSub(nsAString & aVendorSub) { return _to GetVendorSub(aVendorSub); } \
138 : NS_SCRIPTABLE NS_IMETHOD GetProduct(nsAString & aProduct) { return _to GetProduct(aProduct); } \
139 : NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsAString & aProductSub) { return _to GetProductSub(aProductSub); } \
140 : NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins) { return _to GetPlugins(aPlugins); } \
141 : NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent) { return _to GetUserAgent(aUserAgent); } \
142 : NS_SCRIPTABLE NS_IMETHOD GetCookieEnabled(bool *aCookieEnabled) { return _to GetCookieEnabled(aCookieEnabled); } \
143 : NS_SCRIPTABLE NS_IMETHOD GetOnLine(bool *aOnLine) { return _to GetOnLine(aOnLine); } \
144 : NS_SCRIPTABLE NS_IMETHOD GetBuildID(nsAString & aBuildID) { return _to GetBuildID(aBuildID); } \
145 : NS_SCRIPTABLE NS_IMETHOD GetDoNotTrack(nsAString & aDoNotTrack) { return _to GetDoNotTrack(aDoNotTrack); } \
146 : NS_SCRIPTABLE NS_IMETHOD GetMozPower(nsIDOMMozPowerManager * *aMozPower) { return _to GetMozPower(aMozPower); } \
147 : NS_SCRIPTABLE NS_IMETHOD JavaEnabled(bool *_retval NS_OUTPARAM) { return _to JavaEnabled(_retval); } \
148 : NS_SCRIPTABLE NS_IMETHOD TaintEnabled(bool *_retval NS_OUTPARAM) { return _to TaintEnabled(_retval); } \
149 : NS_SCRIPTABLE NS_IMETHOD MozVibrate(const JS::Value & aPattern, JSContext* cx) { return _to MozVibrate(aPattern, cx); } \
150 : NS_SCRIPTABLE NS_IMETHOD RequestWakeLock(const nsAString & aTopic, nsIDOMMozWakeLock * *_retval NS_OUTPARAM) { return _to RequestWakeLock(aTopic, _retval); }
151 :
152 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
153 : #define NS_FORWARD_SAFE_NSIDOMNAVIGATOR(_to) \
154 : NS_SCRIPTABLE NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppCodeName(aAppCodeName); } \
155 : NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppName(aAppName); } \
156 : NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppVersion(aAppVersion); } \
157 : NS_SCRIPTABLE NS_IMETHOD GetLanguage(nsAString & aLanguage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
158 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeTypes(aMimeTypes); } \
159 : NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlatform(aPlatform); } \
160 : NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsAString & aOscpu) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOscpu(aOscpu); } \
161 : NS_SCRIPTABLE NS_IMETHOD GetVendor(nsAString & aVendor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVendor(aVendor); } \
162 : NS_SCRIPTABLE NS_IMETHOD GetVendorSub(nsAString & aVendorSub) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVendorSub(aVendorSub); } \
163 : NS_SCRIPTABLE NS_IMETHOD GetProduct(nsAString & aProduct) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProduct(aProduct); } \
164 : NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsAString & aProductSub) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProductSub(aProductSub); } \
165 : NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlugins(aPlugins); } \
166 : NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserAgent(aUserAgent); } \
167 : NS_SCRIPTABLE NS_IMETHOD GetCookieEnabled(bool *aCookieEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookieEnabled(aCookieEnabled); } \
168 : NS_SCRIPTABLE NS_IMETHOD GetOnLine(bool *aOnLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnLine(aOnLine); } \
169 : NS_SCRIPTABLE NS_IMETHOD GetBuildID(nsAString & aBuildID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuildID(aBuildID); } \
170 : NS_SCRIPTABLE NS_IMETHOD GetDoNotTrack(nsAString & aDoNotTrack) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDoNotTrack(aDoNotTrack); } \
171 : NS_SCRIPTABLE NS_IMETHOD GetMozPower(nsIDOMMozPowerManager * *aMozPower) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPower(aMozPower); } \
172 : NS_SCRIPTABLE NS_IMETHOD JavaEnabled(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->JavaEnabled(_retval); } \
173 : NS_SCRIPTABLE NS_IMETHOD TaintEnabled(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TaintEnabled(_retval); } \
174 : NS_SCRIPTABLE NS_IMETHOD MozVibrate(const JS::Value & aPattern, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozVibrate(aPattern, cx); } \
175 : NS_SCRIPTABLE NS_IMETHOD RequestWakeLock(const nsAString & aTopic, nsIDOMMozWakeLock * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestWakeLock(aTopic, _retval); }
176 :
177 : #if 0
178 : /* Use the code below as a template for the implementation class for this interface. */
179 :
180 : /* Header file */
181 : class nsDOMNavigator : public nsIDOMNavigator
182 : {
183 : public:
184 : NS_DECL_ISUPPORTS
185 : NS_DECL_NSIDOMNAVIGATOR
186 :
187 : nsDOMNavigator();
188 :
189 : private:
190 : ~nsDOMNavigator();
191 :
192 : protected:
193 : /* additional members */
194 : };
195 :
196 : /* Implementation file */
197 : NS_IMPL_ISUPPORTS1(nsDOMNavigator, nsIDOMNavigator)
198 :
199 : nsDOMNavigator::nsDOMNavigator()
200 : {
201 : /* member initializers and constructor code */
202 : }
203 :
204 : nsDOMNavigator::~nsDOMNavigator()
205 : {
206 : /* destructor code */
207 : }
208 :
209 : /* readonly attribute DOMString appCodeName; */
210 : NS_IMETHODIMP nsDOMNavigator::GetAppCodeName(nsAString & aAppCodeName)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* readonly attribute DOMString appName; */
216 : NS_IMETHODIMP nsDOMNavigator::GetAppName(nsAString & aAppName)
217 : {
218 : return NS_ERROR_NOT_IMPLEMENTED;
219 : }
220 :
221 : /* readonly attribute DOMString appVersion; */
222 : NS_IMETHODIMP nsDOMNavigator::GetAppVersion(nsAString & aAppVersion)
223 : {
224 : return NS_ERROR_NOT_IMPLEMENTED;
225 : }
226 :
227 : /* readonly attribute DOMString language; */
228 : NS_IMETHODIMP nsDOMNavigator::GetLanguage(nsAString & aLanguage)
229 : {
230 : return NS_ERROR_NOT_IMPLEMENTED;
231 : }
232 :
233 : /* readonly attribute nsIDOMMimeTypeArray mimeTypes; */
234 : NS_IMETHODIMP nsDOMNavigator::GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes)
235 : {
236 : return NS_ERROR_NOT_IMPLEMENTED;
237 : }
238 :
239 : /* readonly attribute DOMString platform; */
240 : NS_IMETHODIMP nsDOMNavigator::GetPlatform(nsAString & aPlatform)
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 :
245 : /* readonly attribute DOMString oscpu; */
246 : NS_IMETHODIMP nsDOMNavigator::GetOscpu(nsAString & aOscpu)
247 : {
248 : return NS_ERROR_NOT_IMPLEMENTED;
249 : }
250 :
251 : /* readonly attribute DOMString vendor; */
252 : NS_IMETHODIMP nsDOMNavigator::GetVendor(nsAString & aVendor)
253 : {
254 : return NS_ERROR_NOT_IMPLEMENTED;
255 : }
256 :
257 : /* readonly attribute DOMString vendorSub; */
258 : NS_IMETHODIMP nsDOMNavigator::GetVendorSub(nsAString & aVendorSub)
259 : {
260 : return NS_ERROR_NOT_IMPLEMENTED;
261 : }
262 :
263 : /* readonly attribute DOMString product; */
264 : NS_IMETHODIMP nsDOMNavigator::GetProduct(nsAString & aProduct)
265 : {
266 : return NS_ERROR_NOT_IMPLEMENTED;
267 : }
268 :
269 : /* readonly attribute DOMString productSub; */
270 : NS_IMETHODIMP nsDOMNavigator::GetProductSub(nsAString & aProductSub)
271 : {
272 : return NS_ERROR_NOT_IMPLEMENTED;
273 : }
274 :
275 : /* readonly attribute nsIDOMPluginArray plugins; */
276 : NS_IMETHODIMP nsDOMNavigator::GetPlugins(nsIDOMPluginArray * *aPlugins)
277 : {
278 : return NS_ERROR_NOT_IMPLEMENTED;
279 : }
280 :
281 : /* readonly attribute DOMString userAgent; */
282 : NS_IMETHODIMP nsDOMNavigator::GetUserAgent(nsAString & aUserAgent)
283 : {
284 : return NS_ERROR_NOT_IMPLEMENTED;
285 : }
286 :
287 : /* readonly attribute boolean cookieEnabled; */
288 : NS_IMETHODIMP nsDOMNavigator::GetCookieEnabled(bool *aCookieEnabled)
289 : {
290 : return NS_ERROR_NOT_IMPLEMENTED;
291 : }
292 :
293 : /* readonly attribute boolean onLine; */
294 : NS_IMETHODIMP nsDOMNavigator::GetOnLine(bool *aOnLine)
295 : {
296 : return NS_ERROR_NOT_IMPLEMENTED;
297 : }
298 :
299 : /* readonly attribute DOMString buildID; */
300 : NS_IMETHODIMP nsDOMNavigator::GetBuildID(nsAString & aBuildID)
301 : {
302 : return NS_ERROR_NOT_IMPLEMENTED;
303 : }
304 :
305 : /* readonly attribute DOMString doNotTrack; */
306 : NS_IMETHODIMP nsDOMNavigator::GetDoNotTrack(nsAString & aDoNotTrack)
307 : {
308 : return NS_ERROR_NOT_IMPLEMENTED;
309 : }
310 :
311 : /* readonly attribute nsIDOMMozPowerManager mozPower; */
312 : NS_IMETHODIMP nsDOMNavigator::GetMozPower(nsIDOMMozPowerManager * *aMozPower)
313 : {
314 : return NS_ERROR_NOT_IMPLEMENTED;
315 : }
316 :
317 : /* boolean javaEnabled (); */
318 : NS_IMETHODIMP nsDOMNavigator::JavaEnabled(bool *_retval NS_OUTPARAM)
319 : {
320 : return NS_ERROR_NOT_IMPLEMENTED;
321 : }
322 :
323 : /* boolean taintEnabled (); */
324 : NS_IMETHODIMP nsDOMNavigator::TaintEnabled(bool *_retval NS_OUTPARAM)
325 : {
326 : return NS_ERROR_NOT_IMPLEMENTED;
327 : }
328 :
329 : /* [implicit_jscontext] void mozVibrate (in jsval aPattern); */
330 : NS_IMETHODIMP nsDOMNavigator::MozVibrate(const JS::Value & aPattern, JSContext* cx)
331 : {
332 : return NS_ERROR_NOT_IMPLEMENTED;
333 : }
334 :
335 : /* nsIDOMMozWakeLock requestWakeLock (in DOMString aTopic); */
336 : NS_IMETHODIMP nsDOMNavigator::RequestWakeLock(const nsAString & aTopic, nsIDOMMozWakeLock * *_retval NS_OUTPARAM)
337 : {
338 : return NS_ERROR_NOT_IMPLEMENTED;
339 : }
340 :
341 : /* End of implementation class template. */
342 : #endif
343 :
344 :
345 : #endif /* __gen_nsIDOMNavigator_h__ */
|