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

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 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/xpcom/base/nsIException.idl
 */

#ifndef __gen_nsIException_h__
#define __gen_nsIException_h__


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

#include "js/Value.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIStackFrame */
#define NS_ISTACKFRAME_IID_STR "28bfb2a2-5ea6-4738-918b-049dc4d51f0b"

#define NS_ISTACKFRAME_IID \
  {0x28bfb2a2, 0x5ea6, 0x4738, \
    { 0x91, 0x8b, 0x04, 0x9d, 0xc4, 0xd5, 0x1f, 0x0b }}

class NS_NO_VTABLE nsIStackFrame : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTACKFRAME_IID)

  /* [binaryname(FilenameXPCOM),implicit_jscontext] readonly attribute AString filename; */
  NS_IMETHOD GetFilenameXPCOM(JSContext* cx, nsAString& aFilename) = 0;

  /* [binaryname(NameXPCOM),implicit_jscontext] readonly attribute AString name; */
  NS_IMETHOD GetNameXPCOM(JSContext* cx, nsAString& aName) = 0;

  /* [binaryname(LineNumberXPCOM),implicit_jscontext] readonly attribute int32_t lineNumber; */
  NS_IMETHOD GetLineNumberXPCOM(JSContext* cx, int32_t *aLineNumber) = 0;

  /* [binaryname(ColumnNumberXPCOM),implicit_jscontext] readonly attribute int32_t columnNumber; */
  NS_IMETHOD GetColumnNumberXPCOM(JSContext* cx, int32_t *aColumnNumber) = 0;

  /* readonly attribute AUTF8String sourceLine; */
  NS_IMETHOD GetSourceLine(nsACString& aSourceLine) = 0;

  /* [binaryname(AsyncCauseXPCOM),implicit_jscontext] readonly attribute AString asyncCause; */
  NS_IMETHOD GetAsyncCauseXPCOM(JSContext* cx, nsAString& aAsyncCause) = 0;

  /* [binaryname(AsyncCallerXPCOM),implicit_jscontext] readonly attribute nsIStackFrame asyncCaller; */
  NS_IMETHOD GetAsyncCallerXPCOM(JSContext* cx, nsIStackFrame **aAsyncCaller) = 0;

  /* [binaryname(CallerXPCOM),implicit_jscontext] readonly attribute nsIStackFrame caller; */
  NS_IMETHOD GetCallerXPCOM(JSContext* cx, nsIStackFrame **aCaller) = 0;

  /* [binaryname(FormattedStackXPCOM),implicit_jscontext] readonly attribute AString formattedStack; */
  NS_IMETHOD GetFormattedStackXPCOM(JSContext* cx, nsAString& aFormattedStack) = 0;

  /* readonly attribute jsval nativeSavedFrame; */
  NS_IMETHOD GetNativeSavedFrame(JS::MutableHandleValue aNativeSavedFrame) = 0;

  /* [binaryname(ToStringXPCOM),implicit_jscontext] AUTF8String toString (); */
  NS_IMETHOD ToStringXPCOM(JSContext* cx, nsACString& _retval) = 0;

  /* [nostdcall,notxpcom] void getFilename (in JSContext aCx, out AString aFilename); */
  virtual void GetFilename(JSContext * aCx, nsAString& aFilename) = 0;

  /* [nostdcall,notxpcom] void getName (in JSContext aCx, out AString aName); */
  virtual void GetName(JSContext * aCx, nsAString& aName) = 0;

  /* [nostdcall,notxpcom] int32_t getLineNumber (in JSContext aCx); */
  virtual int32_t GetLineNumber(JSContext * aCx) = 0;

  /* [nostdcall,notxpcom] int32_t getColumnNumber (in JSContext aCx); */
  virtual int32_t GetColumnNumber(JSContext * aCx) = 0;

  /* [nostdcall,notxpcom] void getAsyncCause (in JSContext aCx, out AString aAsyncCause); */
  virtual void GetAsyncCause(JSContext * aCx, nsAString& aAsyncCause) = 0;

  /* [nostdcall,notxpcom] StackFrameRef getAsyncCaller (in JSContext aCx); */
  virtual already_AddRefed<nsIStackFrame> GetAsyncCaller(JSContext * aCx) = 0;

  /* [nostdcall,notxpcom] StackFrameRef getCaller (in JSContext aCx); */
  virtual already_AddRefed<nsIStackFrame> GetCaller(JSContext * aCx) = 0;

  /* [nostdcall,notxpcom] void getFormattedStack (in JSContext aCx, out AString aFormattedStack); */
  virtual void GetFormattedStack(JSContext * aCx, nsAString& aFormattedStack) = 0;

  /* [binaryname(ToString),nostdcall,notxpcom] void toStringInfallible (in JSContext aCx, out AUTF8String aString); */
  virtual void ToString(JSContext * aCx, nsACString& aString) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIStackFrame, NS_ISTACKFRAME_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTACKFRAME \
  NS_IMETHOD GetFilenameXPCOM(JSContext* cx, nsAString& aFilename) override; \
  NS_IMETHOD GetNameXPCOM(JSContext* cx, nsAString& aName) override; \
  NS_IMETHOD GetLineNumberXPCOM(JSContext* cx, int32_t *aLineNumber) override; \
  NS_IMETHOD GetColumnNumberXPCOM(JSContext* cx, int32_t *aColumnNumber) override; \
  NS_IMETHOD GetSourceLine(nsACString& aSourceLine) override; \
  NS_IMETHOD GetAsyncCauseXPCOM(JSContext* cx, nsAString& aAsyncCause) override; \
  NS_IMETHOD GetAsyncCallerXPCOM(JSContext* cx, nsIStackFrame **aAsyncCaller) override; \
  NS_IMETHOD GetCallerXPCOM(JSContext* cx, nsIStackFrame **aCaller) override; \
  NS_IMETHOD GetFormattedStackXPCOM(JSContext* cx, nsAString& aFormattedStack) override; \
  NS_IMETHOD GetNativeSavedFrame(JS::MutableHandleValue aNativeSavedFrame) override; \
  NS_IMETHOD ToStringXPCOM(JSContext* cx, nsACString& _retval) override; \
  virtual void GetFilename(JSContext * aCx, nsAString& aFilename) override; \
  virtual void GetName(JSContext * aCx, nsAString& aName) override; \
  virtual int32_t GetLineNumber(JSContext * aCx) override; \
  virtual int32_t GetColumnNumber(JSContext * aCx) override; \
  virtual void GetAsyncCause(JSContext * aCx, nsAString& aAsyncCause) override; \
  virtual already_AddRefed<nsIStackFrame> GetAsyncCaller(JSContext * aCx) override; \
  virtual already_AddRefed<nsIStackFrame> GetCaller(JSContext * aCx) override; \
  virtual void GetFormattedStack(JSContext * aCx, nsAString& aFormattedStack) override; \
  virtual void ToString(JSContext * aCx, nsACString& aString) 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_NSISTACKFRAME \
  nsresult GetFilenameXPCOM(JSContext* cx, nsAString& aFilename); \
  nsresult GetNameXPCOM(JSContext* cx, nsAString& aName); \
  nsresult GetLineNumberXPCOM(JSContext* cx, int32_t *aLineNumber); \
  nsresult GetColumnNumberXPCOM(JSContext* cx, int32_t *aColumnNumber); \
  nsresult GetSourceLine(nsACString& aSourceLine); \
  nsresult GetAsyncCauseXPCOM(JSContext* cx, nsAString& aAsyncCause); \
  nsresult GetAsyncCallerXPCOM(JSContext* cx, nsIStackFrame **aAsyncCaller); \
  nsresult GetCallerXPCOM(JSContext* cx, nsIStackFrame **aCaller); \
  nsresult GetFormattedStackXPCOM(JSContext* cx, nsAString& aFormattedStack); \
  nsresult GetNativeSavedFrame(JS::MutableHandleValue aNativeSavedFrame); \
  nsresult ToStringXPCOM(JSContext* cx, nsACString& _retval); \
  void GetFilename(JSContext * aCx, nsAString& aFilename); \
  void GetName(JSContext * aCx, nsAString& aName); \
  int32_t GetLineNumber(JSContext * aCx); \
  int32_t GetColumnNumber(JSContext * aCx); \
  void GetAsyncCause(JSContext * aCx, nsAString& aAsyncCause); \
  already_AddRefed<nsIStackFrame> GetAsyncCaller(JSContext * aCx); \
  already_AddRefed<nsIStackFrame> GetCaller(JSContext * aCx); \
  void GetFormattedStack(JSContext * aCx, nsAString& aFormattedStack); \
  void ToString(JSContext * aCx, nsACString& aString); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTACKFRAME(_to) \
  NS_IMETHOD GetFilenameXPCOM(JSContext* cx, nsAString& aFilename) override { return _to GetFilenameXPCOM(cx, aFilename); } \
  NS_IMETHOD GetNameXPCOM(JSContext* cx, nsAString& aName) override { return _to GetNameXPCOM(cx, aName); } \
  NS_IMETHOD GetLineNumberXPCOM(JSContext* cx, int32_t *aLineNumber) override { return _to GetLineNumberXPCOM(cx, aLineNumber); } \
  NS_IMETHOD GetColumnNumberXPCOM(JSContext* cx, int32_t *aColumnNumber) override { return _to GetColumnNumberXPCOM(cx, aColumnNumber); } \
  NS_IMETHOD GetSourceLine(nsACString& aSourceLine) override { return _to GetSourceLine(aSourceLine); } \
  NS_IMETHOD GetAsyncCauseXPCOM(JSContext* cx, nsAString& aAsyncCause) override { return _to GetAsyncCauseXPCOM(cx, aAsyncCause); } \
  NS_IMETHOD GetAsyncCallerXPCOM(JSContext* cx, nsIStackFrame **aAsyncCaller) override { return _to GetAsyncCallerXPCOM(cx, aAsyncCaller); } \
  NS_IMETHOD GetCallerXPCOM(JSContext* cx, nsIStackFrame **aCaller) override { return _to GetCallerXPCOM(cx, aCaller); } \
  NS_IMETHOD GetFormattedStackXPCOM(JSContext* cx, nsAString& aFormattedStack) override { return _to GetFormattedStackXPCOM(cx, aFormattedStack); } \
  NS_IMETHOD GetNativeSavedFrame(JS::MutableHandleValue aNativeSavedFrame) override { return _to GetNativeSavedFrame(aNativeSavedFrame); } \
  NS_IMETHOD ToStringXPCOM(JSContext* cx, nsACString& _retval) override { return _to ToStringXPCOM(cx, _retval); } \
  virtual void GetFilename(JSContext * aCx, nsAString& aFilename) override { return _to GetFilename(aCx, aFilename); } \
  virtual void GetName(JSContext * aCx, nsAString& aName) override { return _to GetName(aCx, aName); } \
  virtual int32_t GetLineNumber(JSContext * aCx) override { return _to GetLineNumber(aCx); } \
  virtual int32_t GetColumnNumber(JSContext * aCx) override { return _to GetColumnNumber(aCx); } \
  virtual void GetAsyncCause(JSContext * aCx, nsAString& aAsyncCause) override { return _to GetAsyncCause(aCx, aAsyncCause); } \
  virtual already_AddRefed<nsIStackFrame> GetAsyncCaller(JSContext * aCx) override { return _to GetAsyncCaller(aCx); } \
  virtual already_AddRefed<nsIStackFrame> GetCaller(JSContext * aCx) override { return _to GetCaller(aCx); } \
  virtual void GetFormattedStack(JSContext * aCx, nsAString& aFormattedStack) override { return _to GetFormattedStack(aCx, aFormattedStack); } \
  virtual void ToString(JSContext * aCx, nsACString& aString) override { return _to ToString(aCx, aString); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTACKFRAME(_to) \
  NS_IMETHOD GetFilenameXPCOM(JSContext* cx, nsAString& aFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilenameXPCOM(cx, aFilename); } \
  NS_IMETHOD GetNameXPCOM(JSContext* cx, nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNameXPCOM(cx, aName); } \
  NS_IMETHOD GetLineNumberXPCOM(JSContext* cx, int32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumberXPCOM(cx, aLineNumber); } \
  NS_IMETHOD GetColumnNumberXPCOM(JSContext* cx, int32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumberXPCOM(cx, aColumnNumber); } \
  NS_IMETHOD GetSourceLine(nsACString& aSourceLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
  NS_IMETHOD GetAsyncCauseXPCOM(JSContext* cx, nsAString& aAsyncCause) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsyncCauseXPCOM(cx, aAsyncCause); } \
  NS_IMETHOD GetAsyncCallerXPCOM(JSContext* cx, nsIStackFrame **aAsyncCaller) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsyncCallerXPCOM(cx, aAsyncCaller); } \
  NS_IMETHOD GetCallerXPCOM(JSContext* cx, nsIStackFrame **aCaller) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallerXPCOM(cx, aCaller); } \
  NS_IMETHOD GetFormattedStackXPCOM(JSContext* cx, nsAString& aFormattedStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormattedStackXPCOM(cx, aFormattedStack); } \
  NS_IMETHOD GetNativeSavedFrame(JS::MutableHandleValue aNativeSavedFrame) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativeSavedFrame(aNativeSavedFrame); } \
  NS_IMETHOD ToStringXPCOM(JSContext* cx, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToStringXPCOM(cx, _retval); } \
  virtual void GetFilename(JSContext * aCx, nsAString& aFilename) override; \
  virtual void GetName(JSContext * aCx, nsAString& aName) override; \
  virtual int32_t GetLineNumber(JSContext * aCx) override; \
  virtual int32_t GetColumnNumber(JSContext * aCx) override; \
  virtual void GetAsyncCause(JSContext * aCx, nsAString& aAsyncCause) override; \
  virtual already_AddRefed<nsIStackFrame> GetAsyncCaller(JSContext * aCx) override; \
  virtual already_AddRefed<nsIStackFrame> GetCaller(JSContext * aCx) override; \
  virtual void GetFormattedStack(JSContext * aCx, nsAString& aFormattedStack) override; \
  virtual void ToString(JSContext * aCx, nsACString& aString) override; 


/* starting interface:    nsIException */
#define NS_IEXCEPTION_IID_STR "4371b5bf-6845-487f-8d9d-3f1e4a9badd2"

#define NS_IEXCEPTION_IID \
  {0x4371b5bf, 0x6845, 0x487f, \
    { 0x8d, 0x9d, 0x3f, 0x1e, 0x4a, 0x9b, 0xad, 0xd2 }}

class NS_NO_VTABLE nsIException : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXCEPTION_IID)

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIException, NS_IEXCEPTION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEXCEPTION \
  /* no methods! */

/* 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_NSIEXCEPTION \
  /* no methods! */

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEXCEPTION(_to) \
  /* no methods! */

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEXCEPTION(_to) \
  /* no methods! */


#endif /* __gen_nsIException_h__ */