DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

nsIBrowser

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIBrowser.idl
 */

#ifndef __gen_nsIBrowser_h__
#define __gen_nsIBrowser_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFrameLoader; /* forward declaration */


/* starting interface:    nsIBrowser */
#define NS_IBROWSER_IID_STR "14e5a0cb-e223-4202-95e8-fe53275193ea"

#define NS_IBROWSER_IID \
  {0x14e5a0cb, 0xe223, 0x4202, \
    { 0x95, 0xe8, 0xfe, 0x53, 0x27, 0x51, 0x93, 0xea }}

class NS_NO_VTABLE nsIBrowser : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBROWSER_IID)

  /* readonly attribute nsIFrameLoader sameProcessAsFrameLoader; */
  NS_IMETHOD GetSameProcessAsFrameLoader(nsIFrameLoader * *aSameProcessAsFrameLoader) = 0;

  /* void dropLinks (in unsigned long linksCount, [array, size_is (linksCount)] in wstring links); */
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links) = 0;

  enum {
    SWAP_DEFAULT = 0U,
    SWAP_KEEP_PERMANENT_KEY = 1U
  };

  /* void swapBrowsers (in nsIBrowser aOtherBrowser, in unsigned long aFlags); */
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) = 0;

  /* void closeBrowser (); */
  NS_IMETHOD CloseBrowser(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBrowser, NS_IBROWSER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBROWSER \
  NS_IMETHOD GetSameProcessAsFrameLoader(nsIFrameLoader * *aSameProcessAsFrameLoader) override; \
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links) override; \
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) override; \
  NS_IMETHOD CloseBrowser(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIBROWSER \
  nsresult GetSameProcessAsFrameLoader(nsIFrameLoader * *aSameProcessAsFrameLoader); \
  nsresult DropLinks(uint32_t linksCount, const char16_t * *links); \
  nsresult SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags); \
  nsresult CloseBrowser(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBROWSER(_to) \
  NS_IMETHOD GetSameProcessAsFrameLoader(nsIFrameLoader * *aSameProcessAsFrameLoader) override { return _to GetSameProcessAsFrameLoader(aSameProcessAsFrameLoader); } \
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links) override { return _to DropLinks(linksCount, links); } \
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) override { return _to SwapBrowsers(aOtherBrowser, aFlags); } \
  NS_IMETHOD CloseBrowser(void) override { return _to CloseBrowser(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBROWSER(_to) \
  NS_IMETHOD GetSameProcessAsFrameLoader(nsIFrameLoader * *aSameProcessAsFrameLoader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSameProcessAsFrameLoader(aSameProcessAsFrameLoader); } \
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DropLinks(linksCount, links); } \
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SwapBrowsers(aOtherBrowser, aFlags); } \
  NS_IMETHOD CloseBrowser(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseBrowser(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsBrowser : public nsIBrowser
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIBROWSER

  nsBrowser();

private:
  ~nsBrowser();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsBrowser, nsIBrowser)

nsBrowser::nsBrowser()
{
  /* member initializers and constructor code */
}

nsBrowser::~nsBrowser()
{
  /* destructor code */
}

/* readonly attribute nsIFrameLoader sameProcessAsFrameLoader; */
NS_IMETHODIMP nsBrowser::GetSameProcessAsFrameLoader(nsIFrameLoader * *aSameProcessAsFrameLoader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dropLinks (in unsigned long linksCount, [array, size_is (linksCount)] in wstring links); */
NS_IMETHODIMP nsBrowser::DropLinks(uint32_t linksCount, const char16_t * *links)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void swapBrowsers (in nsIBrowser aOtherBrowser, in unsigned long aFlags); */
NS_IMETHODIMP nsBrowser::SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void closeBrowser (); */
NS_IMETHODIMP nsBrowser::CloseBrowser()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIBrowser_h__ */