LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIEventTarget.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/xpcom/threads/nsIEventTarget.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIEventTarget_h__
       6                 : #define __gen_nsIEventTarget_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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 nsIRunnable; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIEventTarget */
      21                 : #define NS_IEVENTTARGET_IID_STR "4e8febe4-6631-49dc-8ac9-308c1cb9b09c"
      22                 : 
      23                 : #define NS_IEVENTTARGET_IID \
      24                 :   {0x4e8febe4, 0x6631, 0x49dc, \
      25                 :     { 0x8a, 0xc9, 0x30, 0x8c, 0x1c, 0xb9, 0xb0, 0x9c }}
      26                 : 
      27           15312 : class NS_NO_VTABLE NS_SCRIPTABLE nsIEventTarget : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEVENTTARGET_IID)
      31                 : 
      32                 :   /* void dispatch (in nsIRunnable event, in unsigned long flags); */
      33                 :   NS_SCRIPTABLE NS_IMETHOD Dispatch(nsIRunnable *event, PRUint32 flags) = 0;
      34                 : 
      35                 :   enum {
      36                 :     DISPATCH_NORMAL = 0U,
      37                 :     DISPATCH_SYNC = 1U
      38                 :   };
      39                 : 
      40                 :   /* boolean isOnCurrentThread (); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD IsOnCurrentThread(bool *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIEventTarget, NS_IEVENTTARGET_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSIEVENTTARGET \
      49                 :   NS_SCRIPTABLE NS_IMETHOD Dispatch(nsIRunnable *event, PRUint32 flags); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD IsOnCurrentThread(bool *_retval NS_OUTPARAM); 
      51                 : 
      52                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      53                 : #define NS_FORWARD_NSIEVENTTARGET(_to) \
      54                 :   NS_SCRIPTABLE NS_IMETHOD Dispatch(nsIRunnable *event, PRUint32 flags) { return _to Dispatch(event, flags); } \
      55                 :   NS_SCRIPTABLE NS_IMETHOD IsOnCurrentThread(bool *_retval NS_OUTPARAM) { return _to IsOnCurrentThread(_retval); } 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      58                 : #define NS_FORWARD_SAFE_NSIEVENTTARGET(_to) \
      59                 :   NS_SCRIPTABLE NS_IMETHOD Dispatch(nsIRunnable *event, PRUint32 flags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Dispatch(event, flags); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD IsOnCurrentThread(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsOnCurrentThread(_retval); } 
      61                 : 
      62                 : #if 0
      63                 : /* Use the code below as a template for the implementation class for this interface. */
      64                 : 
      65                 : /* Header file */
      66                 : class nsEventTarget : public nsIEventTarget
      67                 : {
      68                 : public:
      69                 :   NS_DECL_ISUPPORTS
      70                 :   NS_DECL_NSIEVENTTARGET
      71                 : 
      72                 :   nsEventTarget();
      73                 : 
      74                 : private:
      75                 :   ~nsEventTarget();
      76                 : 
      77                 : protected:
      78                 :   /* additional members */
      79                 : };
      80                 : 
      81                 : /* Implementation file */
      82                 : NS_IMPL_ISUPPORTS1(nsEventTarget, nsIEventTarget)
      83                 : 
      84                 : nsEventTarget::nsEventTarget()
      85                 : {
      86                 :   /* member initializers and constructor code */
      87                 : }
      88                 : 
      89                 : nsEventTarget::~nsEventTarget()
      90                 : {
      91                 :   /* destructor code */
      92                 : }
      93                 : 
      94                 : /* void dispatch (in nsIRunnable event, in unsigned long flags); */
      95                 : NS_IMETHODIMP nsEventTarget::Dispatch(nsIRunnable *event, PRUint32 flags)
      96                 : {
      97                 :     return NS_ERROR_NOT_IMPLEMENTED;
      98                 : }
      99                 : 
     100                 : /* boolean isOnCurrentThread (); */
     101                 : NS_IMETHODIMP nsEventTarget::IsOnCurrentThread(bool *_retval NS_OUTPARAM)
     102                 : {
     103                 :     return NS_ERROR_NOT_IMPLEMENTED;
     104                 : }
     105                 : 
     106                 : /* End of implementation class template. */
     107                 : #endif
     108                 : 
     109                 : // convenient aliases:
     110                 : #define NS_DISPATCH_NORMAL nsIEventTarget::DISPATCH_NORMAL
     111                 : #define NS_DISPATCH_SYNC   nsIEventTarget::DISPATCH_SYNC
     112                 : 
     113                 : #endif /* __gen_nsIEventTarget_h__ */

Generated by: LCOV version 1.7