LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIScriptableRegion.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 "js/Value.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             : #include "nsRegionFwd.h"
      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           0 : class NS_NO_VTABLE nsIScriptableRegion : public nsISupports {
      29             :  public:
      30             : 
      31             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEREGION_IID)
      32             : 
      33             :   /* void init (); */
      34             :   NS_IMETHOD Init(void) = 0;
      35             : 
      36             :   /* void setToRegion (in nsIScriptableRegion aRegion); */
      37             :   NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) = 0;
      38             : 
      39             :   /* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      40             :   NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
      41             : 
      42             :   /* void intersectRegion (in nsIScriptableRegion aRegion); */
      43             :   NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) = 0;
      44             : 
      45             :   /* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      46             :   NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
      47             : 
      48             :   /* void unionRegion (in nsIScriptableRegion aRegion); */
      49             :   NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) = 0;
      50             : 
      51             :   /* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      52             :   NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
      53             : 
      54             :   /* void subtractRegion (in nsIScriptableRegion aRegion); */
      55             :   NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) = 0;
      56             : 
      57             :   /* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      58             :   NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
      59             : 
      60             :   /* boolean isEmpty (); */
      61             :   NS_IMETHOD IsEmpty(bool *_retval) = 0;
      62             : 
      63             :   /* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
      64             :   NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) = 0;
      65             : 
      66             :   /* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
      67             :   NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) = 0;
      68             : 
      69             :   /* void offset (in long aXOffset, in long aYOffset); */
      70             :   NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) = 0;
      71             : 
      72             :   /* [implicit_jscontext] jsval getRects (); */
      73             :   NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) = 0;
      74             : 
      75             :   /* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
      76             :   NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) = 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_IMETHOD Init(void) override; \
      88             :   NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) override; \
      89             :   NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
      90             :   NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) override; \
      91             :   NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
      92             :   NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) override; \
      93             :   NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
      94             :   NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) override; \
      95             :   NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
      96             :   NS_IMETHOD IsEmpty(bool *_retval) override; \
      97             :   NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) override; \
      98             :   NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) override; \
      99             :   NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) override; \
     100             :   NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) override; \
     101             :   NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) override; \
     102             :   NS_IMETHOD GetRegion(nsIntRegion *aRegion) override; 
     103             : 
     104             : /* Use this macro when declaring the members of this interface when the
     105             :    class doesn't implement the interface. This is useful for forwarding. */
     106             : #define NS_DECL_NON_VIRTUAL_NSISCRIPTABLEREGION \
     107             :   nsresult Init(void); \
     108             :   nsresult SetToRegion(nsIScriptableRegion *aRegion); \
     109             :   nsresult SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
     110             :   nsresult IntersectRegion(nsIScriptableRegion *aRegion); \
     111             :   nsresult IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
     112             :   nsresult UnionRegion(nsIScriptableRegion *aRegion); \
     113             :   nsresult UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
     114             :   nsresult SubtractRegion(nsIScriptableRegion *aRegion); \
     115             :   nsresult SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
     116             :   nsresult IsEmpty(bool *_retval); \
     117             :   nsresult IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval); \
     118             :   nsresult GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight); \
     119             :   nsresult Offset(int32_t aXOffset, int32_t aYOffset); \
     120             :   nsresult GetRects(JSContext* cx, JS::MutableHandleValue _retval); \
     121             :   nsresult ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval); \
     122             :   nsresult GetRegion(nsIntRegion *aRegion); 
     123             : 
     124             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     125             : #define NS_FORWARD_NSISCRIPTABLEREGION(_to) \
     126             :   NS_IMETHOD Init(void) override { return _to Init(); } \
     127             :   NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) override { return _to SetToRegion(aRegion); } \
     128             :   NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to SetToRect(aX, aY, aWidth, aHeight); } \
     129             :   NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) override { return _to IntersectRegion(aRegion); } \
     130             :   NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to IntersectRect(aX, aY, aWidth, aHeight); } \
     131             :   NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) override { return _to UnionRegion(aRegion); } \
     132             :   NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to UnionRect(aX, aY, aWidth, aHeight); } \
     133             :   NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) override { return _to SubtractRegion(aRegion); } \
     134             :   NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to SubtractRect(aX, aY, aWidth, aHeight); } \
     135             :   NS_IMETHOD IsEmpty(bool *_retval) override { return _to IsEmpty(_retval); } \
     136             :   NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) override { return _to IsEqualRegion(aRegion, _retval); } \
     137             :   NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) override { return _to GetBoundingBox(aX, aY, aWidth, aHeight); } \
     138             :   NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) override { return _to Offset(aXOffset, aYOffset); } \
     139             :   NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetRects(cx, _retval); } \
     140             :   NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) override { return _to ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
     141             :   NS_IMETHOD GetRegion(nsIntRegion *aRegion) override { return _to GetRegion(aRegion); } 
     142             : 
     143             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     144             : #define NS_FORWARD_SAFE_NSISCRIPTABLEREGION(_to) \
     145             :   NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
     146             :   NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRegion(aRegion); } \
     147             :   NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRect(aX, aY, aWidth, aHeight); } \
     148             :   NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRegion(aRegion); } \
     149             :   NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRect(aX, aY, aWidth, aHeight); } \
     150             :   NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRegion(aRegion); } \
     151             :   NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRect(aX, aY, aWidth, aHeight); } \
     152             :   NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRegion(aRegion); } \
     153             :   NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRect(aX, aY, aWidth, aHeight); } \
     154             :   NS_IMETHOD IsEmpty(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
     155             :   NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEqualRegion(aRegion, _retval); } \
     156             :   NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoundingBox(aX, aY, aWidth, aHeight); } \
     157             :   NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Offset(aXOffset, aYOffset); } \
     158             :   NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRects(cx, _retval); } \
     159             :   NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
     160             :   NS_IMETHOD GetRegion(nsIntRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegion(aRegion); } 
     161             : 
     162             : #if 0
     163             : /* Use the code below as a template for the implementation class for this interface. */
     164             : 
     165             : /* Header file */
     166             : class nsScriptableRegion : public nsIScriptableRegion
     167             : {
     168             : public:
     169             :   NS_DECL_ISUPPORTS
     170             :   NS_DECL_NSISCRIPTABLEREGION
     171             : 
     172             :   nsScriptableRegion();
     173             : 
     174             : private:
     175             :   ~nsScriptableRegion();
     176             : 
     177             : protected:
     178             :   /* additional members */
     179             : };
     180             : 
     181             : /* Implementation file */
     182             : NS_IMPL_ISUPPORTS(nsScriptableRegion, nsIScriptableRegion)
     183             : 
     184             : nsScriptableRegion::nsScriptableRegion()
     185             : {
     186             :   /* member initializers and constructor code */
     187             : }
     188             : 
     189             : nsScriptableRegion::~nsScriptableRegion()
     190             : {
     191             :   /* destructor code */
     192             : }
     193             : 
     194             : /* void init (); */
     195             : NS_IMETHODIMP nsScriptableRegion::Init()
     196             : {
     197             :     return NS_ERROR_NOT_IMPLEMENTED;
     198             : }
     199             : 
     200             : /* void setToRegion (in nsIScriptableRegion aRegion); */
     201             : NS_IMETHODIMP nsScriptableRegion::SetToRegion(nsIScriptableRegion *aRegion)
     202             : {
     203             :     return NS_ERROR_NOT_IMPLEMENTED;
     204             : }
     205             : 
     206             : /* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     207             : NS_IMETHODIMP nsScriptableRegion::SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight)
     208             : {
     209             :     return NS_ERROR_NOT_IMPLEMENTED;
     210             : }
     211             : 
     212             : /* void intersectRegion (in nsIScriptableRegion aRegion); */
     213             : NS_IMETHODIMP nsScriptableRegion::IntersectRegion(nsIScriptableRegion *aRegion)
     214             : {
     215             :     return NS_ERROR_NOT_IMPLEMENTED;
     216             : }
     217             : 
     218             : /* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     219             : NS_IMETHODIMP nsScriptableRegion::IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight)
     220             : {
     221             :     return NS_ERROR_NOT_IMPLEMENTED;
     222             : }
     223             : 
     224             : /* void unionRegion (in nsIScriptableRegion aRegion); */
     225             : NS_IMETHODIMP nsScriptableRegion::UnionRegion(nsIScriptableRegion *aRegion)
     226             : {
     227             :     return NS_ERROR_NOT_IMPLEMENTED;
     228             : }
     229             : 
     230             : /* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     231             : NS_IMETHODIMP nsScriptableRegion::UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight)
     232             : {
     233             :     return NS_ERROR_NOT_IMPLEMENTED;
     234             : }
     235             : 
     236             : /* void subtractRegion (in nsIScriptableRegion aRegion); */
     237             : NS_IMETHODIMP nsScriptableRegion::SubtractRegion(nsIScriptableRegion *aRegion)
     238             : {
     239             :     return NS_ERROR_NOT_IMPLEMENTED;
     240             : }
     241             : 
     242             : /* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     243             : NS_IMETHODIMP nsScriptableRegion::SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight)
     244             : {
     245             :     return NS_ERROR_NOT_IMPLEMENTED;
     246             : }
     247             : 
     248             : /* boolean isEmpty (); */
     249             : NS_IMETHODIMP nsScriptableRegion::IsEmpty(bool *_retval)
     250             : {
     251             :     return NS_ERROR_NOT_IMPLEMENTED;
     252             : }
     253             : 
     254             : /* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
     255             : NS_IMETHODIMP nsScriptableRegion::IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval)
     256             : {
     257             :     return NS_ERROR_NOT_IMPLEMENTED;
     258             : }
     259             : 
     260             : /* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
     261             : NS_IMETHODIMP nsScriptableRegion::GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight)
     262             : {
     263             :     return NS_ERROR_NOT_IMPLEMENTED;
     264             : }
     265             : 
     266             : /* void offset (in long aXOffset, in long aYOffset); */
     267             : NS_IMETHODIMP nsScriptableRegion::Offset(int32_t aXOffset, int32_t aYOffset)
     268             : {
     269             :     return NS_ERROR_NOT_IMPLEMENTED;
     270             : }
     271             : 
     272             : /* [implicit_jscontext] jsval getRects (); */
     273             : NS_IMETHODIMP nsScriptableRegion::GetRects(JSContext* cx, JS::MutableHandleValue _retval)
     274             : {
     275             :     return NS_ERROR_NOT_IMPLEMENTED;
     276             : }
     277             : 
     278             : /* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
     279             : NS_IMETHODIMP nsScriptableRegion::ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval)
     280             : {
     281             :     return NS_ERROR_NOT_IMPLEMENTED;
     282             : }
     283             : 
     284             : /* [noscript] readonly attribute nsIntRegion region; */
     285             : NS_IMETHODIMP nsScriptableRegion::GetRegion(nsIntRegion *aRegion)
     286             : {
     287             :     return NS_ERROR_NOT_IMPLEMENTED;
     288             : }
     289             : 
     290             : /* End of implementation class template. */
     291             : #endif
     292             : 
     293             : 
     294             : #endif /* __gen_nsIScriptableRegion_h__ */

Generated by: LCOV version 1.13