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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/gfx/src/nsIScriptableRegion.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIScriptableRegion_h__
       6                 : #define __gen_nsIScriptableRegion_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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                 : class nsIntRegion;
      20                 : 
      21                 : /* starting interface:    nsIScriptableRegion */
      22                 : #define NS_ISCRIPTABLEREGION_IID_STR "a5f44cc7-2820-489b-b817-ae8a08506ff6"
      23                 : 
      24                 : #define NS_ISCRIPTABLEREGION_IID \
      25                 :   {0xa5f44cc7, 0x2820, 0x489b, \
      26                 :     { 0xb8, 0x17, 0xae, 0x8a, 0x08, 0x50, 0x6f, 0xf6 }}
      27                 : 
      28               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptableRegion : public nsISupports {
      29                 :  public: 
      30                 : 
      31                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEREGION_IID)
      32                 : 
      33                 :   /* void init (); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD Init(void) = 0;
      35                 : 
      36                 :   /* void setToRegion (in nsIScriptableRegion aRegion); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) = 0;
      38                 : 
      39                 :   /* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
      41                 : 
      42                 :   /* void intersectRegion (in nsIScriptableRegion aRegion); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) = 0;
      44                 : 
      45                 :   /* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
      47                 : 
      48                 :   /* void unionRegion (in nsIScriptableRegion aRegion); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) = 0;
      50                 : 
      51                 :   /* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
      53                 : 
      54                 :   /* void subtractRegion (in nsIScriptableRegion aRegion); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) = 0;
      56                 : 
      57                 :   /* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
      59                 : 
      60                 :   /* boolean isEmpty (); */
      61                 :   NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) = 0;
      62                 : 
      63                 :   /* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM) = 0;
      65                 : 
      66                 :   /* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM) = 0;
      68                 : 
      69                 :   /* void offset (in long aXOffset, in long aYOffset); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset) = 0;
      71                 : 
      72                 :   /* [implicit_jscontext] jsval getRects (); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM) = 0;
      74                 : 
      75                 :   /* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      76                 :   NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM) = 0;
      77                 : 
      78                 :   /* [noscript] readonly attribute nsIntRegion region; */
      79                 :   NS_IMETHOD GetRegion(nsIntRegion *aRegion) = 0;
      80                 : 
      81                 : };
      82                 : 
      83                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableRegion, NS_ISCRIPTABLEREGION_IID)
      84                 : 
      85                 : /* Use this macro when declaring classes that implement this interface. */
      86                 : #define NS_DECL_NSISCRIPTABLEREGION \
      87                 :   NS_SCRIPTABLE NS_IMETHOD Init(void); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM); \
     102                 :   NS_IMETHOD GetRegion(nsIntRegion *aRegion); 
     103                 : 
     104                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     105                 : #define NS_FORWARD_NSISCRIPTABLEREGION(_to) \
     106                 :   NS_SCRIPTABLE NS_IMETHOD Init(void) { return _to Init(); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) { return _to SetToRegion(aRegion); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to SetToRect(aX, aY, aWidth, aHeight); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) { return _to IntersectRegion(aRegion); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to IntersectRect(aX, aY, aWidth, aHeight); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) { return _to UnionRegion(aRegion); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to UnionRect(aX, aY, aWidth, aHeight); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) { return _to SubtractRegion(aRegion); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to SubtractRect(aX, aY, aWidth, aHeight); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return _to IsEmpty(_retval); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM) { return _to IsEqualRegion(aRegion, _retval); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM) { return _to GetBoundingBox(aX, aY, aWidth, aHeight); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset) { return _to Offset(aXOffset, aYOffset); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return _to GetRects(cx, _retval); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM) { return _to ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
     121                 :   NS_IMETHOD GetRegion(nsIntRegion *aRegion) { return _to GetRegion(aRegion); } 
     122                 : 
     123                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     124                 : #define NS_FORWARD_SAFE_NSISCRIPTABLEREGION(_to) \
     125                 :   NS_SCRIPTABLE NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRegion(aRegion); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRect(aX, aY, aWidth, aHeight); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRegion(aRegion); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRect(aX, aY, aWidth, aHeight); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRegion(aRegion); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRect(aX, aY, aWidth, aHeight); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRegion(aRegion); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRect(aX, aY, aWidth, aHeight); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEqualRegion(aRegion, _retval); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoundingBox(aX, aY, aWidth, aHeight); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->Offset(aXOffset, aYOffset); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRects(cx, _retval); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
     140                 :   NS_IMETHOD GetRegion(nsIntRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegion(aRegion); } 
     141                 : 
     142                 : #if 0
     143                 : /* Use the code below as a template for the implementation class for this interface. */
     144                 : 
     145                 : /* Header file */
     146                 : class nsScriptableRegion : public nsIScriptableRegion
     147                 : {
     148                 : public:
     149                 :   NS_DECL_ISUPPORTS
     150                 :   NS_DECL_NSISCRIPTABLEREGION
     151                 : 
     152                 :   nsScriptableRegion();
     153                 : 
     154                 : private:
     155                 :   ~nsScriptableRegion();
     156                 : 
     157                 : protected:
     158                 :   /* additional members */
     159                 : };
     160                 : 
     161                 : /* Implementation file */
     162                 : NS_IMPL_ISUPPORTS1(nsScriptableRegion, nsIScriptableRegion)
     163                 : 
     164                 : nsScriptableRegion::nsScriptableRegion()
     165                 : {
     166                 :   /* member initializers and constructor code */
     167                 : }
     168                 : 
     169                 : nsScriptableRegion::~nsScriptableRegion()
     170                 : {
     171                 :   /* destructor code */
     172                 : }
     173                 : 
     174                 : /* void init (); */
     175                 : NS_IMETHODIMP nsScriptableRegion::Init()
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* void setToRegion (in nsIScriptableRegion aRegion); */
     181                 : NS_IMETHODIMP nsScriptableRegion::SetToRegion(nsIScriptableRegion *aRegion)
     182                 : {
     183                 :     return NS_ERROR_NOT_IMPLEMENTED;
     184                 : }
     185                 : 
     186                 : /* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     187                 : NS_IMETHODIMP nsScriptableRegion::SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
     188                 : {
     189                 :     return NS_ERROR_NOT_IMPLEMENTED;
     190                 : }
     191                 : 
     192                 : /* void intersectRegion (in nsIScriptableRegion aRegion); */
     193                 : NS_IMETHODIMP nsScriptableRegion::IntersectRegion(nsIScriptableRegion *aRegion)
     194                 : {
     195                 :     return NS_ERROR_NOT_IMPLEMENTED;
     196                 : }
     197                 : 
     198                 : /* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     199                 : NS_IMETHODIMP nsScriptableRegion::IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
     200                 : {
     201                 :     return NS_ERROR_NOT_IMPLEMENTED;
     202                 : }
     203                 : 
     204                 : /* void unionRegion (in nsIScriptableRegion aRegion); */
     205                 : NS_IMETHODIMP nsScriptableRegion::UnionRegion(nsIScriptableRegion *aRegion)
     206                 : {
     207                 :     return NS_ERROR_NOT_IMPLEMENTED;
     208                 : }
     209                 : 
     210                 : /* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     211                 : NS_IMETHODIMP nsScriptableRegion::UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
     212                 : {
     213                 :     return NS_ERROR_NOT_IMPLEMENTED;
     214                 : }
     215                 : 
     216                 : /* void subtractRegion (in nsIScriptableRegion aRegion); */
     217                 : NS_IMETHODIMP nsScriptableRegion::SubtractRegion(nsIScriptableRegion *aRegion)
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     223                 : NS_IMETHODIMP nsScriptableRegion::SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : 
     228                 : /* boolean isEmpty (); */
     229                 : NS_IMETHODIMP nsScriptableRegion::IsEmpty(bool *_retval NS_OUTPARAM)
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : 
     234                 : /* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
     235                 : NS_IMETHODIMP nsScriptableRegion::IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM)
     236                 : {
     237                 :     return NS_ERROR_NOT_IMPLEMENTED;
     238                 : }
     239                 : 
     240                 : /* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
     241                 : NS_IMETHODIMP nsScriptableRegion::GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM)
     242                 : {
     243                 :     return NS_ERROR_NOT_IMPLEMENTED;
     244                 : }
     245                 : 
     246                 : /* void offset (in long aXOffset, in long aYOffset); */
     247                 : NS_IMETHODIMP nsScriptableRegion::Offset(PRInt32 aXOffset, PRInt32 aYOffset)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* [implicit_jscontext] jsval getRects (); */
     253                 : NS_IMETHODIMP nsScriptableRegion::GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM)
     254                 : {
     255                 :     return NS_ERROR_NOT_IMPLEMENTED;
     256                 : }
     257                 : 
     258                 : /* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     259                 : NS_IMETHODIMP nsScriptableRegion::ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM)
     260                 : {
     261                 :     return NS_ERROR_NOT_IMPLEMENTED;
     262                 : }
     263                 : 
     264                 : /* [noscript] readonly attribute nsIntRegion region; */
     265                 : NS_IMETHODIMP nsScriptableRegion::GetRegion(nsIntRegion *aRegion)
     266                 : {
     267                 :     return NS_ERROR_NOT_IMPLEMENTED;
     268                 : }
     269                 : 
     270                 : /* End of implementation class template. */
     271                 : #endif
     272                 : 
     273                 : 
     274                 : #endif /* __gen_nsIScriptableRegion_h__ */

Generated by: LCOV version 1.7