LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIWebNavigation.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/docshell/base/nsIWebNavigation.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIWebNavigation_h__
       6                 : #define __gen_nsIWebNavigation_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 nsIDOMDocument; /* forward declaration */
      18                 : 
      19                 : class nsIInputStream; /* forward declaration */
      20                 : 
      21                 : class nsISHistory; /* forward declaration */
      22                 : 
      23                 : class nsIURI; /* forward declaration */
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsIWebNavigation */
      27                 : #define NS_IWEBNAVIGATION_IID_STR "f5d9e7b0-d930-11d3-b057-00a024ffc08c"
      28                 : 
      29                 : #define NS_IWEBNAVIGATION_IID \
      30                 :   {0xf5d9e7b0, 0xd930, 0x11d3, \
      31                 :     { 0xb0, 0x57, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}
      32                 : 
      33               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWebNavigation : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBNAVIGATION_IID)
      37                 : 
      38                 :   /* readonly attribute boolean canGoBack; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoBack(bool *aCanGoBack) = 0;
      40                 : 
      41                 :   /* readonly attribute boolean canGoForward; */
      42                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoForward(bool *aCanGoForward) = 0;
      43                 : 
      44                 :   /* void goBack (); */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GoBack(void) = 0;
      46                 : 
      47                 :   /* void goForward (); */
      48                 :   NS_SCRIPTABLE NS_IMETHOD GoForward(void) = 0;
      49                 : 
      50                 :   /* void gotoIndex (in long index); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD GotoIndex(PRInt32 index) = 0;
      52                 : 
      53                 :   enum {
      54                 :     LOAD_FLAGS_MASK = 65535U,
      55                 :     LOAD_FLAGS_NONE = 0U,
      56                 :     LOAD_FLAGS_IS_REFRESH = 16U,
      57                 :     LOAD_FLAGS_IS_LINK = 32U,
      58                 :     LOAD_FLAGS_BYPASS_HISTORY = 64U,
      59                 :     LOAD_FLAGS_REPLACE_HISTORY = 128U,
      60                 :     LOAD_FLAGS_BYPASS_CACHE = 256U,
      61                 :     LOAD_FLAGS_BYPASS_PROXY = 512U,
      62                 :     LOAD_FLAGS_CHARSET_CHANGE = 1024U,
      63                 :     LOAD_FLAGS_STOP_CONTENT = 2048U,
      64                 :     LOAD_FLAGS_FROM_EXTERNAL = 4096U,
      65                 :     LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 8192U,
      66                 :     LOAD_FLAGS_FIRST_LOAD = 16384U,
      67                 :     LOAD_FLAGS_ALLOW_POPUPS = 32768U,
      68                 :     LOAD_FLAGS_BYPASS_CLASSIFIER = 65536U,
      69                 :     LOAD_FLAGS_FORCE_ALLOW_COOKIES = 131072U,
      70                 :     LOAD_FLAGS_DISALLOW_INHERIT_OWNER = 262144U,
      71                 :     LOAD_FLAGS_URI_IS_UTF8 = 524288U
      72                 :   };
      73                 : 
      74                 :   /* void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders); */
      75                 :   NS_SCRIPTABLE NS_IMETHOD LoadURI(const PRUnichar * aURI, PRUint32 aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders) = 0;
      76                 : 
      77                 :   /* void reload (in unsigned long aReloadFlags); */
      78                 :   NS_SCRIPTABLE NS_IMETHOD Reload(PRUint32 aReloadFlags) = 0;
      79                 : 
      80                 :   enum {
      81                 :     STOP_NETWORK = 1U,
      82                 :     STOP_CONTENT = 2U,
      83                 :     STOP_ALL = 3U
      84                 :   };
      85                 : 
      86                 :   /* void stop (in unsigned long aStopFlags); */
      87                 :   NS_SCRIPTABLE NS_IMETHOD Stop(PRUint32 aStopFlags) = 0;
      88                 : 
      89                 :   /* readonly attribute nsIDOMDocument document; */
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) = 0;
      91                 : 
      92                 :   /* readonly attribute nsIURI currentURI; */
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) = 0;
      94                 : 
      95                 :   /* readonly attribute nsIURI referringURI; */
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) = 0;
      97                 : 
      98                 :   /* attribute nsISHistory sessionHistory; */
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) = 0;
     100                 :   NS_SCRIPTABLE NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) = 0;
     101                 : 
     102                 : };
     103                 : 
     104                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebNavigation, NS_IWEBNAVIGATION_IID)
     105                 : 
     106                 : /* Use this macro when declaring classes that implement this interface. */
     107                 : #define NS_DECL_NSIWEBNAVIGATION \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoBack(bool *aCanGoBack); \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoForward(bool *aCanGoForward); \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GoBack(void); \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GoForward(void); \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GotoIndex(PRInt32 index); \
     113                 :   NS_SCRIPTABLE NS_IMETHOD LoadURI(const PRUnichar * aURI, PRUint32 aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders); \
     114                 :   NS_SCRIPTABLE NS_IMETHOD Reload(PRUint32 aReloadFlags); \
     115                 :   NS_SCRIPTABLE NS_IMETHOD Stop(PRUint32 aStopFlags); \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument); \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI); \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI); \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory); \
     120                 :   NS_SCRIPTABLE NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory); 
     121                 : 
     122                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     123                 : #define NS_FORWARD_NSIWEBNAVIGATION(_to) \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoBack(bool *aCanGoBack) { return _to GetCanGoBack(aCanGoBack); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoForward(bool *aCanGoForward) { return _to GetCanGoForward(aCanGoForward); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GoBack(void) { return _to GoBack(); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD GoForward(void) { return _to GoForward(); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD GotoIndex(PRInt32 index) { return _to GotoIndex(index); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD LoadURI(const PRUnichar * aURI, PRUint32 aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders) { return _to LoadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD Reload(PRUint32 aReloadFlags) { return _to Reload(aReloadFlags); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD Stop(PRUint32 aStopFlags) { return _to Stop(aStopFlags); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return _to GetDocument(aDocument); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) { return _to GetCurrentURI(aCurrentURI); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) { return _to GetReferringURI(aReferringURI); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) { return _to GetSessionHistory(aSessionHistory); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) { return _to SetSessionHistory(aSessionHistory); } 
     137                 : 
     138                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     139                 : #define NS_FORWARD_SAFE_NSIWEBNAVIGATION(_to) \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoBack(bool *aCanGoBack) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGoBack(aCanGoBack); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetCanGoForward(bool *aCanGoForward) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGoForward(aCanGoForward); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GoBack(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GoBack(); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GoForward(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GoForward(); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD GotoIndex(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->GotoIndex(index); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD LoadURI(const PRUnichar * aURI, PRUint32 aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders); } \
     146                 :   NS_SCRIPTABLE NS_IMETHOD Reload(PRUint32 aReloadFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reload(aReloadFlags); } \
     147                 :   NS_SCRIPTABLE NS_IMETHOD Stop(PRUint32 aStopFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(aStopFlags); } \
     148                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
     149                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentURI(aCurrentURI); } \
     150                 :   NS_SCRIPTABLE NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferringURI(aReferringURI); } \
     151                 :   NS_SCRIPTABLE NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionHistory(aSessionHistory); } \
     152                 :   NS_SCRIPTABLE NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSessionHistory(aSessionHistory); } 
     153                 : 
     154                 : #if 0
     155                 : /* Use the code below as a template for the implementation class for this interface. */
     156                 : 
     157                 : /* Header file */
     158                 : class nsWebNavigation : public nsIWebNavigation
     159                 : {
     160                 : public:
     161                 :   NS_DECL_ISUPPORTS
     162                 :   NS_DECL_NSIWEBNAVIGATION
     163                 : 
     164                 :   nsWebNavigation();
     165                 : 
     166                 : private:
     167                 :   ~nsWebNavigation();
     168                 : 
     169                 : protected:
     170                 :   /* additional members */
     171                 : };
     172                 : 
     173                 : /* Implementation file */
     174                 : NS_IMPL_ISUPPORTS1(nsWebNavigation, nsIWebNavigation)
     175                 : 
     176                 : nsWebNavigation::nsWebNavigation()
     177                 : {
     178                 :   /* member initializers and constructor code */
     179                 : }
     180                 : 
     181                 : nsWebNavigation::~nsWebNavigation()
     182                 : {
     183                 :   /* destructor code */
     184                 : }
     185                 : 
     186                 : /* readonly attribute boolean canGoBack; */
     187                 : NS_IMETHODIMP nsWebNavigation::GetCanGoBack(bool *aCanGoBack)
     188                 : {
     189                 :     return NS_ERROR_NOT_IMPLEMENTED;
     190                 : }
     191                 : 
     192                 : /* readonly attribute boolean canGoForward; */
     193                 : NS_IMETHODIMP nsWebNavigation::GetCanGoForward(bool *aCanGoForward)
     194                 : {
     195                 :     return NS_ERROR_NOT_IMPLEMENTED;
     196                 : }
     197                 : 
     198                 : /* void goBack (); */
     199                 : NS_IMETHODIMP nsWebNavigation::GoBack()
     200                 : {
     201                 :     return NS_ERROR_NOT_IMPLEMENTED;
     202                 : }
     203                 : 
     204                 : /* void goForward (); */
     205                 : NS_IMETHODIMP nsWebNavigation::GoForward()
     206                 : {
     207                 :     return NS_ERROR_NOT_IMPLEMENTED;
     208                 : }
     209                 : 
     210                 : /* void gotoIndex (in long index); */
     211                 : NS_IMETHODIMP nsWebNavigation::GotoIndex(PRInt32 index)
     212                 : {
     213                 :     return NS_ERROR_NOT_IMPLEMENTED;
     214                 : }
     215                 : 
     216                 : /* void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders); */
     217                 : NS_IMETHODIMP nsWebNavigation::LoadURI(const PRUnichar * aURI, PRUint32 aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders)
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* void reload (in unsigned long aReloadFlags); */
     223                 : NS_IMETHODIMP nsWebNavigation::Reload(PRUint32 aReloadFlags)
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : 
     228                 : /* void stop (in unsigned long aStopFlags); */
     229                 : NS_IMETHODIMP nsWebNavigation::Stop(PRUint32 aStopFlags)
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : 
     234                 : /* readonly attribute nsIDOMDocument document; */
     235                 : NS_IMETHODIMP nsWebNavigation::GetDocument(nsIDOMDocument * *aDocument)
     236                 : {
     237                 :     return NS_ERROR_NOT_IMPLEMENTED;
     238                 : }
     239                 : 
     240                 : /* readonly attribute nsIURI currentURI; */
     241                 : NS_IMETHODIMP nsWebNavigation::GetCurrentURI(nsIURI * *aCurrentURI)
     242                 : {
     243                 :     return NS_ERROR_NOT_IMPLEMENTED;
     244                 : }
     245                 : 
     246                 : /* readonly attribute nsIURI referringURI; */
     247                 : NS_IMETHODIMP nsWebNavigation::GetReferringURI(nsIURI * *aReferringURI)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* attribute nsISHistory sessionHistory; */
     253                 : NS_IMETHODIMP nsWebNavigation::GetSessionHistory(nsISHistory * *aSessionHistory)
     254                 : {
     255                 :     return NS_ERROR_NOT_IMPLEMENTED;
     256                 : }
     257                 : NS_IMETHODIMP nsWebNavigation::SetSessionHistory(nsISHistory *aSessionHistory)
     258                 : {
     259                 :     return NS_ERROR_NOT_IMPLEMENTED;
     260                 : }
     261                 : 
     262                 : /* End of implementation class template. */
     263                 : #endif
     264                 : 
     265                 : 
     266                 : #endif /* __gen_nsIWebNavigation_h__ */

Generated by: LCOV version 1.7