LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIGfxInfoDebug.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/nsIGfxInfoDebug.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIGfxInfoDebug_h__
       6             : #define __gen_nsIGfxInfoDebug_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:    nsIGfxInfoDebug */
      19             : #define NS_IGFXINFODEBUG_IID_STR "ca7b0bc7-c67c-4b79-8270-ed7ba002af08"
      20             : 
      21             : #define NS_IGFXINFODEBUG_IID \
      22             :   {0xca7b0bc7, 0xc67c, 0x4b79, \
      23             :     { 0x82, 0x70, 0xed, 0x7b, 0xa0, 0x02, 0xaf, 0x08 }}
      24             : 
      25           3 : class NS_NO_VTABLE nsIGfxInfoDebug : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGFXINFODEBUG_IID)
      29             : 
      30             :   /* void spoofVendorID (in DOMString aVendorID); */
      31             :   NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) = 0;
      32             : 
      33             :   /* void spoofDeviceID (in DOMString aDeviceID); */
      34             :   NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) = 0;
      35             : 
      36             :   /* void spoofDriverVersion (in DOMString aDriverVersion); */
      37             :   NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) = 0;
      38             : 
      39             :   /* void spoofOSVersion (in unsigned long aVersion); */
      40             :   NS_IMETHOD SpoofOSVersion(uint32_t aVersion) = 0;
      41             : 
      42             : };
      43             : 
      44             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGfxInfoDebug, NS_IGFXINFODEBUG_IID)
      45             : 
      46             : /* Use this macro when declaring classes that implement this interface. */
      47             : #define NS_DECL_NSIGFXINFODEBUG \
      48             :   NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) override; \
      49             :   NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) override; \
      50             :   NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) override; \
      51             :   NS_IMETHOD SpoofOSVersion(uint32_t aVersion) override; 
      52             : 
      53             : /* Use this macro when declaring the members of this interface when the
      54             :    class doesn't implement the interface. This is useful for forwarding. */
      55             : #define NS_DECL_NON_VIRTUAL_NSIGFXINFODEBUG \
      56             :   nsresult SpoofVendorID(const nsAString & aVendorID); \
      57             :   nsresult SpoofDeviceID(const nsAString & aDeviceID); \
      58             :   nsresult SpoofDriverVersion(const nsAString & aDriverVersion); \
      59             :   nsresult SpoofOSVersion(uint32_t aVersion); 
      60             : 
      61             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62             : #define NS_FORWARD_NSIGFXINFODEBUG(_to) \
      63             :   NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) override { return _to SpoofVendorID(aVendorID); } \
      64             :   NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) override { return _to SpoofDeviceID(aDeviceID); } \
      65             :   NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) override { return _to SpoofDriverVersion(aDriverVersion); } \
      66             :   NS_IMETHOD SpoofOSVersion(uint32_t aVersion) override { return _to SpoofOSVersion(aVersion); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSIGFXINFODEBUG(_to) \
      70             :   NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofVendorID(aVendorID); } \
      71             :   NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofDeviceID(aDeviceID); } \
      72             :   NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofDriverVersion(aDriverVersion); } \
      73             :   NS_IMETHOD SpoofOSVersion(uint32_t aVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofOSVersion(aVersion); } 
      74             : 
      75             : #if 0
      76             : /* Use the code below as a template for the implementation class for this interface. */
      77             : 
      78             : /* Header file */
      79             : class nsGfxInfoDebug : public nsIGfxInfoDebug
      80             : {
      81             : public:
      82             :   NS_DECL_ISUPPORTS
      83             :   NS_DECL_NSIGFXINFODEBUG
      84             : 
      85             :   nsGfxInfoDebug();
      86             : 
      87             : private:
      88             :   ~nsGfxInfoDebug();
      89             : 
      90             : protected:
      91             :   /* additional members */
      92             : };
      93             : 
      94             : /* Implementation file */
      95             : NS_IMPL_ISUPPORTS(nsGfxInfoDebug, nsIGfxInfoDebug)
      96             : 
      97             : nsGfxInfoDebug::nsGfxInfoDebug()
      98             : {
      99             :   /* member initializers and constructor code */
     100             : }
     101             : 
     102             : nsGfxInfoDebug::~nsGfxInfoDebug()
     103             : {
     104             :   /* destructor code */
     105             : }
     106             : 
     107             : /* void spoofVendorID (in DOMString aVendorID); */
     108             : NS_IMETHODIMP nsGfxInfoDebug::SpoofVendorID(const nsAString & aVendorID)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* void spoofDeviceID (in DOMString aDeviceID); */
     114             : NS_IMETHODIMP nsGfxInfoDebug::SpoofDeviceID(const nsAString & aDeviceID)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* void spoofDriverVersion (in DOMString aDriverVersion); */
     120             : NS_IMETHODIMP nsGfxInfoDebug::SpoofDriverVersion(const nsAString & aDriverVersion)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* void spoofOSVersion (in unsigned long aVersion); */
     126             : NS_IMETHODIMP nsGfxInfoDebug::SpoofOSVersion(uint32_t aVersion)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* End of implementation class template. */
     132             : #endif
     133             : 
     134             : 
     135             : #endif /* __gen_nsIGfxInfoDebug_h__ */

Generated by: LCOV version 1.13