LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMEvent.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/nsIDOMEvent.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMEvent_h__
       6                 : #define __gen_nsIDOMEvent_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.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                 : class nsIDOMEventTarget; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIDOMEvent */
      21                 : #define NS_IDOMEVENT_IID_STR "e85cff74-951f-45c1-be0c-89442ea2f500"
      22                 : 
      23                 : #define NS_IDOMEVENT_IID \
      24                 :   {0xe85cff74, 0x951f, 0x45c1, \
      25                 :     { 0xbe, 0x0c, 0x89, 0x44, 0x2e, 0xa2, 0xf5, 0x00 }}
      26                 : 
      27           19874 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMEvent : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMEVENT_IID)
      31                 : 
      32                 :   enum {
      33                 :     CAPTURING_PHASE = 1U,
      34                 :     AT_TARGET = 2U,
      35                 :     BUBBLING_PHASE = 3U
      36                 :   };
      37                 : 
      38                 :   /* readonly attribute DOMString type; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
      40                 : 
      41                 :   /* readonly attribute nsIDOMEventTarget target; */
      42                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget) = 0;
      43                 : 
      44                 :   /* readonly attribute nsIDOMEventTarget currentTarget; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentTarget(nsIDOMEventTarget * *aCurrentTarget) = 0;
      46                 : 
      47                 :   /* readonly attribute unsigned short eventPhase; */
      48                 :   NS_SCRIPTABLE NS_IMETHOD GetEventPhase(PRUint16 *aEventPhase) = 0;
      49                 : 
      50                 :   /* readonly attribute boolean bubbles; */
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetBubbles(bool *aBubbles) = 0;
      52                 : 
      53                 :   /* readonly attribute boolean cancelable; */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(bool *aCancelable) = 0;
      55                 : 
      56                 :   /* readonly attribute DOMTimeStamp timeStamp; */
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(DOMTimeStamp *aTimeStamp) = 0;
      58                 : 
      59                 :   /* void stopPropagation (); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD StopPropagation(void) = 0;
      61                 : 
      62                 :   /* void preventDefault (); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD PreventDefault(void) = 0;
      64                 : 
      65                 :   /* void initEvent (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg); */
      66                 :   NS_SCRIPTABLE NS_IMETHOD InitEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg) = 0;
      67                 : 
      68                 :   /* readonly attribute boolean defaultPrevented; */
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrevented(bool *aDefaultPrevented) = 0;
      70                 : 
      71                 :   /* void stopImmediatePropagation (); */
      72                 :   NS_SCRIPTABLE NS_IMETHOD StopImmediatePropagation(void) = 0;
      73                 : 
      74                 : };
      75                 : 
      76                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMEvent, NS_IDOMEVENT_IID)
      77                 : 
      78                 : /* Use this macro when declaring classes that implement this interface. */
      79                 : #define NS_DECL_NSIDOMEVENT \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentTarget(nsIDOMEventTarget * *aCurrentTarget); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetEventPhase(PRUint16 *aEventPhase); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetBubbles(bool *aBubbles); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(bool *aCancelable); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(DOMTimeStamp *aTimeStamp); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD StopPropagation(void); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD PreventDefault(void); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD InitEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrevented(bool *aDefaultPrevented); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD StopImmediatePropagation(void); 
      92                 : 
      93                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      94                 : #define NS_FORWARD_NSIDOMEVENT(_to) \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget) { return _to GetTarget(aTarget); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentTarget(nsIDOMEventTarget * *aCurrentTarget) { return _to GetCurrentTarget(aCurrentTarget); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetEventPhase(PRUint16 *aEventPhase) { return _to GetEventPhase(aEventPhase); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetBubbles(bool *aBubbles) { return _to GetBubbles(aBubbles); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(bool *aCancelable) { return _to GetCancelable(aCancelable); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(DOMTimeStamp *aTimeStamp) { return _to GetTimeStamp(aTimeStamp); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD StopPropagation(void) { return _to StopPropagation(); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD PreventDefault(void) { return _to PreventDefault(); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD InitEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg) { return _to InitEvent(eventTypeArg, canBubbleArg, cancelableArg); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrevented(bool *aDefaultPrevented) { return _to GetDefaultPrevented(aDefaultPrevented); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD StopImmediatePropagation(void) { return _to StopImmediatePropagation(); } 
     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_NSIDOMEVENT(_to) \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentTarget(nsIDOMEventTarget * *aCurrentTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentTarget(aCurrentTarget); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetEventPhase(PRUint16 *aEventPhase) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventPhase(aEventPhase); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetBubbles(bool *aBubbles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBubbles(aBubbles); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(bool *aCancelable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelable(aCancelable); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(DOMTimeStamp *aTimeStamp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeStamp(aTimeStamp); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD StopPropagation(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopPropagation(); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD PreventDefault(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PreventDefault(); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD InitEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitEvent(eventTypeArg, canBubbleArg, cancelableArg); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrevented(bool *aDefaultPrevented) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultPrevented(aDefaultPrevented); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD StopImmediatePropagation(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopImmediatePropagation(); } 
     122                 : 
     123                 : #if 0
     124                 : /* Use the code below as a template for the implementation class for this interface. */
     125                 : 
     126                 : /* Header file */
     127                 : class nsDOMEvent : public nsIDOMEvent
     128                 : {
     129                 : public:
     130                 :   NS_DECL_ISUPPORTS
     131                 :   NS_DECL_NSIDOMEVENT
     132                 : 
     133                 :   nsDOMEvent();
     134                 : 
     135                 : private:
     136                 :   ~nsDOMEvent();
     137                 : 
     138                 : protected:
     139                 :   /* additional members */
     140                 : };
     141                 : 
     142                 : /* Implementation file */
     143                 : NS_IMPL_ISUPPORTS1(nsDOMEvent, nsIDOMEvent)
     144                 : 
     145                 : nsDOMEvent::nsDOMEvent()
     146                 : {
     147                 :   /* member initializers and constructor code */
     148                 : }
     149                 : 
     150                 : nsDOMEvent::~nsDOMEvent()
     151                 : {
     152                 :   /* destructor code */
     153                 : }
     154                 : 
     155                 : /* readonly attribute DOMString type; */
     156                 : NS_IMETHODIMP nsDOMEvent::GetType(nsAString & aType)
     157                 : {
     158                 :     return NS_ERROR_NOT_IMPLEMENTED;
     159                 : }
     160                 : 
     161                 : /* readonly attribute nsIDOMEventTarget target; */
     162                 : NS_IMETHODIMP nsDOMEvent::GetTarget(nsIDOMEventTarget * *aTarget)
     163                 : {
     164                 :     return NS_ERROR_NOT_IMPLEMENTED;
     165                 : }
     166                 : 
     167                 : /* readonly attribute nsIDOMEventTarget currentTarget; */
     168                 : NS_IMETHODIMP nsDOMEvent::GetCurrentTarget(nsIDOMEventTarget * *aCurrentTarget)
     169                 : {
     170                 :     return NS_ERROR_NOT_IMPLEMENTED;
     171                 : }
     172                 : 
     173                 : /* readonly attribute unsigned short eventPhase; */
     174                 : NS_IMETHODIMP nsDOMEvent::GetEventPhase(PRUint16 *aEventPhase)
     175                 : {
     176                 :     return NS_ERROR_NOT_IMPLEMENTED;
     177                 : }
     178                 : 
     179                 : /* readonly attribute boolean bubbles; */
     180                 : NS_IMETHODIMP nsDOMEvent::GetBubbles(bool *aBubbles)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* readonly attribute boolean cancelable; */
     186                 : NS_IMETHODIMP nsDOMEvent::GetCancelable(bool *aCancelable)
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : 
     191                 : /* readonly attribute DOMTimeStamp timeStamp; */
     192                 : NS_IMETHODIMP nsDOMEvent::GetTimeStamp(DOMTimeStamp *aTimeStamp)
     193                 : {
     194                 :     return NS_ERROR_NOT_IMPLEMENTED;
     195                 : }
     196                 : 
     197                 : /* void stopPropagation (); */
     198                 : NS_IMETHODIMP nsDOMEvent::StopPropagation()
     199                 : {
     200                 :     return NS_ERROR_NOT_IMPLEMENTED;
     201                 : }
     202                 : 
     203                 : /* void preventDefault (); */
     204                 : NS_IMETHODIMP nsDOMEvent::PreventDefault()
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* void initEvent (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg); */
     210                 : NS_IMETHODIMP nsDOMEvent::InitEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* readonly attribute boolean defaultPrevented; */
     216                 : NS_IMETHODIMP nsDOMEvent::GetDefaultPrevented(bool *aDefaultPrevented)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* void stopImmediatePropagation (); */
     222                 : NS_IMETHODIMP nsDOMEvent::StopImmediatePropagation()
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* End of implementation class template. */
     228                 : #endif
     229                 : 
     230                 : 
     231                 : #endif /* __gen_nsIDOMEvent_h__ */

Generated by: LCOV version 1.7