/usr/include/thunderbird/nsIDOMHTMLCanvasElement.h is in thunderbird-dev 1:24.4.0+build1-0ubuntu1.
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 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-24.4.0+build1/mozilla/dom/interfaces/html/nsIDOMHTMLCanvasElement.idl
*/
#ifndef __gen_nsIDOMHTMLCanvasElement_h__
#define __gen_nsIDOMHTMLCanvasElement_h__
#ifndef __gen_nsIDOMHTMLElement_h__
#include "nsIDOMHTMLElement.h"
#endif
#include "jspubtd.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
// for jsval
#include "jsapi.h"
class nsIDOMBlob; /* forward declaration */
class nsIDOMFile; /* forward declaration */
class nsIVariant; /* forward declaration */
class nsIInputStreamCallback; /* forward declaration */
/* starting interface: nsIDOMMozCanvasPrintState */
#define NS_IDOMMOZCANVASPRINTSTATE_IID_STR "8d5fb8a0-7782-11e1-b0c4-0800200c9a67"
#define NS_IDOMMOZCANVASPRINTSTATE_IID \
{0x8d5fb8a0, 0x7782, 0x11e1, \
{ 0xb0, 0xc4, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x67 }}
class NS_NO_VTABLE nsIDOMMozCanvasPrintState : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZCANVASPRINTSTATE_IID)
/* readonly attribute nsISupports context; */
NS_IMETHOD GetContext(nsISupports * *aContext) = 0;
/* void done (); */
NS_IMETHOD Done(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozCanvasPrintState, NS_IDOMMOZCANVASPRINTSTATE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMMOZCANVASPRINTSTATE \
NS_IMETHOD GetContext(nsISupports * *aContext); \
NS_IMETHOD Done(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMMOZCANVASPRINTSTATE(_to) \
NS_IMETHOD GetContext(nsISupports * *aContext) { return _to GetContext(aContext); } \
NS_IMETHOD Done(void) { return _to Done(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMMOZCANVASPRINTSTATE(_to) \
NS_IMETHOD GetContext(nsISupports * *aContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContext(aContext); } \
NS_IMETHOD Done(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Done(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMMozCanvasPrintState : public nsIDOMMozCanvasPrintState
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMMOZCANVASPRINTSTATE
nsDOMMozCanvasPrintState();
private:
~nsDOMMozCanvasPrintState();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMMozCanvasPrintState, nsIDOMMozCanvasPrintState)
nsDOMMozCanvasPrintState::nsDOMMozCanvasPrintState()
{
/* member initializers and constructor code */
}
nsDOMMozCanvasPrintState::~nsDOMMozCanvasPrintState()
{
/* destructor code */
}
/* readonly attribute nsISupports context; */
NS_IMETHODIMP nsDOMMozCanvasPrintState::GetContext(nsISupports * *aContext)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void done (); */
NS_IMETHODIMP nsDOMMozCanvasPrintState::Done()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIPrintCallback */
#define NS_IPRINTCALLBACK_IID_STR "8d5fb8a0-7782-11e1-b0c4-0800200c9a66"
#define NS_IPRINTCALLBACK_IID \
{0x8d5fb8a0, 0x7782, 0x11e1, \
{ 0xb0, 0xc4, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
class NS_NO_VTABLE nsIPrintCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTCALLBACK_IID)
/* void render (in nsIDOMMozCanvasPrintState ctx); */
NS_IMETHOD Render(nsIDOMMozCanvasPrintState *ctx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrintCallback, NS_IPRINTCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRINTCALLBACK \
NS_IMETHOD Render(nsIDOMMozCanvasPrintState *ctx);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRINTCALLBACK(_to) \
NS_IMETHOD Render(nsIDOMMozCanvasPrintState *ctx) { return _to Render(ctx); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRINTCALLBACK(_to) \
NS_IMETHOD Render(nsIDOMMozCanvasPrintState *ctx) { return !_to ? NS_ERROR_NULL_POINTER : _to->Render(ctx); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPrintCallback : public nsIPrintCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPRINTCALLBACK
nsPrintCallback();
private:
~nsPrintCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPrintCallback, nsIPrintCallback)
nsPrintCallback::nsPrintCallback()
{
/* member initializers and constructor code */
}
nsPrintCallback::~nsPrintCallback()
{
/* destructor code */
}
/* void render (in nsIDOMMozCanvasPrintState ctx); */
NS_IMETHODIMP nsPrintCallback::Render(nsIDOMMozCanvasPrintState *ctx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIFileCallback */
#define NS_IFILECALLBACK_IID_STR "6e9ffb59-2067-4aef-a51c-65e65a3e0d81"
#define NS_IFILECALLBACK_IID \
{0x6e9ffb59, 0x2067, 0x4aef, \
{ 0xa5, 0x1c, 0x65, 0xe6, 0x5a, 0x3e, 0x0d, 0x81 }}
class NS_NO_VTABLE nsIFileCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILECALLBACK_IID)
/* void receive (in nsIDOMBlob file); */
NS_IMETHOD Receive(nsIDOMBlob *file) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileCallback, NS_IFILECALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFILECALLBACK \
NS_IMETHOD Receive(nsIDOMBlob *file);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFILECALLBACK(_to) \
NS_IMETHOD Receive(nsIDOMBlob *file) { return _to Receive(file); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFILECALLBACK(_to) \
NS_IMETHOD Receive(nsIDOMBlob *file) { return !_to ? NS_ERROR_NULL_POINTER : _to->Receive(file); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsFileCallback : public nsIFileCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIFILECALLBACK
nsFileCallback();
private:
~nsFileCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsFileCallback, nsIFileCallback)
nsFileCallback::nsFileCallback()
{
/* member initializers and constructor code */
}
nsFileCallback::~nsFileCallback()
{
/* destructor code */
}
/* void receive (in nsIDOMBlob file); */
NS_IMETHODIMP nsFileCallback::Receive(nsIDOMBlob *file)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDOMHTMLCanvasElement */
#define NS_IDOMHTMLCANVASELEMENT_IID_STR "350fddae-4476-4dcd-bccf-9c9c356354a6"
#define NS_IDOMHTMLCANVASELEMENT_IID \
{0x350fddae, 0x4476, 0x4dcd, \
{ 0xbc, 0xcf, 0x9c, 0x9c, 0x35, 0x63, 0x54, 0xa6 }}
class NS_NO_VTABLE nsIDOMHTMLCanvasElement : public nsIDOMHTMLElement {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLCANVASELEMENT_IID)
/* attribute unsigned long width; */
NS_IMETHOD GetWidth(uint32_t *aWidth) = 0;
NS_IMETHOD SetWidth(uint32_t aWidth) = 0;
/* attribute unsigned long height; */
NS_IMETHOD GetHeight(uint32_t *aHeight) = 0;
NS_IMETHOD SetHeight(uint32_t aHeight) = 0;
/* attribute boolean mozOpaque; */
NS_IMETHOD GetMozOpaque(bool *aMozOpaque) = 0;
NS_IMETHOD SetMozOpaque(bool aMozOpaque) = 0;
/* [implicit_jscontext] DOMString toDataURL ([optional] in DOMString type, [optional] in jsval params); */
NS_IMETHOD ToDataURL(const nsAString & type, const JS::Value & params, JSContext* cx, nsAString & _retval) = 0;
/* nsIDOMFile mozGetAsFile (in DOMString name, [optional] in DOMString type); */
NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, nsIDOMFile * *_retval) = 0;
/* void toBlob (in nsIFileCallback callback, [optional] in DOMString type); */
NS_IMETHOD ToBlob(nsIFileCallback *callback, const nsAString & type) = 0;
/* nsISupports MozGetIPCContext (in DOMString contextId); */
NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval) = 0;
/* void mozFetchAsStream (in nsIInputStreamCallback callback, [optional] in DOMString type); */
NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type) = 0;
/* attribute nsIPrintCallback mozPrintCallback; */
NS_IMETHOD GetMozPrintCallback(nsIPrintCallback * *aMozPrintCallback) = 0;
NS_IMETHOD SetMozPrintCallback(nsIPrintCallback *aMozPrintCallback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLCanvasElement, NS_IDOMHTMLCANVASELEMENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMHTMLCANVASELEMENT \
NS_IMETHOD GetWidth(uint32_t *aWidth); \
NS_IMETHOD SetWidth(uint32_t aWidth); \
NS_IMETHOD GetHeight(uint32_t *aHeight); \
NS_IMETHOD SetHeight(uint32_t aHeight); \
NS_IMETHOD GetMozOpaque(bool *aMozOpaque); \
NS_IMETHOD SetMozOpaque(bool aMozOpaque); \
NS_IMETHOD ToDataURL(const nsAString & type, const JS::Value & params, JSContext* cx, nsAString & _retval); \
NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, nsIDOMFile * *_retval); \
NS_IMETHOD ToBlob(nsIFileCallback *callback, const nsAString & type); \
NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval); \
NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type); \
NS_IMETHOD GetMozPrintCallback(nsIPrintCallback * *aMozPrintCallback); \
NS_IMETHOD SetMozPrintCallback(nsIPrintCallback *aMozPrintCallback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMHTMLCANVASELEMENT(_to) \
NS_IMETHOD GetWidth(uint32_t *aWidth) { return _to GetWidth(aWidth); } \
NS_IMETHOD SetWidth(uint32_t aWidth) { return _to SetWidth(aWidth); } \
NS_IMETHOD GetHeight(uint32_t *aHeight) { return _to GetHeight(aHeight); } \
NS_IMETHOD SetHeight(uint32_t aHeight) { return _to SetHeight(aHeight); } \
NS_IMETHOD GetMozOpaque(bool *aMozOpaque) { return _to GetMozOpaque(aMozOpaque); } \
NS_IMETHOD SetMozOpaque(bool aMozOpaque) { return _to SetMozOpaque(aMozOpaque); } \
NS_IMETHOD ToDataURL(const nsAString & type, const JS::Value & params, JSContext* cx, nsAString & _retval) { return _to ToDataURL(type, params, cx, _retval); } \
NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, nsIDOMFile * *_retval) { return _to MozGetAsFile(name, type, _retval); } \
NS_IMETHOD ToBlob(nsIFileCallback *callback, const nsAString & type) { return _to ToBlob(callback, type); } \
NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval) { return _to MozGetIPCContext(contextId, _retval); } \
NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type) { return _to MozFetchAsStream(callback, type); } \
NS_IMETHOD GetMozPrintCallback(nsIPrintCallback * *aMozPrintCallback) { return _to GetMozPrintCallback(aMozPrintCallback); } \
NS_IMETHOD SetMozPrintCallback(nsIPrintCallback *aMozPrintCallback) { return _to SetMozPrintCallback(aMozPrintCallback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMHTMLCANVASELEMENT(_to) \
NS_IMETHOD GetWidth(uint32_t *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
NS_IMETHOD SetWidth(uint32_t aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); } \
NS_IMETHOD GetHeight(uint32_t *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
NS_IMETHOD SetHeight(uint32_t aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \
NS_IMETHOD GetMozOpaque(bool *aMozOpaque) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOpaque(aMozOpaque); } \
NS_IMETHOD SetMozOpaque(bool aMozOpaque) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOpaque(aMozOpaque); } \
NS_IMETHOD ToDataURL(const nsAString & type, const JS::Value & params, JSContext* cx, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToDataURL(type, params, cx, _retval); } \
NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, nsIDOMFile * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozGetAsFile(name, type, _retval); } \
NS_IMETHOD ToBlob(nsIFileCallback *callback, const nsAString & type) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToBlob(callback, type); } \
NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozGetIPCContext(contextId, _retval); } \
NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozFetchAsStream(callback, type); } \
NS_IMETHOD GetMozPrintCallback(nsIPrintCallback * *aMozPrintCallback) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPrintCallback(aMozPrintCallback); } \
NS_IMETHOD SetMozPrintCallback(nsIPrintCallback *aMozPrintCallback) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozPrintCallback(aMozPrintCallback); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMHTMLCanvasElement : public nsIDOMHTMLCanvasElement
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMHTMLCANVASELEMENT
nsDOMHTMLCanvasElement();
private:
~nsDOMHTMLCanvasElement();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMHTMLCanvasElement, nsIDOMHTMLCanvasElement)
nsDOMHTMLCanvasElement::nsDOMHTMLCanvasElement()
{
/* member initializers and constructor code */
}
nsDOMHTMLCanvasElement::~nsDOMHTMLCanvasElement()
{
/* destructor code */
}
/* attribute unsigned long width; */
NS_IMETHODIMP nsDOMHTMLCanvasElement::GetWidth(uint32_t *aWidth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLCanvasElement::SetWidth(uint32_t aWidth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long height; */
NS_IMETHODIMP nsDOMHTMLCanvasElement::GetHeight(uint32_t *aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLCanvasElement::SetHeight(uint32_t aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean mozOpaque; */
NS_IMETHODIMP nsDOMHTMLCanvasElement::GetMozOpaque(bool *aMozOpaque)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLCanvasElement::SetMozOpaque(bool aMozOpaque)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] DOMString toDataURL ([optional] in DOMString type, [optional] in jsval params); */
NS_IMETHODIMP nsDOMHTMLCanvasElement::ToDataURL(const nsAString & type, const JS::Value & params, JSContext* cx, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMFile mozGetAsFile (in DOMString name, [optional] in DOMString type); */
NS_IMETHODIMP nsDOMHTMLCanvasElement::MozGetAsFile(const nsAString & name, const nsAString & type, nsIDOMFile * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void toBlob (in nsIFileCallback callback, [optional] in DOMString type); */
NS_IMETHODIMP nsDOMHTMLCanvasElement::ToBlob(nsIFileCallback *callback, const nsAString & type)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupports MozGetIPCContext (in DOMString contextId); */
NS_IMETHODIMP nsDOMHTMLCanvasElement::MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void mozFetchAsStream (in nsIInputStreamCallback callback, [optional] in DOMString type); */
NS_IMETHODIMP nsDOMHTMLCanvasElement::MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIPrintCallback mozPrintCallback; */
NS_IMETHODIMP nsDOMHTMLCanvasElement::GetMozPrintCallback(nsIPrintCallback * *aMozPrintCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLCanvasElement::SetMozPrintCallback(nsIPrintCallback *aMozPrintCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMHTMLCanvasElement_h__ */
|