LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIWebNavigation.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/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             : #include "js/Value.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             : class nsIDOMDocument; /* forward declaration */
      20             : 
      21             : class nsIInputStream; /* forward declaration */
      22             : 
      23             : class nsISHistory; /* forward declaration */
      24             : 
      25             : class nsIURI; /* forward declaration */
      26             : 
      27             : class nsIPrincipal; /* forward declaration */
      28             : 
      29             : 
      30             : /* starting interface:    nsIWebNavigation */
      31             : #define NS_IWEBNAVIGATION_IID_STR "3ade79d4-8cb9-4952-b18d-4f9b63ca0d31"
      32             : 
      33             : #define NS_IWEBNAVIGATION_IID \
      34             :   {0x3ade79d4, 0x8cb9, 0x4952, \
      35             :     { 0xb1, 0x8d, 0x4f, 0x9b, 0x63, 0xca, 0x0d, 0x31 }}
      36             : 
      37           8 : class NS_NO_VTABLE nsIWebNavigation : public nsISupports {
      38             :  public:
      39             : 
      40             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBNAVIGATION_IID)
      41             : 
      42             :   /* readonly attribute boolean canGoBack; */
      43             :   NS_IMETHOD GetCanGoBack(bool *aCanGoBack) = 0;
      44             : 
      45             :   /* readonly attribute boolean canGoForward; */
      46             :   NS_IMETHOD GetCanGoForward(bool *aCanGoForward) = 0;
      47             : 
      48             :   /* void goBack (); */
      49             :   NS_IMETHOD GoBack(void) = 0;
      50             : 
      51             :   /* void goForward (); */
      52             :   NS_IMETHOD GoForward(void) = 0;
      53             : 
      54             :   /* void gotoIndex (in long index); */
      55             :   NS_IMETHOD GotoIndex(int32_t index) = 0;
      56             : 
      57             :   enum {
      58             :     LOAD_FLAGS_MASK = 65535U,
      59             :     LOAD_FLAGS_NONE = 0U,
      60             :     LOAD_FLAGS_IS_REFRESH = 16U,
      61             :     LOAD_FLAGS_IS_LINK = 32U,
      62             :     LOAD_FLAGS_BYPASS_HISTORY = 64U,
      63             :     LOAD_FLAGS_REPLACE_HISTORY = 128U,
      64             :     LOAD_FLAGS_BYPASS_CACHE = 256U,
      65             :     LOAD_FLAGS_BYPASS_PROXY = 512U,
      66             :     LOAD_FLAGS_CHARSET_CHANGE = 1024U,
      67             :     LOAD_FLAGS_STOP_CONTENT = 2048U,
      68             :     LOAD_FLAGS_FROM_EXTERNAL = 4096U,
      69             :     LOAD_FLAGS_ALLOW_MIXED_CONTENT = 8192U,
      70             :     LOAD_FLAGS_FIRST_LOAD = 16384U,
      71             :     LOAD_FLAGS_ALLOW_POPUPS = 32768U,
      72             :     LOAD_FLAGS_BYPASS_CLASSIFIER = 65536U,
      73             :     LOAD_FLAGS_FORCE_ALLOW_COOKIES = 131072U,
      74             :     LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL = 262144U,
      75             :     LOAD_FLAGS_DISALLOW_INHERIT_OWNER = 262144U,
      76             :     LOAD_FLAGS_ERROR_LOAD_CHANGES_RV = 524288U,
      77             :     LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 1048576U,
      78             :     LOAD_FLAGS_FIXUP_SCHEME_TYPOS = 2097152U
      79             :   };
      80             : 
      81             :   /* void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders, [optional] in nsIPrincipal aTriggeringPrincipal); */
      82             :   NS_IMETHOD LoadURI(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIPrincipal *aTriggeringPrincipal) = 0;
      83             : 
      84             :   /* void loadURIWithOptions (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in unsigned long aReferrerPolicy, in nsIInputStream aPostData, in nsIInputStream aHeaders, in nsIURI aBaseURI, [optional] in nsIPrincipal aTriggeringPrincipal); */
      85             :   NS_IMETHOD LoadURIWithOptions(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI, nsIPrincipal *aTriggeringPrincipal) = 0;
      86             : 
      87             :   /* void reload (in unsigned long aReloadFlags); */
      88             :   NS_IMETHOD Reload(uint32_t aReloadFlags) = 0;
      89             : 
      90             :   enum {
      91             :     STOP_NETWORK = 1U,
      92             :     STOP_CONTENT = 2U,
      93             :     STOP_ALL = 3U
      94             :   };
      95             : 
      96             :   /* void stop (in unsigned long aStopFlags); */
      97             :   NS_IMETHOD Stop(uint32_t aStopFlags) = 0;
      98             : 
      99             :   /* readonly attribute nsIDOMDocument document; */
     100             :   NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) = 0;
     101             : 
     102             :   /* readonly attribute nsIURI currentURI; */
     103             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) = 0;
     104             : 
     105             :   /* readonly attribute nsIURI referringURI; */
     106             :   NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) = 0;
     107             : 
     108             :   /* attribute nsISHistory sessionHistory; */
     109             :   NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) = 0;
     110             :   NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) = 0;
     111             : 
     112             :   /* void setOriginAttributesBeforeLoading (in jsval originAttributes); */
     113             :   NS_IMETHOD SetOriginAttributesBeforeLoading(JS::HandleValue originAttributes) = 0;
     114             : 
     115             : };
     116             : 
     117             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebNavigation, NS_IWEBNAVIGATION_IID)
     118             : 
     119             : /* Use this macro when declaring classes that implement this interface. */
     120             : #define NS_DECL_NSIWEBNAVIGATION \
     121             :   NS_IMETHOD GetCanGoBack(bool *aCanGoBack) override; \
     122             :   NS_IMETHOD GetCanGoForward(bool *aCanGoForward) override; \
     123             :   NS_IMETHOD GoBack(void) override; \
     124             :   NS_IMETHOD GoForward(void) override; \
     125             :   NS_IMETHOD GotoIndex(int32_t index) override; \
     126             :   NS_IMETHOD LoadURI(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIPrincipal *aTriggeringPrincipal) override; \
     127             :   NS_IMETHOD LoadURIWithOptions(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI, nsIPrincipal *aTriggeringPrincipal) override; \
     128             :   NS_IMETHOD Reload(uint32_t aReloadFlags) override; \
     129             :   NS_IMETHOD Stop(uint32_t aStopFlags) override; \
     130             :   NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) override; \
     131             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) override; \
     132             :   NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) override; \
     133             :   NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) override; \
     134             :   NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) override; \
     135             :   NS_IMETHOD SetOriginAttributesBeforeLoading(JS::HandleValue originAttributes) override; 
     136             : 
     137             : /* Use this macro when declaring the members of this interface when the
     138             :    class doesn't implement the interface. This is useful for forwarding. */
     139             : #define NS_DECL_NON_VIRTUAL_NSIWEBNAVIGATION \
     140             :   nsresult GetCanGoBack(bool *aCanGoBack); \
     141             :   nsresult GetCanGoForward(bool *aCanGoForward); \
     142             :   nsresult GoBack(void); \
     143             :   nsresult GoForward(void); \
     144             :   nsresult GotoIndex(int32_t index); \
     145             :   nsresult LoadURI(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIPrincipal *aTriggeringPrincipal); \
     146             :   nsresult LoadURIWithOptions(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI, nsIPrincipal *aTriggeringPrincipal); \
     147             :   nsresult Reload(uint32_t aReloadFlags); \
     148             :   nsresult Stop(uint32_t aStopFlags); \
     149             :   nsresult GetDocument(nsIDOMDocument * *aDocument); \
     150             :   nsresult GetCurrentURI(nsIURI * *aCurrentURI); \
     151             :   nsresult GetReferringURI(nsIURI * *aReferringURI); \
     152             :   nsresult GetSessionHistory(nsISHistory * *aSessionHistory); \
     153             :   nsresult SetSessionHistory(nsISHistory *aSessionHistory); \
     154             :   nsresult SetOriginAttributesBeforeLoading(JS::HandleValue originAttributes); 
     155             : 
     156             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     157             : #define NS_FORWARD_NSIWEBNAVIGATION(_to) \
     158             :   NS_IMETHOD GetCanGoBack(bool *aCanGoBack) override { return _to GetCanGoBack(aCanGoBack); } \
     159             :   NS_IMETHOD GetCanGoForward(bool *aCanGoForward) override { return _to GetCanGoForward(aCanGoForward); } \
     160             :   NS_IMETHOD GoBack(void) override { return _to GoBack(); } \
     161             :   NS_IMETHOD GoForward(void) override { return _to GoForward(); } \
     162             :   NS_IMETHOD GotoIndex(int32_t index) override { return _to GotoIndex(index); } \
     163             :   NS_IMETHOD LoadURI(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIPrincipal *aTriggeringPrincipal) override { return _to LoadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders, aTriggeringPrincipal); } \
     164             :   NS_IMETHOD LoadURIWithOptions(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI, nsIPrincipal *aTriggeringPrincipal) override { return _to LoadURIWithOptions(aURI, aLoadFlags, aReferrer, aReferrerPolicy, aPostData, aHeaders, aBaseURI, aTriggeringPrincipal); } \
     165             :   NS_IMETHOD Reload(uint32_t aReloadFlags) override { return _to Reload(aReloadFlags); } \
     166             :   NS_IMETHOD Stop(uint32_t aStopFlags) override { return _to Stop(aStopFlags); } \
     167             :   NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) override { return _to GetDocument(aDocument); } \
     168             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) override { return _to GetCurrentURI(aCurrentURI); } \
     169             :   NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) override { return _to GetReferringURI(aReferringURI); } \
     170             :   NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) override { return _to GetSessionHistory(aSessionHistory); } \
     171             :   NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) override { return _to SetSessionHistory(aSessionHistory); } \
     172             :   NS_IMETHOD SetOriginAttributesBeforeLoading(JS::HandleValue originAttributes) override { return _to SetOriginAttributesBeforeLoading(originAttributes); } 
     173             : 
     174             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     175             : #define NS_FORWARD_SAFE_NSIWEBNAVIGATION(_to) \
     176             :   NS_IMETHOD GetCanGoBack(bool *aCanGoBack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGoBack(aCanGoBack); } \
     177             :   NS_IMETHOD GetCanGoForward(bool *aCanGoForward) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGoForward(aCanGoForward); } \
     178             :   NS_IMETHOD GoBack(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GoBack(); } \
     179             :   NS_IMETHOD GoForward(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GoForward(); } \
     180             :   NS_IMETHOD GotoIndex(int32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GotoIndex(index); } \
     181             :   NS_IMETHOD LoadURI(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIPrincipal *aTriggeringPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders, aTriggeringPrincipal); } \
     182             :   NS_IMETHOD LoadURIWithOptions(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI, nsIPrincipal *aTriggeringPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURIWithOptions(aURI, aLoadFlags, aReferrer, aReferrerPolicy, aPostData, aHeaders, aBaseURI, aTriggeringPrincipal); } \
     183             :   NS_IMETHOD Reload(uint32_t aReloadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reload(aReloadFlags); } \
     184             :   NS_IMETHOD Stop(uint32_t aStopFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(aStopFlags); } \
     185             :   NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
     186             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentURI(aCurrentURI); } \
     187             :   NS_IMETHOD GetReferringURI(nsIURI * *aReferringURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferringURI(aReferringURI); } \
     188             :   NS_IMETHOD GetSessionHistory(nsISHistory * *aSessionHistory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionHistory(aSessionHistory); } \
     189             :   NS_IMETHOD SetSessionHistory(nsISHistory *aSessionHistory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSessionHistory(aSessionHistory); } \
     190             :   NS_IMETHOD SetOriginAttributesBeforeLoading(JS::HandleValue originAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginAttributesBeforeLoading(originAttributes); } 
     191             : 
     192             : #if 0
     193             : /* Use the code below as a template for the implementation class for this interface. */
     194             : 
     195             : /* Header file */
     196             : class nsWebNavigation : public nsIWebNavigation
     197             : {
     198             : public:
     199             :   NS_DECL_ISUPPORTS
     200             :   NS_DECL_NSIWEBNAVIGATION
     201             : 
     202             :   nsWebNavigation();
     203             : 
     204             : private:
     205             :   ~nsWebNavigation();
     206             : 
     207             : protected:
     208             :   /* additional members */
     209             : };
     210             : 
     211             : /* Implementation file */
     212             : NS_IMPL_ISUPPORTS(nsWebNavigation, nsIWebNavigation)
     213             : 
     214             : nsWebNavigation::nsWebNavigation()
     215             : {
     216             :   /* member initializers and constructor code */
     217             : }
     218             : 
     219             : nsWebNavigation::~nsWebNavigation()
     220             : {
     221             :   /* destructor code */
     222             : }
     223             : 
     224             : /* readonly attribute boolean canGoBack; */
     225             : NS_IMETHODIMP nsWebNavigation::GetCanGoBack(bool *aCanGoBack)
     226             : {
     227             :     return NS_ERROR_NOT_IMPLEMENTED;
     228             : }
     229             : 
     230             : /* readonly attribute boolean canGoForward; */
     231             : NS_IMETHODIMP nsWebNavigation::GetCanGoForward(bool *aCanGoForward)
     232             : {
     233             :     return NS_ERROR_NOT_IMPLEMENTED;
     234             : }
     235             : 
     236             : /* void goBack (); */
     237             : NS_IMETHODIMP nsWebNavigation::GoBack()
     238             : {
     239             :     return NS_ERROR_NOT_IMPLEMENTED;
     240             : }
     241             : 
     242             : /* void goForward (); */
     243             : NS_IMETHODIMP nsWebNavigation::GoForward()
     244             : {
     245             :     return NS_ERROR_NOT_IMPLEMENTED;
     246             : }
     247             : 
     248             : /* void gotoIndex (in long index); */
     249             : NS_IMETHODIMP nsWebNavigation::GotoIndex(int32_t index)
     250             : {
     251             :     return NS_ERROR_NOT_IMPLEMENTED;
     252             : }
     253             : 
     254             : /* void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders, [optional] in nsIPrincipal aTriggeringPrincipal); */
     255             : NS_IMETHODIMP nsWebNavigation::LoadURI(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIPrincipal *aTriggeringPrincipal)
     256             : {
     257             :     return NS_ERROR_NOT_IMPLEMENTED;
     258             : }
     259             : 
     260             : /* void loadURIWithOptions (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in unsigned long aReferrerPolicy, in nsIInputStream aPostData, in nsIInputStream aHeaders, in nsIURI aBaseURI, [optional] in nsIPrincipal aTriggeringPrincipal); */
     261             : NS_IMETHODIMP nsWebNavigation::LoadURIWithOptions(const char16_t * aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy, nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI, nsIPrincipal *aTriggeringPrincipal)
     262             : {
     263             :     return NS_ERROR_NOT_IMPLEMENTED;
     264             : }
     265             : 
     266             : /* void reload (in unsigned long aReloadFlags); */
     267             : NS_IMETHODIMP nsWebNavigation::Reload(uint32_t aReloadFlags)
     268             : {
     269             :     return NS_ERROR_NOT_IMPLEMENTED;
     270             : }
     271             : 
     272             : /* void stop (in unsigned long aStopFlags); */
     273             : NS_IMETHODIMP nsWebNavigation::Stop(uint32_t aStopFlags)
     274             : {
     275             :     return NS_ERROR_NOT_IMPLEMENTED;
     276             : }
     277             : 
     278             : /* readonly attribute nsIDOMDocument document; */
     279             : NS_IMETHODIMP nsWebNavigation::GetDocument(nsIDOMDocument * *aDocument)
     280             : {
     281             :     return NS_ERROR_NOT_IMPLEMENTED;
     282             : }
     283             : 
     284             : /* readonly attribute nsIURI currentURI; */
     285             : NS_IMETHODIMP nsWebNavigation::GetCurrentURI(nsIURI * *aCurrentURI)
     286             : {
     287             :     return NS_ERROR_NOT_IMPLEMENTED;
     288             : }
     289             : 
     290             : /* readonly attribute nsIURI referringURI; */
     291             : NS_IMETHODIMP nsWebNavigation::GetReferringURI(nsIURI * *aReferringURI)
     292             : {
     293             :     return NS_ERROR_NOT_IMPLEMENTED;
     294             : }
     295             : 
     296             : /* attribute nsISHistory sessionHistory; */
     297             : NS_IMETHODIMP nsWebNavigation::GetSessionHistory(nsISHistory * *aSessionHistory)
     298             : {
     299             :     return NS_ERROR_NOT_IMPLEMENTED;
     300             : }
     301             : NS_IMETHODIMP nsWebNavigation::SetSessionHistory(nsISHistory *aSessionHistory)
     302             : {
     303             :     return NS_ERROR_NOT_IMPLEMENTED;
     304             : }
     305             : 
     306             : /* void setOriginAttributesBeforeLoading (in jsval originAttributes); */
     307             : NS_IMETHODIMP nsWebNavigation::SetOriginAttributesBeforeLoading(JS::HandleValue originAttributes)
     308             : {
     309             :     return NS_ERROR_NOT_IMPLEMENTED;
     310             : }
     311             : 
     312             : /* End of implementation class template. */
     313             : #endif
     314             : 
     315             : 
     316             : #endif /* __gen_nsIWebNavigation_h__ */

Generated by: LCOV version 1.13