LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIWebPageDescriptor.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/nsIWebPageDescriptor.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWebPageDescriptor_h__
       6             : #define __gen_nsIWebPageDescriptor_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:    nsIWebPageDescriptor */
      19             : #define NS_IWEBPAGEDESCRIPTOR_IID_STR "6f30b676-3710-4c2c-80b1-0395fb26516e"
      20             : 
      21             : #define NS_IWEBPAGEDESCRIPTOR_IID \
      22             :   {0x6f30b676, 0x3710, 0x4c2c, \
      23             :     { 0x80, 0xb1, 0x03, 0x95, 0xfb, 0x26, 0x51, 0x6e }}
      24             : 
      25           5 : class NS_NO_VTABLE nsIWebPageDescriptor : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBPAGEDESCRIPTOR_IID)
      29             : 
      30             :   enum {
      31             :     DISPLAY_AS_SOURCE = 1U,
      32             :     DISPLAY_NORMAL = 2U
      33             :   };
      34             : 
      35             :   /* void loadPage (in nsISupports aPageDescriptor, in unsigned long aDisplayType); */
      36             :   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, uint32_t aDisplayType) = 0;
      37             : 
      38             :   /* readonly attribute nsISupports currentDescriptor; */
      39             :   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) = 0;
      40             : 
      41             : };
      42             : 
      43             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebPageDescriptor, NS_IWEBPAGEDESCRIPTOR_IID)
      44             : 
      45             : /* Use this macro when declaring classes that implement this interface. */
      46             : #define NS_DECL_NSIWEBPAGEDESCRIPTOR \
      47             :   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, uint32_t aDisplayType) override; \
      48             :   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) override; 
      49             : 
      50             : /* Use this macro when declaring the members of this interface when the
      51             :    class doesn't implement the interface. This is useful for forwarding. */
      52             : #define NS_DECL_NON_VIRTUAL_NSIWEBPAGEDESCRIPTOR \
      53             :   nsresult LoadPage(nsISupports *aPageDescriptor, uint32_t aDisplayType); \
      54             :   nsresult GetCurrentDescriptor(nsISupports * *aCurrentDescriptor); 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      57             : #define NS_FORWARD_NSIWEBPAGEDESCRIPTOR(_to) \
      58             :   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, uint32_t aDisplayType) override { return _to LoadPage(aPageDescriptor, aDisplayType); } \
      59             :   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) override { return _to GetCurrentDescriptor(aCurrentDescriptor); } 
      60             : 
      61             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      62             : #define NS_FORWARD_SAFE_NSIWEBPAGEDESCRIPTOR(_to) \
      63             :   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, uint32_t aDisplayType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadPage(aPageDescriptor, aDisplayType); } \
      64             :   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentDescriptor(aCurrentDescriptor); } 
      65             : 
      66             : #if 0
      67             : /* Use the code below as a template for the implementation class for this interface. */
      68             : 
      69             : /* Header file */
      70             : class nsWebPageDescriptor : public nsIWebPageDescriptor
      71             : {
      72             : public:
      73             :   NS_DECL_ISUPPORTS
      74             :   NS_DECL_NSIWEBPAGEDESCRIPTOR
      75             : 
      76             :   nsWebPageDescriptor();
      77             : 
      78             : private:
      79             :   ~nsWebPageDescriptor();
      80             : 
      81             : protected:
      82             :   /* additional members */
      83             : };
      84             : 
      85             : /* Implementation file */
      86             : NS_IMPL_ISUPPORTS(nsWebPageDescriptor, nsIWebPageDescriptor)
      87             : 
      88             : nsWebPageDescriptor::nsWebPageDescriptor()
      89             : {
      90             :   /* member initializers and constructor code */
      91             : }
      92             : 
      93             : nsWebPageDescriptor::~nsWebPageDescriptor()
      94             : {
      95             :   /* destructor code */
      96             : }
      97             : 
      98             : /* void loadPage (in nsISupports aPageDescriptor, in unsigned long aDisplayType); */
      99             : NS_IMETHODIMP nsWebPageDescriptor::LoadPage(nsISupports *aPageDescriptor, uint32_t aDisplayType)
     100             : {
     101             :     return NS_ERROR_NOT_IMPLEMENTED;
     102             : }
     103             : 
     104             : /* readonly attribute nsISupports currentDescriptor; */
     105             : NS_IMETHODIMP nsWebPageDescriptor::GetCurrentDescriptor(nsISupports * *aCurrentDescriptor)
     106             : {
     107             :     return NS_ERROR_NOT_IMPLEMENTED;
     108             : }
     109             : 
     110             : /* End of implementation class template. */
     111             : #endif
     112             : 
     113             : 
     114             : #endif /* __gen_nsIWebPageDescriptor_h__ */

Generated by: LCOV version 1.13