/usr/include/thunderbird/nsIDOMDOMRequest.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMDOMRequest.idl
*/
#ifndef __gen_nsIDOMDOMRequest_h__
#define __gen_nsIDOMDOMRequest_h__
#ifndef __gen_nsIDOMEventTarget_h__
#include "nsIDOMEventTarget.h"
#endif
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class mozIDOMWindow; /* forward declaration */
class nsIDOMDOMCursor; /* forward declaration */
class nsICursorContinueCallback; /* forward declaration */
/* starting interface: nsIDOMDOMRequest */
#define NS_IDOMDOMREQUEST_IID_STR "e39da69e-2232-4e49-9856-b8a4a6210336"
#define NS_IDOMDOMREQUEST_IID \
{0xe39da69e, 0x2232, 0x4e49, \
{ 0x98, 0x56, 0xb8, 0xa4, 0xa6, 0x21, 0x03, 0x36 }}
class NS_NO_VTABLE nsIDOMDOMRequest : public nsIDOMEventTarget {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOMREQUEST_IID)
/* readonly attribute DOMString readyState; */
NS_IMETHOD GetReadyState(nsAString & aReadyState) = 0;
/* readonly attribute jsval result; */
NS_IMETHOD GetResult(JS::MutableHandleValue aResult) = 0;
/* readonly attribute nsISupports error; */
NS_IMETHOD GetError(nsISupports * *aError) = 0;
/* [implicit_jscontext] attribute jsval onsuccess; */
NS_IMETHOD GetOnsuccess(JSContext* cx, JS::MutableHandleValue aOnsuccess) = 0;
NS_IMETHOD SetOnsuccess(JSContext* cx, JS::HandleValue aOnsuccess) = 0;
/* [implicit_jscontext] attribute jsval onerror; */
NS_IMETHOD GetOnerror(JSContext* cx, JS::MutableHandleValue aOnerror) = 0;
NS_IMETHOD SetOnerror(JSContext* cx, JS::HandleValue aOnerror) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDOMRequest, NS_IDOMDOMREQUEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMDOMREQUEST \
NS_IMETHOD GetReadyState(nsAString & aReadyState) override; \
NS_IMETHOD GetResult(JS::MutableHandleValue aResult) override; \
NS_IMETHOD GetError(nsISupports * *aError) override; \
NS_IMETHOD GetOnsuccess(JSContext* cx, JS::MutableHandleValue aOnsuccess) override; \
NS_IMETHOD SetOnsuccess(JSContext* cx, JS::HandleValue aOnsuccess) override; \
NS_IMETHOD GetOnerror(JSContext* cx, JS::MutableHandleValue aOnerror) override; \
NS_IMETHOD SetOnerror(JSContext* cx, JS::HandleValue aOnerror) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDOMDOMREQUEST \
NS_METHOD GetReadyState(nsAString & aReadyState); \
NS_METHOD GetResult(JS::MutableHandleValue aResult); \
NS_METHOD GetError(nsISupports * *aError); \
NS_METHOD GetOnsuccess(JSContext* cx, JS::MutableHandleValue aOnsuccess); \
NS_METHOD SetOnsuccess(JSContext* cx, JS::HandleValue aOnsuccess); \
NS_METHOD GetOnerror(JSContext* cx, JS::MutableHandleValue aOnerror); \
NS_METHOD SetOnerror(JSContext* cx, JS::HandleValue aOnerror);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMDOMREQUEST(_to) \
NS_IMETHOD GetReadyState(nsAString & aReadyState) override { return _to GetReadyState(aReadyState); } \
NS_IMETHOD GetResult(JS::MutableHandleValue aResult) override { return _to GetResult(aResult); } \
NS_IMETHOD GetError(nsISupports * *aError) override { return _to GetError(aError); } \
NS_IMETHOD GetOnsuccess(JSContext* cx, JS::MutableHandleValue aOnsuccess) override { return _to GetOnsuccess(cx, aOnsuccess); } \
NS_IMETHOD SetOnsuccess(JSContext* cx, JS::HandleValue aOnsuccess) override { return _to SetOnsuccess(cx, aOnsuccess); } \
NS_IMETHOD GetOnerror(JSContext* cx, JS::MutableHandleValue aOnerror) override { return _to GetOnerror(cx, aOnerror); } \
NS_IMETHOD SetOnerror(JSContext* cx, JS::HandleValue aOnerror) override { return _to SetOnerror(cx, aOnerror); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMDOMREQUEST(_to) \
NS_IMETHOD GetReadyState(nsAString & aReadyState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
NS_IMETHOD GetResult(JS::MutableHandleValue aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
NS_IMETHOD GetError(nsISupports * *aError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetError(aError); } \
NS_IMETHOD GetOnsuccess(JSContext* cx, JS::MutableHandleValue aOnsuccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnsuccess(cx, aOnsuccess); } \
NS_IMETHOD SetOnsuccess(JSContext* cx, JS::HandleValue aOnsuccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnsuccess(cx, aOnsuccess); } \
NS_IMETHOD GetOnerror(JSContext* cx, JS::MutableHandleValue aOnerror) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(cx, aOnerror); } \
NS_IMETHOD SetOnerror(JSContext* cx, JS::HandleValue aOnerror) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(cx, aOnerror); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMDOMRequest : public nsIDOMDOMRequest
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMDOMREQUEST
nsDOMDOMRequest();
private:
~nsDOMDOMRequest();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsDOMDOMRequest, nsIDOMDOMRequest)
nsDOMDOMRequest::nsDOMDOMRequest()
{
/* member initializers and constructor code */
}
nsDOMDOMRequest::~nsDOMDOMRequest()
{
/* destructor code */
}
/* readonly attribute DOMString readyState; */
NS_IMETHODIMP nsDOMDOMRequest::GetReadyState(nsAString & aReadyState)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute jsval result; */
NS_IMETHODIMP nsDOMDOMRequest::GetResult(JS::MutableHandleValue aResult)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupports error; */
NS_IMETHODIMP nsDOMDOMRequest::GetError(nsISupports * *aError)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onsuccess; */
NS_IMETHODIMP nsDOMDOMRequest::GetOnsuccess(JSContext* cx, JS::MutableHandleValue aOnsuccess)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMDOMRequest::SetOnsuccess(JSContext* cx, JS::HandleValue aOnsuccess)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onerror; */
NS_IMETHODIMP nsDOMDOMRequest::GetOnerror(JSContext* cx, JS::MutableHandleValue aOnerror)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMDOMRequest::SetOnerror(JSContext* cx, JS::HandleValue aOnerror)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDOMRequestService */
#define NS_IDOMREQUESTSERVICE_IID_STR "9a57e5de-ce93-45fa-8145-755722834f7c"
#define NS_IDOMREQUESTSERVICE_IID \
{0x9a57e5de, 0xce93, 0x45fa, \
{ 0x81, 0x45, 0x75, 0x57, 0x22, 0x83, 0x4f, 0x7c }}
class NS_NO_VTABLE nsIDOMRequestService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMREQUESTSERVICE_IID)
/* nsIDOMDOMRequest createRequest (in mozIDOMWindow window); */
NS_IMETHOD CreateRequest(mozIDOMWindow *window, nsIDOMDOMRequest * *_retval) = 0;
/* nsIDOMDOMCursor createCursor (in mozIDOMWindow window, in nsICursorContinueCallback aCallback); */
NS_IMETHOD CreateCursor(mozIDOMWindow *window, nsICursorContinueCallback *aCallback, nsIDOMDOMCursor * *_retval) = 0;
/* void fireSuccess (in nsIDOMDOMRequest request, in jsval result); */
NS_IMETHOD FireSuccess(nsIDOMDOMRequest *request, JS::HandleValue result) = 0;
/* void fireError (in nsIDOMDOMRequest request, in DOMString error); */
NS_IMETHOD FireError(nsIDOMDOMRequest *request, const nsAString & error) = 0;
/* void fireDetailedError (in nsIDOMDOMRequest request, in nsISupports error); */
NS_IMETHOD FireDetailedError(nsIDOMDOMRequest *request, nsISupports *error) = 0;
/* void fireSuccessAsync (in nsIDOMDOMRequest request, in jsval result); */
NS_IMETHOD FireSuccessAsync(nsIDOMDOMRequest *request, JS::HandleValue result) = 0;
/* void fireErrorAsync (in nsIDOMDOMRequest request, in DOMString error); */
NS_IMETHOD FireErrorAsync(nsIDOMDOMRequest *request, const nsAString & error) = 0;
/* void fireDone (in nsIDOMDOMCursor cursor); */
NS_IMETHOD FireDone(nsIDOMDOMCursor *cursor) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMRequestService, NS_IDOMREQUESTSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMREQUESTSERVICE \
NS_IMETHOD CreateRequest(mozIDOMWindow *window, nsIDOMDOMRequest * *_retval) override; \
NS_IMETHOD CreateCursor(mozIDOMWindow *window, nsICursorContinueCallback *aCallback, nsIDOMDOMCursor * *_retval) override; \
NS_IMETHOD FireSuccess(nsIDOMDOMRequest *request, JS::HandleValue result) override; \
NS_IMETHOD FireError(nsIDOMDOMRequest *request, const nsAString & error) override; \
NS_IMETHOD FireDetailedError(nsIDOMDOMRequest *request, nsISupports *error) override; \
NS_IMETHOD FireSuccessAsync(nsIDOMDOMRequest *request, JS::HandleValue result) override; \
NS_IMETHOD FireErrorAsync(nsIDOMDOMRequest *request, const nsAString & error) override; \
NS_IMETHOD FireDone(nsIDOMDOMCursor *cursor) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDOMREQUESTSERVICE \
NS_METHOD CreateRequest(mozIDOMWindow *window, nsIDOMDOMRequest * *_retval); \
NS_METHOD CreateCursor(mozIDOMWindow *window, nsICursorContinueCallback *aCallback, nsIDOMDOMCursor * *_retval); \
NS_METHOD FireSuccess(nsIDOMDOMRequest *request, JS::HandleValue result); \
NS_METHOD FireError(nsIDOMDOMRequest *request, const nsAString & error); \
NS_METHOD FireDetailedError(nsIDOMDOMRequest *request, nsISupports *error); \
NS_METHOD FireSuccessAsync(nsIDOMDOMRequest *request, JS::HandleValue result); \
NS_METHOD FireErrorAsync(nsIDOMDOMRequest *request, const nsAString & error); \
NS_METHOD FireDone(nsIDOMDOMCursor *cursor);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMREQUESTSERVICE(_to) \
NS_IMETHOD CreateRequest(mozIDOMWindow *window, nsIDOMDOMRequest * *_retval) override { return _to CreateRequest(window, _retval); } \
NS_IMETHOD CreateCursor(mozIDOMWindow *window, nsICursorContinueCallback *aCallback, nsIDOMDOMCursor * *_retval) override { return _to CreateCursor(window, aCallback, _retval); } \
NS_IMETHOD FireSuccess(nsIDOMDOMRequest *request, JS::HandleValue result) override { return _to FireSuccess(request, result); } \
NS_IMETHOD FireError(nsIDOMDOMRequest *request, const nsAString & error) override { return _to FireError(request, error); } \
NS_IMETHOD FireDetailedError(nsIDOMDOMRequest *request, nsISupports *error) override { return _to FireDetailedError(request, error); } \
NS_IMETHOD FireSuccessAsync(nsIDOMDOMRequest *request, JS::HandleValue result) override { return _to FireSuccessAsync(request, result); } \
NS_IMETHOD FireErrorAsync(nsIDOMDOMRequest *request, const nsAString & error) override { return _to FireErrorAsync(request, error); } \
NS_IMETHOD FireDone(nsIDOMDOMCursor *cursor) override { return _to FireDone(cursor); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMREQUESTSERVICE(_to) \
NS_IMETHOD CreateRequest(mozIDOMWindow *window, nsIDOMDOMRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRequest(window, _retval); } \
NS_IMETHOD CreateCursor(mozIDOMWindow *window, nsICursorContinueCallback *aCallback, nsIDOMDOMCursor * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCursor(window, aCallback, _retval); } \
NS_IMETHOD FireSuccess(nsIDOMDOMRequest *request, JS::HandleValue result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireSuccess(request, result); } \
NS_IMETHOD FireError(nsIDOMDOMRequest *request, const nsAString & error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireError(request, error); } \
NS_IMETHOD FireDetailedError(nsIDOMDOMRequest *request, nsISupports *error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireDetailedError(request, error); } \
NS_IMETHOD FireSuccessAsync(nsIDOMDOMRequest *request, JS::HandleValue result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireSuccessAsync(request, result); } \
NS_IMETHOD FireErrorAsync(nsIDOMDOMRequest *request, const nsAString & error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireErrorAsync(request, error); } \
NS_IMETHOD FireDone(nsIDOMDOMCursor *cursor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireDone(cursor); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMRequestService : public nsIDOMRequestService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMREQUESTSERVICE
nsDOMRequestService();
private:
~nsDOMRequestService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsDOMRequestService, nsIDOMRequestService)
nsDOMRequestService::nsDOMRequestService()
{
/* member initializers and constructor code */
}
nsDOMRequestService::~nsDOMRequestService()
{
/* destructor code */
}
/* nsIDOMDOMRequest createRequest (in mozIDOMWindow window); */
NS_IMETHODIMP nsDOMRequestService::CreateRequest(mozIDOMWindow *window, nsIDOMDOMRequest * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMDOMCursor createCursor (in mozIDOMWindow window, in nsICursorContinueCallback aCallback); */
NS_IMETHODIMP nsDOMRequestService::CreateCursor(mozIDOMWindow *window, nsICursorContinueCallback *aCallback, nsIDOMDOMCursor * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fireSuccess (in nsIDOMDOMRequest request, in jsval result); */
NS_IMETHODIMP nsDOMRequestService::FireSuccess(nsIDOMDOMRequest *request, JS::HandleValue result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fireError (in nsIDOMDOMRequest request, in DOMString error); */
NS_IMETHODIMP nsDOMRequestService::FireError(nsIDOMDOMRequest *request, const nsAString & error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fireDetailedError (in nsIDOMDOMRequest request, in nsISupports error); */
NS_IMETHODIMP nsDOMRequestService::FireDetailedError(nsIDOMDOMRequest *request, nsISupports *error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fireSuccessAsync (in nsIDOMDOMRequest request, in jsval result); */
NS_IMETHODIMP nsDOMRequestService::FireSuccessAsync(nsIDOMDOMRequest *request, JS::HandleValue result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fireErrorAsync (in nsIDOMDOMRequest request, in DOMString error); */
NS_IMETHODIMP nsDOMRequestService::FireErrorAsync(nsIDOMDOMRequest *request, const nsAString & error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fireDone (in nsIDOMDOMCursor cursor); */
NS_IMETHODIMP nsDOMRequestService::FireDone(nsIDOMDOMCursor *cursor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMDOMRequest_h__ */
|