LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMHistory.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMHistory.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMHistory_h__
       6                 : #define __gen_nsIDOMHistory_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.h"
      11                 : #endif
      12                 : 
      13                 : #include "jspubtd.h"
      14                 : 
      15                 : /* For IDL files that don't want to include root IDL files. */
      16                 : #ifndef NS_NO_VTABLE
      17                 : #define NS_NO_VTABLE
      18                 : #endif
      19                 : struct JSContext;
      20                 : class nsIVariant; /* forward declaration */
      21                 : 
      22                 : 
      23                 : /* starting interface:    nsIDOMHistory */
      24                 : #define NS_IDOMHISTORY_IID_STR "d5a3006b-dd6b-4ba3-81be-6559f8889e60"
      25                 : 
      26                 : #define NS_IDOMHISTORY_IID \
      27                 :   {0xd5a3006b, 0xdd6b, 0x4ba3, \
      28                 :     { 0x81, 0xbe, 0x65, 0x59, 0xf8, 0x88, 0x9e, 0x60 }}
      29                 : 
      30               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHistory : public nsISupports {
      31                 :  public: 
      32                 : 
      33                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHISTORY_IID)
      34                 : 
      35                 :   /* readonly attribute long length; */
      36                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
      37                 : 
      38                 :   /* readonly attribute DOMString current; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsAString & aCurrent) = 0;
      40                 : 
      41                 :   /* readonly attribute DOMString previous; */
      42                 :   NS_SCRIPTABLE NS_IMETHOD GetPrevious(nsAString & aPrevious) = 0;
      43                 : 
      44                 :   /* readonly attribute DOMString next; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(nsAString & aNext) = 0;
      46                 : 
      47                 :   /* void back (); */
      48                 :   NS_SCRIPTABLE NS_IMETHOD Back(void) = 0;
      49                 : 
      50                 :   /* void forward (); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD Forward(void) = 0;
      52                 : 
      53                 :   /* void go ([optional] in long aDelta); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD Go(PRInt32 aDelta) = 0;
      55                 : 
      56                 :   /* DOMString item (in unsigned long index); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
      58                 : 
      59                 :   /* [implicit_jscontext] void pushState (in nsIVariant aData, in DOMString aTitle, [optional] in DOMString aURL); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD PushState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx) = 0;
      61                 : 
      62                 :   /* [implicit_jscontext] void replaceState (in nsIVariant aData, in DOMString aTitle, [optional] in DOMString aURL); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx) = 0;
      64                 : 
      65                 :   /* readonly attribute nsIVariant state; */
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetState(nsIVariant * *aState) = 0;
      67                 : 
      68                 : };
      69                 : 
      70                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHistory, NS_IDOMHISTORY_IID)
      71                 : 
      72                 : /* Use this macro when declaring classes that implement this interface. */
      73                 : #define NS_DECL_NSIDOMHISTORY \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsAString & aCurrent); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetPrevious(nsAString & aPrevious); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(nsAString & aNext); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD Back(void); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD Forward(void); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD Go(PRInt32 aDelta); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD PushState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetState(nsIVariant * *aState); 
      85                 : 
      86                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      87                 : #define NS_FORWARD_NSIDOMHISTORY(_to) \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsAString & aCurrent) { return _to GetCurrent(aCurrent); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetPrevious(nsAString & aPrevious) { return _to GetPrevious(aPrevious); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(nsAString & aNext) { return _to GetNext(aNext); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD Back(void) { return _to Back(); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD Forward(void) { return _to Forward(); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD Go(PRInt32 aDelta) { return _to Go(aDelta); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to Item(index, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD PushState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx) { return _to PushState(aData, aTitle, aURL, cx); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx) { return _to ReplaceState(aData, aTitle, aURL, cx); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetState(nsIVariant * *aState) { return _to GetState(aState); } 
      99                 : 
     100                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     101                 : #define NS_FORWARD_SAFE_NSIDOMHISTORY(_to) \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsAString & aCurrent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrent(aCurrent); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetPrevious(nsAString & aPrevious) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrevious(aPrevious); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(nsAString & aNext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(aNext); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD Back(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Back(); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD Forward(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Forward(); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD Go(PRInt32 aDelta) { return !_to ? NS_ERROR_NULL_POINTER : _to->Go(aDelta); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD PushState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->PushState(aData, aTitle, aURL, cx); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceState(aData, aTitle, aURL, cx); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetState(nsIVariant * *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } 
     113                 : 
     114                 : #if 0
     115                 : /* Use the code below as a template for the implementation class for this interface. */
     116                 : 
     117                 : /* Header file */
     118                 : class nsDOMHistory : public nsIDOMHistory
     119                 : {
     120                 : public:
     121                 :   NS_DECL_ISUPPORTS
     122                 :   NS_DECL_NSIDOMHISTORY
     123                 : 
     124                 :   nsDOMHistory();
     125                 : 
     126                 : private:
     127                 :   ~nsDOMHistory();
     128                 : 
     129                 : protected:
     130                 :   /* additional members */
     131                 : };
     132                 : 
     133                 : /* Implementation file */
     134                 : NS_IMPL_ISUPPORTS1(nsDOMHistory, nsIDOMHistory)
     135                 : 
     136                 : nsDOMHistory::nsDOMHistory()
     137                 : {
     138                 :   /* member initializers and constructor code */
     139                 : }
     140                 : 
     141                 : nsDOMHistory::~nsDOMHistory()
     142                 : {
     143                 :   /* destructor code */
     144                 : }
     145                 : 
     146                 : /* readonly attribute long length; */
     147                 : NS_IMETHODIMP nsDOMHistory::GetLength(PRInt32 *aLength)
     148                 : {
     149                 :     return NS_ERROR_NOT_IMPLEMENTED;
     150                 : }
     151                 : 
     152                 : /* readonly attribute DOMString current; */
     153                 : NS_IMETHODIMP nsDOMHistory::GetCurrent(nsAString & aCurrent)
     154                 : {
     155                 :     return NS_ERROR_NOT_IMPLEMENTED;
     156                 : }
     157                 : 
     158                 : /* readonly attribute DOMString previous; */
     159                 : NS_IMETHODIMP nsDOMHistory::GetPrevious(nsAString & aPrevious)
     160                 : {
     161                 :     return NS_ERROR_NOT_IMPLEMENTED;
     162                 : }
     163                 : 
     164                 : /* readonly attribute DOMString next; */
     165                 : NS_IMETHODIMP nsDOMHistory::GetNext(nsAString & aNext)
     166                 : {
     167                 :     return NS_ERROR_NOT_IMPLEMENTED;
     168                 : }
     169                 : 
     170                 : /* void back (); */
     171                 : NS_IMETHODIMP nsDOMHistory::Back()
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* void forward (); */
     177                 : NS_IMETHODIMP nsDOMHistory::Forward()
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* void go ([optional] in long aDelta); */
     183                 : NS_IMETHODIMP nsDOMHistory::Go(PRInt32 aDelta)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* DOMString item (in unsigned long index); */
     189                 : NS_IMETHODIMP nsDOMHistory::Item(PRUint32 index, nsAString & _retval NS_OUTPARAM)
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* [implicit_jscontext] void pushState (in nsIVariant aData, in DOMString aTitle, [optional] in DOMString aURL); */
     195                 : NS_IMETHODIMP nsDOMHistory::PushState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx)
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : 
     200                 : /* [implicit_jscontext] void replaceState (in nsIVariant aData, in DOMString aTitle, [optional] in DOMString aURL); */
     201                 : NS_IMETHODIMP nsDOMHistory::ReplaceState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, JSContext* cx)
     202                 : {
     203                 :     return NS_ERROR_NOT_IMPLEMENTED;
     204                 : }
     205                 : 
     206                 : /* readonly attribute nsIVariant state; */
     207                 : NS_IMETHODIMP nsDOMHistory::GetState(nsIVariant * *aState)
     208                 : {
     209                 :     return NS_ERROR_NOT_IMPLEMENTED;
     210                 : }
     211                 : 
     212                 : /* End of implementation class template. */
     213                 : #endif
     214                 : 
     215                 : 
     216                 : #endif /* __gen_nsIDOMHistory_h__ */

Generated by: LCOV version 1.7