LCOV - app.info - objdir/dist/include/nsIDOMUIEvent.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIDOMUIEvent.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/dom/interfaces/events/nsIDOMUIEvent.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIDOMUIEvent_h__
           6                 : #define __gen_nsIDOMUIEvent_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsIDOMEvent_h__
          10                 : #include "nsIDOMEvent.h"
          11                 : #endif
          12                 :
          13                 : /* For IDL files that don't want to include root IDL files. */
          14                 : #ifndef NS_NO_VTABLE
          15                 : #define NS_NO_VTABLE
          16                 : #endif
          17                 :
          18                 : /* starting interface:    nsIDOMUIEvent */
          19                 : #define NS_IDOMUIEVENT_IID_STR "af3f130e-0c22-4613-a150-780a46c22e3a"
          20                 :
          21                 : #define NS_IDOMUIEVENT_IID \
          22                 :   {0xaf3f130e, 0x0c22, 0x4613, \
          23                 :     { 0xa1, 0x50, 0x78, 0x0a, 0x46, 0xc2, 0x2e, 0x3a }}
          24                 :
          25               4 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMUIEvent : public nsIDOMEvent {
          26                 :  public:
          27                 :
          28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMUIEVENT_IID)
          29                 :
          30                 :   /* readonly attribute nsIDOMWindow view; */
          31                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMWindow * *aView) = 0;
          32                 :
          33                 :   /* readonly attribute long detail; */
          34                 :   NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail) = 0;
          35                 :
          36                 :   /* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in long detailArg); */
          37                 :   NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg) = 0;
          38                 :
          39                 :   enum {
          40                 :     SCROLL_PAGE_UP = -32768,
          41                 :     SCROLL_PAGE_DOWN = 32768
          42                 :   };
          43                 :
          44                 :   /* readonly attribute long layerX; */
          45                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerX(PRInt32 *aLayerX) = 0;
          46                 :
          47                 :   /* readonly attribute long layerY; */
          48                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerY(PRInt32 *aLayerY) = 0;
          49                 :
          50                 :   /* readonly attribute long pageX; */
          51                 :   NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX) = 0;
          52                 :
          53                 :   /* readonly attribute long pageY; */
          54                 :   NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY) = 0;
          55                 :
          56                 :   /* readonly attribute unsigned long which; */
          57                 :   NS_SCRIPTABLE NS_IMETHOD GetWhich(PRUint32 *aWhich) = 0;
          58                 :
          59                 :   /* readonly attribute nsIDOMNode rangeParent; */
          60                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) = 0;
          61                 :
          62                 :   /* readonly attribute long rangeOffset; */
          63                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) = 0;
          64                 :
          65                 :   /* attribute boolean cancelBubble; */
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelBubble(bool *aCancelBubble) = 0;
          67                 :   NS_SCRIPTABLE NS_IMETHOD SetCancelBubble(bool aCancelBubble) = 0;
          68                 :
          69                 :   /* readonly attribute boolean isChar; */
          70                 :   NS_SCRIPTABLE NS_IMETHOD GetIsChar(bool *aIsChar) = 0;
          71                 :
          72                 : };
          73                 :
          74                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMUIEvent, NS_IDOMUIEVENT_IID)
          75                 :
          76                 : /* Use this macro when declaring classes that implement this interface. */
          77                 : #define NS_DECL_NSIDOMUIEVENT \
          78                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMWindow * *aView); \
          79                 :   NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail); \
          80                 :   NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg); \
          81                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerX(PRInt32 *aLayerX); \
          82                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerY(PRInt32 *aLayerY); \
          83                 :   NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX); \
          84                 :   NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY); \
          85                 :   NS_SCRIPTABLE NS_IMETHOD GetWhich(PRUint32 *aWhich); \
          86                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent); \
          87                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset); \
          88                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelBubble(bool *aCancelBubble); \
          89                 :   NS_SCRIPTABLE NS_IMETHOD SetCancelBubble(bool aCancelBubble); \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetIsChar(bool *aIsChar);
          91                 :
          92                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          93                 : #define NS_FORWARD_NSIDOMUIEVENT(_to) \
          94                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMWindow * *aView) { return _to GetView(aView); } \
          95                 :   NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail) { return _to GetDetail(aDetail); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg) { return _to InitUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerX(PRInt32 *aLayerX) { return _to GetLayerX(aLayerX); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerY(PRInt32 *aLayerY) { return _to GetLayerY(aLayerY); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX) { return _to GetPageX(aPageX); } \
         100                 :   NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY) { return _to GetPageY(aPageY); } \
         101                 :   NS_SCRIPTABLE NS_IMETHOD GetWhich(PRUint32 *aWhich) { return _to GetWhich(aWhich); } \
         102                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) { return _to GetRangeParent(aRangeParent); } \
         103                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) { return _to GetRangeOffset(aRangeOffset); } \
         104                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelBubble(bool *aCancelBubble) { return _to GetCancelBubble(aCancelBubble); } \
         105                 :   NS_SCRIPTABLE NS_IMETHOD SetCancelBubble(bool aCancelBubble) { return _to SetCancelBubble(aCancelBubble); } \
         106                 :   NS_SCRIPTABLE NS_IMETHOD GetIsChar(bool *aIsChar) { return _to GetIsChar(aIsChar); }
         107                 :
         108                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         109                 : #define NS_FORWARD_SAFE_NSIDOMUIEVENT(_to) \
         110                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMWindow * *aView) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetView(aView); } \
         111                 :   NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetail(aDetail); } \
         112                 :   NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } \
         113                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerX(PRInt32 *aLayerX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerX(aLayerX); } \
         114                 :   NS_SCRIPTABLE NS_IMETHOD GetLayerY(PRInt32 *aLayerY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerY(aLayerY); } \
         115                 :   NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageX(aPageX); } \
         116                 :   NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageY(aPageY); } \
         117                 :   NS_SCRIPTABLE NS_IMETHOD GetWhich(PRUint32 *aWhich) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWhich(aWhich); } \
         118                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeParent(aRangeParent); } \
         119                 :   NS_SCRIPTABLE NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeOffset(aRangeOffset); } \
         120                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelBubble(bool *aCancelBubble) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelBubble(aCancelBubble); } \
         121                 :   NS_SCRIPTABLE NS_IMETHOD SetCancelBubble(bool aCancelBubble) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCancelBubble(aCancelBubble); } \
         122                 :   NS_SCRIPTABLE NS_IMETHOD GetIsChar(bool *aIsChar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsChar(aIsChar); }
         123                 :
         124                 : #if 0
         125                 : /* Use the code below as a template for the implementation class for this interface. */
         126                 :
         127                 : /* Header file */
         128                 : class nsDOMUIEvent : public nsIDOMUIEvent
         129                 : {
         130                 : public:
         131                 :   NS_DECL_ISUPPORTS
         132                 :   NS_DECL_NSIDOMUIEVENT
         133                 :
         134                 :   nsDOMUIEvent();
         135                 :
         136                 : private:
         137                 :   ~nsDOMUIEvent();
         138                 :
         139                 : protected:
         140                 :   /* additional members */
         141                 : };
         142                 :
         143                 : /* Implementation file */
         144                 : NS_IMPL_ISUPPORTS1(nsDOMUIEvent, nsIDOMUIEvent)
         145                 :
         146                 : nsDOMUIEvent::nsDOMUIEvent()
         147                 : {
         148                 :   /* member initializers and constructor code */
         149                 : }
         150                 :
         151                 : nsDOMUIEvent::~nsDOMUIEvent()
         152                 : {
         153                 :   /* destructor code */
         154                 : }
         155                 :
         156                 : /* readonly attribute nsIDOMWindow view; */
         157                 : NS_IMETHODIMP nsDOMUIEvent::GetView(nsIDOMWindow * *aView)
         158                 : {
         159                 :     return NS_ERROR_NOT_IMPLEMENTED;
         160                 : }
         161                 :
         162                 : /* readonly attribute long detail; */
         163                 : NS_IMETHODIMP nsDOMUIEvent::GetDetail(PRInt32 *aDetail)
         164                 : {
         165                 :     return NS_ERROR_NOT_IMPLEMENTED;
         166                 : }
         167                 :
         168                 : /* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in long detailArg); */
         169                 : NS_IMETHODIMP nsDOMUIEvent::InitUIEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg)
         170                 : {
         171                 :     return NS_ERROR_NOT_IMPLEMENTED;
         172                 : }
         173                 :
         174                 : /* readonly attribute long layerX; */
         175                 : NS_IMETHODIMP nsDOMUIEvent::GetLayerX(PRInt32 *aLayerX)
         176                 : {
         177                 :     return NS_ERROR_NOT_IMPLEMENTED;
         178                 : }
         179                 :
         180                 : /* readonly attribute long layerY; */
         181                 : NS_IMETHODIMP nsDOMUIEvent::GetLayerY(PRInt32 *aLayerY)
         182                 : {
         183                 :     return NS_ERROR_NOT_IMPLEMENTED;
         184                 : }
         185                 :
         186                 : /* readonly attribute long pageX; */
         187                 : NS_IMETHODIMP nsDOMUIEvent::GetPageX(PRInt32 *aPageX)
         188                 : {
         189                 :     return NS_ERROR_NOT_IMPLEMENTED;
         190                 : }
         191                 :
         192                 : /* readonly attribute long pageY; */
         193                 : NS_IMETHODIMP nsDOMUIEvent::GetPageY(PRInt32 *aPageY)
         194                 : {
         195                 :     return NS_ERROR_NOT_IMPLEMENTED;
         196                 : }
         197                 :
         198                 : /* readonly attribute unsigned long which; */
         199                 : NS_IMETHODIMP nsDOMUIEvent::GetWhich(PRUint32 *aWhich)
         200                 : {
         201                 :     return NS_ERROR_NOT_IMPLEMENTED;
         202                 : }
         203                 :
         204                 : /* readonly attribute nsIDOMNode rangeParent; */
         205                 : NS_IMETHODIMP nsDOMUIEvent::GetRangeParent(nsIDOMNode * *aRangeParent)
         206                 : {
         207                 :     return NS_ERROR_NOT_IMPLEMENTED;
         208                 : }
         209                 :
         210                 : /* readonly attribute long rangeOffset; */
         211                 : NS_IMETHODIMP nsDOMUIEvent::GetRangeOffset(PRInt32 *aRangeOffset)
         212                 : {
         213                 :     return NS_ERROR_NOT_IMPLEMENTED;
         214                 : }
         215                 :
         216                 : /* attribute boolean cancelBubble; */
         217                 : NS_IMETHODIMP nsDOMUIEvent::GetCancelBubble(bool *aCancelBubble)
         218                 : {
         219                 :     return NS_ERROR_NOT_IMPLEMENTED;
         220                 : }
         221                 : NS_IMETHODIMP nsDOMUIEvent::SetCancelBubble(bool aCancelBubble)
         222                 : {
         223                 :     return NS_ERROR_NOT_IMPLEMENTED;
         224                 : }
         225                 :
         226                 : /* readonly attribute boolean isChar; */
         227                 : NS_IMETHODIMP nsDOMUIEvent::GetIsChar(bool *aIsChar)
         228                 : {
         229                 :     return NS_ERROR_NOT_IMPLEMENTED;
         230                 : }
         231                 :
         232                 : /* End of implementation class template. */
         233                 : #endif
         234                 :
         235                 :
         236                 : #endif /* __gen_nsIDOMUIEvent_h__ */

Generated by: LCOV version 1.7