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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDocumentStateListener.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDocumentStateListener_h__
       6             : #define __gen_nsIDocumentStateListener_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:    nsIDocumentStateListener */
      19             : #define NS_IDOCUMENTSTATELISTENER_IID_STR "050cdc00-3b8e-11d3-9ce4-a458f454fcbc"
      20             : 
      21             : #define NS_IDOCUMENTSTATELISTENER_IID \
      22             :   {0x050cdc00, 0x3b8e, 0x11d3, \
      23             :     { 0x9c, 0xe4, 0xa4, 0x58, 0xf4, 0x54, 0xfc, 0xbc }}
      24             : 
      25           0 : class NS_NO_VTABLE nsIDocumentStateListener : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCUMENTSTATELISTENER_IID)
      29             : 
      30             :   /* void NotifyDocumentCreated (); */
      31             :   NS_IMETHOD NotifyDocumentCreated(void) = 0;
      32             : 
      33             :   /* void NotifyDocumentWillBeDestroyed (); */
      34             :   NS_IMETHOD NotifyDocumentWillBeDestroyed(void) = 0;
      35             : 
      36             :   /* void NotifyDocumentStateChanged (in boolean nowDirty); */
      37             :   NS_IMETHOD NotifyDocumentStateChanged(bool nowDirty) = 0;
      38             : 
      39             : };
      40             : 
      41             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocumentStateListener, NS_IDOCUMENTSTATELISTENER_IID)
      42             : 
      43             : /* Use this macro when declaring classes that implement this interface. */
      44             : #define NS_DECL_NSIDOCUMENTSTATELISTENER \
      45             :   NS_IMETHOD NotifyDocumentCreated(void) override; \
      46             :   NS_IMETHOD NotifyDocumentWillBeDestroyed(void) override; \
      47             :   NS_IMETHOD NotifyDocumentStateChanged(bool nowDirty) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSIDOCUMENTSTATELISTENER \
      52             :   nsresult NotifyDocumentCreated(void); \
      53             :   nsresult NotifyDocumentWillBeDestroyed(void); \
      54             :   nsresult NotifyDocumentStateChanged(bool nowDirty); 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      57             : #define NS_FORWARD_NSIDOCUMENTSTATELISTENER(_to) \
      58             :   NS_IMETHOD NotifyDocumentCreated(void) override { return _to NotifyDocumentCreated(); } \
      59             :   NS_IMETHOD NotifyDocumentWillBeDestroyed(void) override { return _to NotifyDocumentWillBeDestroyed(); } \
      60             :   NS_IMETHOD NotifyDocumentStateChanged(bool nowDirty) override { return _to NotifyDocumentStateChanged(nowDirty); } 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      63             : #define NS_FORWARD_SAFE_NSIDOCUMENTSTATELISTENER(_to) \
      64             :   NS_IMETHOD NotifyDocumentCreated(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDocumentCreated(); } \
      65             :   NS_IMETHOD NotifyDocumentWillBeDestroyed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDocumentWillBeDestroyed(); } \
      66             :   NS_IMETHOD NotifyDocumentStateChanged(bool nowDirty) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDocumentStateChanged(nowDirty); } 
      67             : 
      68             : #if 0
      69             : /* Use the code below as a template for the implementation class for this interface. */
      70             : 
      71             : /* Header file */
      72             : class nsDocumentStateListener : public nsIDocumentStateListener
      73             : {
      74             : public:
      75             :   NS_DECL_ISUPPORTS
      76             :   NS_DECL_NSIDOCUMENTSTATELISTENER
      77             : 
      78             :   nsDocumentStateListener();
      79             : 
      80             : private:
      81             :   ~nsDocumentStateListener();
      82             : 
      83             : protected:
      84             :   /* additional members */
      85             : };
      86             : 
      87             : /* Implementation file */
      88             : NS_IMPL_ISUPPORTS(nsDocumentStateListener, nsIDocumentStateListener)
      89             : 
      90             : nsDocumentStateListener::nsDocumentStateListener()
      91             : {
      92             :   /* member initializers and constructor code */
      93             : }
      94             : 
      95             : nsDocumentStateListener::~nsDocumentStateListener()
      96             : {
      97             :   /* destructor code */
      98             : }
      99             : 
     100             : /* void NotifyDocumentCreated (); */
     101             : NS_IMETHODIMP nsDocumentStateListener::NotifyDocumentCreated()
     102             : {
     103             :     return NS_ERROR_NOT_IMPLEMENTED;
     104             : }
     105             : 
     106             : /* void NotifyDocumentWillBeDestroyed (); */
     107             : NS_IMETHODIMP nsDocumentStateListener::NotifyDocumentWillBeDestroyed()
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112             : /* void NotifyDocumentStateChanged (in boolean nowDirty); */
     113             : NS_IMETHODIMP nsDocumentStateListener::NotifyDocumentStateChanged(bool nowDirty)
     114             : {
     115             :     return NS_ERROR_NOT_IMPLEMENTED;
     116             : }
     117             : 
     118             : /* End of implementation class template. */
     119             : #endif
     120             : 
     121             : 
     122             : #endif /* __gen_nsIDocumentStateListener_h__ */

Generated by: LCOV version 1.13