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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRunnable.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIRunnable_h__
       6             : #define __gen_nsIRunnable_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             : 
      18             : /* starting interface:    nsIRunnable */
      19             : #define NS_IRUNNABLE_IID_STR "4a2abaf0-6886-11d3-9382-00104ba0fd40"
      20             : 
      21             : #define NS_IRUNNABLE_IID \
      22             :   {0x4a2abaf0, 0x6886, 0x11d3, \
      23             :     { 0x93, 0x82, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}
      24             : 
      25        3949 : class NS_NO_VTABLE nsIRunnable : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRUNNABLE_IID)
      29             : 
      30             :   /* void run (); */
      31             :   NS_IMETHOD Run(void) = 0;
      32             : 
      33             : };
      34             : 
      35             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRunnable, NS_IRUNNABLE_IID)
      36             : 
      37             : /* Use this macro when declaring classes that implement this interface. */
      38             : #define NS_DECL_NSIRUNNABLE \
      39             :   NS_IMETHOD Run(void) override; 
      40             : 
      41             : /* Use this macro when declaring the members of this interface when the
      42             :    class doesn't implement the interface. This is useful for forwarding. */
      43             : #define NS_DECL_NON_VIRTUAL_NSIRUNNABLE \
      44             :   nsresult Run(void); 
      45             : 
      46             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      47             : #define NS_FORWARD_NSIRUNNABLE(_to) \
      48             :   NS_IMETHOD Run(void) override { return _to Run(); } 
      49             : 
      50             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      51             : #define NS_FORWARD_SAFE_NSIRUNNABLE(_to) \
      52             :   NS_IMETHOD Run(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Run(); } 
      53             : 
      54             : #if 0
      55             : /* Use the code below as a template for the implementation class for this interface. */
      56             : 
      57             : /* Header file */
      58             : class nsRunnable : public nsIRunnable
      59             : {
      60             : public:
      61             :   NS_DECL_ISUPPORTS
      62             :   NS_DECL_NSIRUNNABLE
      63             : 
      64             :   nsRunnable();
      65             : 
      66             : private:
      67             :   ~nsRunnable();
      68             : 
      69             : protected:
      70             :   /* additional members */
      71             : };
      72             : 
      73             : /* Implementation file */
      74             : NS_IMPL_ISUPPORTS(nsRunnable, nsIRunnable)
      75             : 
      76             : nsRunnable::nsRunnable()
      77             : {
      78             :   /* member initializers and constructor code */
      79             : }
      80             : 
      81             : nsRunnable::~nsRunnable()
      82             : {
      83             :   /* destructor code */
      84             : }
      85             : 
      86             : /* void run (); */
      87             : NS_IMETHODIMP nsRunnable::Run()
      88             : {
      89             :     return NS_ERROR_NOT_IMPLEMENTED;
      90             : }
      91             : 
      92             : /* End of implementation class template. */
      93             : #endif
      94             : 
      95             : 
      96             : /* starting interface:    nsIRunnablePriority */
      97             : #define NS_IRUNNABLEPRIORITY_IID_STR "e75aa42a-80a9-11e6-afb5-e89d87348e2c"
      98             : 
      99             : #define NS_IRUNNABLEPRIORITY_IID \
     100             :   {0xe75aa42a, 0x80a9, 0x11e6, \
     101             :     { 0xaf, 0xb5, 0xe8, 0x9d, 0x87, 0x34, 0x8e, 0x2c }}
     102             : 
     103         540 : class NS_NO_VTABLE nsIRunnablePriority : public nsISupports {
     104             :  public:
     105             : 
     106             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRUNNABLEPRIORITY_IID)
     107             : 
     108             :   enum {
     109             :     PRIORITY_NORMAL = 0U,
     110             :     PRIORITY_HIGH = 1U
     111             :   };
     112             : 
     113             :   /* readonly attribute unsigned long priority; */
     114             :   NS_IMETHOD GetPriority(uint32_t *aPriority) = 0;
     115             : 
     116             : };
     117             : 
     118             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRunnablePriority, NS_IRUNNABLEPRIORITY_IID)
     119             : 
     120             : /* Use this macro when declaring classes that implement this interface. */
     121             : #define NS_DECL_NSIRUNNABLEPRIORITY \
     122             :   NS_IMETHOD GetPriority(uint32_t *aPriority) override; 
     123             : 
     124             : /* Use this macro when declaring the members of this interface when the
     125             :    class doesn't implement the interface. This is useful for forwarding. */
     126             : #define NS_DECL_NON_VIRTUAL_NSIRUNNABLEPRIORITY \
     127             :   nsresult GetPriority(uint32_t *aPriority); 
     128             : 
     129             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     130             : #define NS_FORWARD_NSIRUNNABLEPRIORITY(_to) \
     131             :   NS_IMETHOD GetPriority(uint32_t *aPriority) override { return _to GetPriority(aPriority); } 
     132             : 
     133             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     134             : #define NS_FORWARD_SAFE_NSIRUNNABLEPRIORITY(_to) \
     135             :   NS_IMETHOD GetPriority(uint32_t *aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } 
     136             : 
     137             : #if 0
     138             : /* Use the code below as a template for the implementation class for this interface. */
     139             : 
     140             : /* Header file */
     141             : class nsRunnablePriority : public nsIRunnablePriority
     142             : {
     143             : public:
     144             :   NS_DECL_ISUPPORTS
     145             :   NS_DECL_NSIRUNNABLEPRIORITY
     146             : 
     147             :   nsRunnablePriority();
     148             : 
     149             : private:
     150             :   ~nsRunnablePriority();
     151             : 
     152             : protected:
     153             :   /* additional members */
     154             : };
     155             : 
     156             : /* Implementation file */
     157             : NS_IMPL_ISUPPORTS(nsRunnablePriority, nsIRunnablePriority)
     158             : 
     159             : nsRunnablePriority::nsRunnablePriority()
     160             : {
     161             :   /* member initializers and constructor code */
     162             : }
     163             : 
     164             : nsRunnablePriority::~nsRunnablePriority()
     165             : {
     166             :   /* destructor code */
     167             : }
     168             : 
     169             : /* readonly attribute unsigned long priority; */
     170             : NS_IMETHODIMP nsRunnablePriority::GetPriority(uint32_t *aPriority)
     171             : {
     172             :     return NS_ERROR_NOT_IMPLEMENTED;
     173             : }
     174             : 
     175             : /* End of implementation class template. */
     176             : #endif
     177             : 
     178             : 
     179             : #endif /* __gen_nsIRunnable_h__ */

Generated by: LCOV version 1.13