LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIGlobalHistory2.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/docshell/base/nsIGlobalHistory2.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIGlobalHistory2_h__
       6                 : #define __gen_nsIGlobalHistory2_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 nsIURI; /* forward declaration */
      18                 : 
      19                 : 
      20                 : // nsIObserver topic to fire when you add new visited URIs to the history;
      21                 : // the nsIURI is the subject
      22                 : #define NS_LINK_VISITED_EVENT_TOPIC "link-visited"
      23                 : 
      24                 : /* starting interface:    nsIGlobalHistory2 */
      25                 : #define NS_IGLOBALHISTORY2_IID_STR "cf777d42-1270-4b34-be7b-2931c93feda5"
      26                 : 
      27                 : #define NS_IGLOBALHISTORY2_IID \
      28                 :   {0xcf777d42, 0x1270, 0x4b34, \
      29                 :     { 0xbe, 0x7b, 0x29, 0x31, 0xc9, 0x3f, 0xed, 0xa5 }}
      30                 : 
      31             263 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGlobalHistory2 : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGLOBALHISTORY2_IID)
      35                 : 
      36                 :   /* void addURI (in nsIURI aURI, in boolean aRedirect, in boolean aToplevel, in nsIURI aReferrer); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD AddURI(nsIURI *aURI, bool aRedirect, bool aToplevel, nsIURI *aReferrer) = 0;
      38                 : 
      39                 :   /* boolean isVisited (in nsIURI aURI); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD IsVisited(nsIURI *aURI, bool *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* void setPageTitle (in nsIURI aURI, in AString aTitle); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD SetPageTitle(nsIURI *aURI, const nsAString & aTitle) = 0;
      44                 : 
      45                 : };
      46                 : 
      47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGlobalHistory2, NS_IGLOBALHISTORY2_IID)
      48                 : 
      49                 : /* Use this macro when declaring classes that implement this interface. */
      50                 : #define NS_DECL_NSIGLOBALHISTORY2 \
      51                 :   NS_SCRIPTABLE NS_IMETHOD AddURI(nsIURI *aURI, bool aRedirect, bool aToplevel, nsIURI *aReferrer); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD IsVisited(nsIURI *aURI, bool *_retval NS_OUTPARAM); \
      53                 :   NS_SCRIPTABLE NS_IMETHOD SetPageTitle(nsIURI *aURI, const nsAString & aTitle); 
      54                 : 
      55                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56                 : #define NS_FORWARD_NSIGLOBALHISTORY2(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD AddURI(nsIURI *aURI, bool aRedirect, bool aToplevel, nsIURI *aReferrer) { return _to AddURI(aURI, aRedirect, aToplevel, aReferrer); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD IsVisited(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return _to IsVisited(aURI, _retval); } \
      59                 :   NS_SCRIPTABLE NS_IMETHOD SetPageTitle(nsIURI *aURI, const nsAString & aTitle) { return _to SetPageTitle(aURI, aTitle); } 
      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_NSIGLOBALHISTORY2(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD AddURI(nsIURI *aURI, bool aRedirect, bool aToplevel, nsIURI *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddURI(aURI, aRedirect, aToplevel, aReferrer); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD IsVisited(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsVisited(aURI, _retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD SetPageTitle(nsIURI *aURI, const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPageTitle(aURI, aTitle); } 
      66                 : 
      67                 : #if 0
      68                 : /* Use the code below as a template for the implementation class for this interface. */
      69                 : 
      70                 : /* Header file */
      71                 : class nsGlobalHistory2 : public nsIGlobalHistory2
      72                 : {
      73                 : public:
      74                 :   NS_DECL_ISUPPORTS
      75                 :   NS_DECL_NSIGLOBALHISTORY2
      76                 : 
      77                 :   nsGlobalHistory2();
      78                 : 
      79                 : private:
      80                 :   ~nsGlobalHistory2();
      81                 : 
      82                 : protected:
      83                 :   /* additional members */
      84                 : };
      85                 : 
      86                 : /* Implementation file */
      87                 : NS_IMPL_ISUPPORTS1(nsGlobalHistory2, nsIGlobalHistory2)
      88                 : 
      89                 : nsGlobalHistory2::nsGlobalHistory2()
      90                 : {
      91                 :   /* member initializers and constructor code */
      92                 : }
      93                 : 
      94                 : nsGlobalHistory2::~nsGlobalHistory2()
      95                 : {
      96                 :   /* destructor code */
      97                 : }
      98                 : 
      99                 : /* void addURI (in nsIURI aURI, in boolean aRedirect, in boolean aToplevel, in nsIURI aReferrer); */
     100                 : NS_IMETHODIMP nsGlobalHistory2::AddURI(nsIURI *aURI, bool aRedirect, bool aToplevel, nsIURI *aReferrer)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* boolean isVisited (in nsIURI aURI); */
     106                 : NS_IMETHODIMP nsGlobalHistory2::IsVisited(nsIURI *aURI, bool *_retval NS_OUTPARAM)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* void setPageTitle (in nsIURI aURI, in AString aTitle); */
     112                 : NS_IMETHODIMP nsGlobalHistory2::SetPageTitle(nsIURI *aURI, const nsAString & aTitle)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* End of implementation class template. */
     118                 : #endif
     119                 : 
     120                 : 
     121                 : #endif /* __gen_nsIGlobalHistory2_h__ */

Generated by: LCOV version 1.7