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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMUIEvent.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDOMUIEvent_h__
       6             : #define __gen_nsIDOMUIEvent_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIDOMWindow_h__
      14             : #include "nsIDOMWindow.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : class mozIDOMWindow; /* forward declaration */
      22             : 
      23             : class mozIDOMWindowProxy; /* forward declaration */
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : class Event;
      28             : }
      29             : }
      30             : 
      31             : /* starting interface:    nsIDOMUIEvent */
      32             : #define NS_IDOMUIEVENT_IID_STR "85ae52eb-37fa-4fd9-a2e6-c7d0f2a521b3"
      33             : 
      34             : #define NS_IDOMUIEVENT_IID \
      35             :   {0x85ae52eb, 0x37fa, 0x4fd9, \
      36             :     { 0xa2, 0xe6, 0xc7, 0xd0, 0xf2, 0xa5, 0x21, 0xb3 }}
      37             : 
      38          28 : class NS_NO_VTABLE nsIDOMUIEvent : public nsISupports {
      39             :  public:
      40             : 
      41             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMUIEVENT_IID)
      42             : 
      43             :   /* readonly attribute mozIDOMWindowProxy view; */
      44             :   NS_IMETHOD GetView(mozIDOMWindowProxy * *aView) = 0;
      45             : 
      46             :   /* readonly attribute long detail; */
      47             :   NS_IMETHOD GetDetail(int32_t *aDetail) = 0;
      48             : 
      49             :   /* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow viewArg, in long detailArg); */
      50             :   NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg) = 0;
      51             : 
      52             :   enum {
      53             :     SCROLL_PAGE_UP = -32768,
      54             :     SCROLL_PAGE_DOWN = 32768
      55             :   };
      56             : 
      57             :   /* readonly attribute long layerX; */
      58             :   NS_IMETHOD GetLayerX(int32_t *aLayerX) = 0;
      59             : 
      60             :   /* readonly attribute long layerY; */
      61             :   NS_IMETHOD GetLayerY(int32_t *aLayerY) = 0;
      62             : 
      63             :   /* readonly attribute long pageX; */
      64             :   NS_IMETHOD GetPageX(int32_t *aPageX) = 0;
      65             : 
      66             :   /* readonly attribute long pageY; */
      67             :   NS_IMETHOD GetPageY(int32_t *aPageY) = 0;
      68             : 
      69             :   /* readonly attribute unsigned long which; */
      70             :   NS_IMETHOD GetWhich(uint32_t *aWhich) = 0;
      71             : 
      72             :   /* readonly attribute nsIDOMNode rangeParent; */
      73             :   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) = 0;
      74             : 
      75             :   /* readonly attribute long rangeOffset; */
      76             :   NS_IMETHOD GetRangeOffset(int32_t *aRangeOffset) = 0;
      77             : 
      78             :   /* [nostdcall,notxpcom] EventPtr AsEvent (); */
      79             :   virtual mozilla::dom::Event * AsEvent(void) = 0;
      80             : 
      81             : };
      82             : 
      83             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMUIEvent, NS_IDOMUIEVENT_IID)
      84             : 
      85             : /* Use this macro when declaring classes that implement this interface. */
      86             : #define NS_DECL_NSIDOMUIEVENT \
      87             :   NS_IMETHOD GetView(mozIDOMWindowProxy * *aView) override; \
      88             :   NS_IMETHOD GetDetail(int32_t *aDetail) override; \
      89             :   NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg) override; \
      90             :   NS_IMETHOD GetLayerX(int32_t *aLayerX) override; \
      91             :   NS_IMETHOD GetLayerY(int32_t *aLayerY) override; \
      92             :   NS_IMETHOD GetPageX(int32_t *aPageX) override; \
      93             :   NS_IMETHOD GetPageY(int32_t *aPageY) override; \
      94             :   NS_IMETHOD GetWhich(uint32_t *aWhich) override; \
      95             :   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) override; \
      96             :   NS_IMETHOD GetRangeOffset(int32_t *aRangeOffset) override; \
      97             :   virtual mozilla::dom::Event * AsEvent(void) override; 
      98             : 
      99             : /* Use this macro when declaring the members of this interface when the
     100             :    class doesn't implement the interface. This is useful for forwarding. */
     101             : #define NS_DECL_NON_VIRTUAL_NSIDOMUIEVENT \
     102             :   nsresult GetView(mozIDOMWindowProxy * *aView); \
     103             :   nsresult GetDetail(int32_t *aDetail); \
     104             :   nsresult InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg); \
     105             :   nsresult GetLayerX(int32_t *aLayerX); \
     106             :   nsresult GetLayerY(int32_t *aLayerY); \
     107             :   nsresult GetPageX(int32_t *aPageX); \
     108             :   nsresult GetPageY(int32_t *aPageY); \
     109             :   nsresult GetWhich(uint32_t *aWhich); \
     110             :   nsresult GetRangeParent(nsIDOMNode * *aRangeParent); \
     111             :   nsresult GetRangeOffset(int32_t *aRangeOffset); \
     112             :   mozilla::dom::Event * AsEvent(void); 
     113             : 
     114             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     115             : #define NS_FORWARD_NSIDOMUIEVENT(_to) \
     116             :   NS_IMETHOD GetView(mozIDOMWindowProxy * *aView) override { return _to GetView(aView); } \
     117             :   NS_IMETHOD GetDetail(int32_t *aDetail) override { return _to GetDetail(aDetail); } \
     118             :   NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg) override { return _to InitUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } \
     119             :   NS_IMETHOD GetLayerX(int32_t *aLayerX) override { return _to GetLayerX(aLayerX); } \
     120             :   NS_IMETHOD GetLayerY(int32_t *aLayerY) override { return _to GetLayerY(aLayerY); } \
     121             :   NS_IMETHOD GetPageX(int32_t *aPageX) override { return _to GetPageX(aPageX); } \
     122             :   NS_IMETHOD GetPageY(int32_t *aPageY) override { return _to GetPageY(aPageY); } \
     123             :   NS_IMETHOD GetWhich(uint32_t *aWhich) override { return _to GetWhich(aWhich); } \
     124             :   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) override { return _to GetRangeParent(aRangeParent); } \
     125             :   NS_IMETHOD GetRangeOffset(int32_t *aRangeOffset) override { return _to GetRangeOffset(aRangeOffset); } \
     126             :   virtual mozilla::dom::Event * AsEvent(void) override { return _to AsEvent(); } 
     127             : 
     128             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     129             : #define NS_FORWARD_SAFE_NSIDOMUIEVENT(_to) \
     130             :   NS_IMETHOD GetView(mozIDOMWindowProxy * *aView) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetView(aView); } \
     131             :   NS_IMETHOD GetDetail(int32_t *aDetail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetail(aDetail); } \
     132             :   NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } \
     133             :   NS_IMETHOD GetLayerX(int32_t *aLayerX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerX(aLayerX); } \
     134             :   NS_IMETHOD GetLayerY(int32_t *aLayerY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerY(aLayerY); } \
     135             :   NS_IMETHOD GetPageX(int32_t *aPageX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageX(aPageX); } \
     136             :   NS_IMETHOD GetPageY(int32_t *aPageY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageY(aPageY); } \
     137             :   NS_IMETHOD GetWhich(uint32_t *aWhich) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWhich(aWhich); } \
     138             :   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeParent(aRangeParent); } \
     139             :   NS_IMETHOD GetRangeOffset(int32_t *aRangeOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeOffset(aRangeOffset); } \
     140             :   virtual mozilla::dom::Event * AsEvent(void) override; 
     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 nsDOMUIEvent : public nsIDOMUIEvent
     147             : {
     148             : public:
     149             :   NS_DECL_ISUPPORTS
     150             :   NS_DECL_NSIDOMUIEVENT
     151             : 
     152             :   nsDOMUIEvent();
     153             : 
     154             : private:
     155             :   ~nsDOMUIEvent();
     156             : 
     157             : protected:
     158             :   /* additional members */
     159             : };
     160             : 
     161             : /* Implementation file */
     162             : NS_IMPL_ISUPPORTS(nsDOMUIEvent, nsIDOMUIEvent)
     163             : 
     164             : nsDOMUIEvent::nsDOMUIEvent()
     165             : {
     166             :   /* member initializers and constructor code */
     167             : }
     168             : 
     169             : nsDOMUIEvent::~nsDOMUIEvent()
     170             : {
     171             :   /* destructor code */
     172             : }
     173             : 
     174             : /* readonly attribute mozIDOMWindowProxy view; */
     175             : NS_IMETHODIMP nsDOMUIEvent::GetView(mozIDOMWindowProxy * *aView)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180             : /* readonly attribute long detail; */
     181             : NS_IMETHODIMP nsDOMUIEvent::GetDetail(int32_t *aDetail)
     182             : {
     183             :     return NS_ERROR_NOT_IMPLEMENTED;
     184             : }
     185             : 
     186             : /* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow viewArg, in long detailArg); */
     187             : NS_IMETHODIMP nsDOMUIEvent::InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg)
     188             : {
     189             :     return NS_ERROR_NOT_IMPLEMENTED;
     190             : }
     191             : 
     192             : /* readonly attribute long layerX; */
     193             : NS_IMETHODIMP nsDOMUIEvent::GetLayerX(int32_t *aLayerX)
     194             : {
     195             :     return NS_ERROR_NOT_IMPLEMENTED;
     196             : }
     197             : 
     198             : /* readonly attribute long layerY; */
     199             : NS_IMETHODIMP nsDOMUIEvent::GetLayerY(int32_t *aLayerY)
     200             : {
     201             :     return NS_ERROR_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204             : /* readonly attribute long pageX; */
     205             : NS_IMETHODIMP nsDOMUIEvent::GetPageX(int32_t *aPageX)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210             : /* readonly attribute long pageY; */
     211             : NS_IMETHODIMP nsDOMUIEvent::GetPageY(int32_t *aPageY)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : 
     216             : /* readonly attribute unsigned long which; */
     217             : NS_IMETHODIMP nsDOMUIEvent::GetWhich(uint32_t *aWhich)
     218             : {
     219             :     return NS_ERROR_NOT_IMPLEMENTED;
     220             : }
     221             : 
     222             : /* readonly attribute nsIDOMNode rangeParent; */
     223             : NS_IMETHODIMP nsDOMUIEvent::GetRangeParent(nsIDOMNode * *aRangeParent)
     224             : {
     225             :     return NS_ERROR_NOT_IMPLEMENTED;
     226             : }
     227             : 
     228             : /* readonly attribute long rangeOffset; */
     229             : NS_IMETHODIMP nsDOMUIEvent::GetRangeOffset(int32_t *aRangeOffset)
     230             : {
     231             :     return NS_ERROR_NOT_IMPLEMENTED;
     232             : }
     233             : 
     234             : /* [nostdcall,notxpcom] EventPtr AsEvent (); */
     235             : mozilla::dom::Event * nsDOMUIEvent::AsEvent()
     236             : {
     237             :     return NS_ERROR_NOT_IMPLEMENTED;
     238             : }
     239             : 
     240             : /* End of implementation class template. */
     241             : #endif
     242             : 
     243             : 
     244             : #endif /* __gen_nsIDOMUIEvent_h__ */

Generated by: LCOV version 1.13