LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMHTMLCanvasElement.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMHTMLCanvasElement.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMHTMLCanvasElement_h__
       6                 : #define __gen_nsIDOMHTMLCanvasElement_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIDOMHTMLElement_h__
      10                 : #include "nsIDOMHTMLElement.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                 : // for jsval
      20                 : #include "jsapi.h"
      21                 : class nsIDOMFile; /* forward declaration */
      22                 : 
      23                 : class nsIVariant; /* forward declaration */
      24                 : 
      25                 : class nsIInputStreamCallback; /* forward declaration */
      26                 : 
      27                 : 
      28                 : /* starting interface:    nsIDOMHTMLCanvasElement */
      29                 : #define NS_IDOMHTMLCANVASELEMENT_IID_STR "dbbeeba1-3c20-4d9d-ac82-98b69fd819a9"
      30                 : 
      31                 : #define NS_IDOMHTMLCANVASELEMENT_IID \
      32                 :   {0xdbbeeba1, 0x3c20, 0x4d9d, \
      33                 :     { 0xac, 0x82, 0x98, 0xb6, 0x9f, 0xd8, 0x19, 0xa9 }}
      34                 : 
      35               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLCanvasElement : public nsIDOMHTMLElement {
      36                 :  public: 
      37                 : 
      38                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLCANVASELEMENT_IID)
      39                 : 
      40                 :   /* attribute unsigned long width; */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRUint32 *aWidth) = 0;
      42                 :   NS_SCRIPTABLE NS_IMETHOD SetWidth(PRUint32 aWidth) = 0;
      43                 : 
      44                 :   /* attribute unsigned long height; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRUint32 *aHeight) = 0;
      46                 :   NS_SCRIPTABLE NS_IMETHOD SetHeight(PRUint32 aHeight) = 0;
      47                 : 
      48                 :   /* attribute boolean mozOpaque; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetMozOpaque(bool *aMozOpaque) = 0;
      50                 :   NS_SCRIPTABLE NS_IMETHOD SetMozOpaque(bool aMozOpaque) = 0;
      51                 : 
      52                 :   /* nsISupports getContext (in DOMString contextId, [optional] in jsval contextOptions); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetContext(const nsAString & contextId, const JS::Value & contextOptions, nsISupports * *_retval NS_OUTPARAM) = 0;
      54                 : 
      55                 :   /* [optional_argc] DOMString toDataURL ([optional] in DOMString type, [optional] in nsIVariant params); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD ToDataURL(const nsAString & type, nsIVariant *params, PRUint8 _argc, nsAString & _retval NS_OUTPARAM) = 0;
      57                 : 
      58                 :   /* [optional_argc] nsIDOMFile mozGetAsFile (in DOMString name, [optional] in DOMString type); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, PRUint8 _argc, nsIDOMFile * *_retval NS_OUTPARAM) = 0;
      60                 : 
      61                 :   /* nsISupports MozGetIPCContext (in DOMString contextId); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval NS_OUTPARAM) = 0;
      63                 : 
      64                 :   /* void mozFetchAsStream (in nsIInputStreamCallback callback, [optional] in DOMString type); */
      65                 :   NS_SCRIPTABLE NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type) = 0;
      66                 : 
      67                 : };
      68                 : 
      69                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLCanvasElement, NS_IDOMHTMLCANVASELEMENT_IID)
      70                 : 
      71                 : /* Use this macro when declaring classes that implement this interface. */
      72                 : #define NS_DECL_NSIDOMHTMLCANVASELEMENT \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRUint32 *aWidth); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD SetWidth(PRUint32 aWidth); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRUint32 *aHeight); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD SetHeight(PRUint32 aHeight); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetMozOpaque(bool *aMozOpaque); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD SetMozOpaque(bool aMozOpaque); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetContext(const nsAString & contextId, const JS::Value & contextOptions, nsISupports * *_retval NS_OUTPARAM); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD ToDataURL(const nsAString & type, nsIVariant *params, PRUint8 _argc, nsAString & _retval NS_OUTPARAM); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, PRUint8 _argc, nsIDOMFile * *_retval NS_OUTPARAM); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval NS_OUTPARAM); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type); 
      84                 : 
      85                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      86                 : #define NS_FORWARD_NSIDOMHTMLCANVASELEMENT(_to) \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRUint32 *aWidth) { return _to GetWidth(aWidth); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD SetWidth(PRUint32 aWidth) { return _to SetWidth(aWidth); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRUint32 *aHeight) { return _to GetHeight(aHeight); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD SetHeight(PRUint32 aHeight) { return _to SetHeight(aHeight); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetMozOpaque(bool *aMozOpaque) { return _to GetMozOpaque(aMozOpaque); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD SetMozOpaque(bool aMozOpaque) { return _to SetMozOpaque(aMozOpaque); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetContext(const nsAString & contextId, const JS::Value & contextOptions, nsISupports * *_retval NS_OUTPARAM) { return _to GetContext(contextId, contextOptions, _retval); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD ToDataURL(const nsAString & type, nsIVariant *params, PRUint8 _argc, nsAString & _retval NS_OUTPARAM) { return _to ToDataURL(type, params, _argc, _retval); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, PRUint8 _argc, nsIDOMFile * *_retval NS_OUTPARAM) { return _to MozGetAsFile(name, type, _argc, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval NS_OUTPARAM) { return _to MozGetIPCContext(contextId, _retval); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type) { return _to MozFetchAsStream(callback, type); } 
      98                 : 
      99                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     100                 : #define NS_FORWARD_SAFE_NSIDOMHTMLCANVASELEMENT(_to) \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRUint32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD SetWidth(PRUint32 aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRUint32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD SetHeight(PRUint32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetMozOpaque(bool *aMozOpaque) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOpaque(aMozOpaque); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD SetMozOpaque(bool aMozOpaque) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOpaque(aMozOpaque); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetContext(const nsAString & contextId, const JS::Value & contextOptions, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContext(contextId, contextOptions, _retval); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD ToDataURL(const nsAString & type, nsIVariant *params, PRUint8 _argc, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToDataURL(type, params, _argc, _retval); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD MozGetAsFile(const nsAString & name, const nsAString & type, PRUint8 _argc, nsIDOMFile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozGetAsFile(name, type, _argc, _retval); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozGetIPCContext(contextId, _retval); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozFetchAsStream(callback, type); } 
     112                 : 
     113                 : #if 0
     114                 : /* Use the code below as a template for the implementation class for this interface. */
     115                 : 
     116                 : /* Header file */
     117                 : class nsDOMHTMLCanvasElement : public nsIDOMHTMLCanvasElement
     118                 : {
     119                 : public:
     120                 :   NS_DECL_ISUPPORTS
     121                 :   NS_DECL_NSIDOMHTMLCANVASELEMENT
     122                 : 
     123                 :   nsDOMHTMLCanvasElement();
     124                 : 
     125                 : private:
     126                 :   ~nsDOMHTMLCanvasElement();
     127                 : 
     128                 : protected:
     129                 :   /* additional members */
     130                 : };
     131                 : 
     132                 : /* Implementation file */
     133                 : NS_IMPL_ISUPPORTS1(nsDOMHTMLCanvasElement, nsIDOMHTMLCanvasElement)
     134                 : 
     135                 : nsDOMHTMLCanvasElement::nsDOMHTMLCanvasElement()
     136                 : {
     137                 :   /* member initializers and constructor code */
     138                 : }
     139                 : 
     140                 : nsDOMHTMLCanvasElement::~nsDOMHTMLCanvasElement()
     141                 : {
     142                 :   /* destructor code */
     143                 : }
     144                 : 
     145                 : /* attribute unsigned long width; */
     146                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::GetWidth(PRUint32 *aWidth)
     147                 : {
     148                 :     return NS_ERROR_NOT_IMPLEMENTED;
     149                 : }
     150                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::SetWidth(PRUint32 aWidth)
     151                 : {
     152                 :     return NS_ERROR_NOT_IMPLEMENTED;
     153                 : }
     154                 : 
     155                 : /* attribute unsigned long height; */
     156                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::GetHeight(PRUint32 *aHeight)
     157                 : {
     158                 :     return NS_ERROR_NOT_IMPLEMENTED;
     159                 : }
     160                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::SetHeight(PRUint32 aHeight)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* attribute boolean mozOpaque; */
     166                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::GetMozOpaque(bool *aMozOpaque)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::SetMozOpaque(bool aMozOpaque)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* nsISupports getContext (in DOMString contextId, [optional] in jsval contextOptions); */
     176                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::GetContext(const nsAString & contextId, const JS::Value & contextOptions, nsISupports * *_retval NS_OUTPARAM)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* [optional_argc] DOMString toDataURL ([optional] in DOMString type, [optional] in nsIVariant params); */
     182                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::ToDataURL(const nsAString & type, nsIVariant *params, PRUint8 _argc, nsAString & _retval NS_OUTPARAM)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* [optional_argc] nsIDOMFile mozGetAsFile (in DOMString name, [optional] in DOMString type); */
     188                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::MozGetAsFile(const nsAString & name, const nsAString & type, PRUint8 _argc, nsIDOMFile * *_retval NS_OUTPARAM)
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* nsISupports MozGetIPCContext (in DOMString contextId); */
     194                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::MozGetIPCContext(const nsAString & contextId, nsISupports * *_retval NS_OUTPARAM)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* void mozFetchAsStream (in nsIInputStreamCallback callback, [optional] in DOMString type); */
     200                 : NS_IMETHODIMP nsDOMHTMLCanvasElement::MozFetchAsStream(nsIInputStreamCallback *callback, const nsAString & type)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* End of implementation class template. */
     206                 : #endif
     207                 : 
     208                 : 
     209                 : #endif /* __gen_nsIDOMHTMLCanvasElement_h__ */

Generated by: LCOV version 1.7