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

nsIMozBrowserFrame

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 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMozBrowserFrame.idl
 */

#ifndef __gen_nsIMozBrowserFrame_h__
#define __gen_nsIMozBrowserFrame_h__


#ifndef __gen_nsIDOMMozBrowserFrame_h__
#include "nsIDOMMozBrowserFrame.h"
#endif

#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"

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


/* starting interface:    nsIMozBrowserFrame */
#define NS_IMOZBROWSERFRAME_IID_STR "0c0a862c-1a47-43c0-ae9e-d51835e3e1a6"

#define NS_IMOZBROWSERFRAME_IID \
  {0x0c0a862c, 0x1a47, 0x43c0, \
    { 0xae, 0x9e, 0xd5, 0x18, 0x35, 0xe3, 0xe1, 0xa6 }}

class NS_NO_VTABLE nsIMozBrowserFrame : public nsIDOMMozBrowserFrame {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOZBROWSERFRAME_IID)

  /* [infallible] readonly attribute boolean reallyIsBrowser; */
  NS_IMETHOD GetReallyIsBrowser(bool *aReallyIsBrowser) = 0;
  inline bool GetReallyIsBrowser()
  {
    bool result;
    mozilla::DebugOnly<nsresult> rv = GetReallyIsBrowser(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* [infallible] readonly attribute boolean isolated; */
  NS_IMETHOD GetIsolated(bool *aIsolated) = 0;
  inline bool GetIsolated()
  {
    bool result;
    mozilla::DebugOnly<nsresult> rv = GetIsolated(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* void disallowCreateFrameLoader (); */
  NS_IMETHOD DisallowCreateFrameLoader(void) = 0;

  /* void allowCreateFrameLoader (); */
  NS_IMETHOD AllowCreateFrameLoader(void) = 0;

  /* void createRemoteFrameLoader (in nsITabParent aTabParent); */
  NS_IMETHOD CreateRemoteFrameLoader(nsITabParent *aTabParent) = 0;

  /* [noscript] void initializeBrowserAPI (); */
  NS_IMETHOD InitializeBrowserAPI(void) = 0;

  /* [noscript] void destroyBrowserFrameScripts (); */
  NS_IMETHOD DestroyBrowserFrameScripts(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMozBrowserFrame, NS_IMOZBROWSERFRAME_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOZBROWSERFRAME \
  using nsIMozBrowserFrame::GetReallyIsBrowser; \
  NS_IMETHOD GetReallyIsBrowser(bool *aReallyIsBrowser) override; \
  using nsIMozBrowserFrame::GetIsolated; \
  NS_IMETHOD GetIsolated(bool *aIsolated) override; \
  NS_IMETHOD DisallowCreateFrameLoader(void) override; \
  NS_IMETHOD AllowCreateFrameLoader(void) override; \
  NS_IMETHOD CreateRemoteFrameLoader(nsITabParent *aTabParent) override; \
  NS_IMETHOD InitializeBrowserAPI(void) override; \
  NS_IMETHOD DestroyBrowserFrameScripts(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_NSIMOZBROWSERFRAME \
  using nsIMozBrowserFrame::GetReallyIsBrowser; \
  nsresult GetReallyIsBrowser(bool *aReallyIsBrowser); \
  using nsIMozBrowserFrame::GetIsolated; \
  nsresult GetIsolated(bool *aIsolated); \
  nsresult DisallowCreateFrameLoader(void); \
  nsresult AllowCreateFrameLoader(void); \
  nsresult CreateRemoteFrameLoader(nsITabParent *aTabParent); \
  nsresult InitializeBrowserAPI(void); \
  nsresult DestroyBrowserFrameScripts(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOZBROWSERFRAME(_to) \
  using nsIMozBrowserFrame::GetReallyIsBrowser; \
  NS_IMETHOD GetReallyIsBrowser(bool *aReallyIsBrowser) override { return _to GetReallyIsBrowser(aReallyIsBrowser); } \
  using nsIMozBrowserFrame::GetIsolated; \
  NS_IMETHOD GetIsolated(bool *aIsolated) override { return _to GetIsolated(aIsolated); } \
  NS_IMETHOD DisallowCreateFrameLoader(void) override { return _to DisallowCreateFrameLoader(); } \
  NS_IMETHOD AllowCreateFrameLoader(void) override { return _to AllowCreateFrameLoader(); } \
  NS_IMETHOD CreateRemoteFrameLoader(nsITabParent *aTabParent) override { return _to CreateRemoteFrameLoader(aTabParent); } \
  NS_IMETHOD InitializeBrowserAPI(void) override { return _to InitializeBrowserAPI(); } \
  NS_IMETHOD DestroyBrowserFrameScripts(void) override { return _to DestroyBrowserFrameScripts(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMOZBROWSERFRAME(_to) \
  NS_IMETHOD GetReallyIsBrowser(bool *aReallyIsBrowser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReallyIsBrowser(aReallyIsBrowser); } \
  NS_IMETHOD GetIsolated(bool *aIsolated) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsolated(aIsolated); } \
  NS_IMETHOD DisallowCreateFrameLoader(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisallowCreateFrameLoader(); } \
  NS_IMETHOD AllowCreateFrameLoader(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AllowCreateFrameLoader(); } \
  NS_IMETHOD CreateRemoteFrameLoader(nsITabParent *aTabParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRemoteFrameLoader(aTabParent); } \
  NS_IMETHOD InitializeBrowserAPI(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitializeBrowserAPI(); } \
  NS_IMETHOD DestroyBrowserFrameScripts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DestroyBrowserFrameScripts(); } 

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

/* Header file */
class nsMozBrowserFrame : public nsIMozBrowserFrame
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMOZBROWSERFRAME

  nsMozBrowserFrame();

private:
  ~nsMozBrowserFrame();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsMozBrowserFrame, nsIMozBrowserFrame)

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

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

/* [infallible] readonly attribute boolean reallyIsBrowser; */
NS_IMETHODIMP nsMozBrowserFrame::GetReallyIsBrowser(bool *aReallyIsBrowser)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [infallible] readonly attribute boolean isolated; */
NS_IMETHODIMP nsMozBrowserFrame::GetIsolated(bool *aIsolated)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void disallowCreateFrameLoader (); */
NS_IMETHODIMP nsMozBrowserFrame::DisallowCreateFrameLoader()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void allowCreateFrameLoader (); */
NS_IMETHODIMP nsMozBrowserFrame::AllowCreateFrameLoader()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void createRemoteFrameLoader (in nsITabParent aTabParent); */
NS_IMETHODIMP nsMozBrowserFrame::CreateRemoteFrameLoader(nsITabParent *aTabParent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void initializeBrowserAPI (); */
NS_IMETHODIMP nsMozBrowserFrame::InitializeBrowserAPI()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void destroyBrowserFrameScripts (); */
NS_IMETHODIMP nsMozBrowserFrame::DestroyBrowserFrameScripts()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMozBrowserFrame_h__ */