/usr/include/thunderbird/nsIScriptError.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScriptError.idl
*/
#ifndef __gen_nsIScriptError_h__
#define __gen_nsIScriptError_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIConsoleMessage_h__
#include "nsIConsoleMessage.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
#include "nsStringGlue.h" // for nsDependentCString
/* starting interface: nsIScriptError */
#define NS_ISCRIPTERROR_IID_STR "361be358-76f0-47aa-b37b-6ad833599e8d"
#define NS_ISCRIPTERROR_IID \
{0x361be358, 0x76f0, 0x47aa, \
{ 0xb3, 0x7b, 0x6a, 0xd8, 0x33, 0x59, 0x9e, 0x8d }}
class nsIScriptError : public nsIConsoleMessage {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTERROR_IID)
enum {
errorFlag = 0U,
warningFlag = 1U,
exceptionFlag = 2U,
strictFlag = 4U,
infoFlag = 8U
};
/* readonly attribute AString errorMessage; */
NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) = 0;
/* readonly attribute AString sourceName; */
NS_IMETHOD GetSourceName(nsAString & aSourceName) = 0;
/* readonly attribute AString sourceLine; */
NS_IMETHOD GetSourceLine(nsAString & aSourceLine) = 0;
/* readonly attribute uint32_t lineNumber; */
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) = 0;
/* readonly attribute uint32_t columnNumber; */
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) = 0;
/* readonly attribute uint32_t flags; */
NS_IMETHOD GetFlags(uint32_t *aFlags) = 0;
/* readonly attribute string category; */
NS_IMETHOD GetCategory(char * *aCategory) = 0;
/* readonly attribute unsigned long long outerWindowID; */
NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) = 0;
/* readonly attribute unsigned long long innerWindowID; */
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) = 0;
/* readonly attribute boolean isFromPrivateWindow; */
NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) = 0;
/* attribute jsval stack; */
NS_IMETHOD GetStack(JS::MutableHandleValue aStack) = 0;
NS_IMETHOD SetStack(JS::HandleValue aStack) = 0;
/* attribute AString errorMessageName; */
NS_IMETHOD GetErrorMessageName(nsAString & aErrorMessageName) = 0;
NS_IMETHOD SetErrorMessageName(const nsAString & aErrorMessageName) = 0;
/* void init (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in string category); */
NS_IMETHOD Init(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category) = 0;
/* void initWithWindowID (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID); */
NS_IMETHOD InitWithWindowID(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString & category, uint64_t innerWindowID) = 0;
// This overload allows passing a literal string for category.
template<uint32_t N>
nsresult InitWithWindowID(const nsAString& message,
const nsAString& sourceName,
const nsAString& sourceLine,
uint32_t lineNumber,
uint32_t columnNumber,
uint32_t flags,
const char (&c)[N],
uint64_t aInnerWindowID)
{
nsDependentCString category(c, N - 1);
return InitWithWindowID(message, sourceName, sourceLine, lineNumber,
columnNumber, flags, category, aInnerWindowID);
}
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptError, NS_ISCRIPTERROR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCRIPTERROR \
NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) override; \
NS_IMETHOD GetSourceName(nsAString & aSourceName) override; \
NS_IMETHOD GetSourceLine(nsAString & aSourceLine) override; \
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override; \
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override; \
NS_IMETHOD GetFlags(uint32_t *aFlags) override; \
NS_IMETHOD GetCategory(char * *aCategory) override; \
NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override; \
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override; \
NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) override; \
NS_IMETHOD GetStack(JS::MutableHandleValue aStack) override; \
NS_IMETHOD SetStack(JS::HandleValue aStack) override; \
NS_IMETHOD GetErrorMessageName(nsAString & aErrorMessageName) override; \
NS_IMETHOD SetErrorMessageName(const nsAString & aErrorMessageName) override; \
NS_IMETHOD Init(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category) override; \
NS_IMETHOD InitWithWindowID(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString & category, uint64_t innerWindowID) 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_NSISCRIPTERROR \
NS_METHOD GetErrorMessage(nsAString & aErrorMessage); \
NS_METHOD GetSourceName(nsAString & aSourceName); \
NS_METHOD GetSourceLine(nsAString & aSourceLine); \
NS_METHOD GetLineNumber(uint32_t *aLineNumber); \
NS_METHOD GetColumnNumber(uint32_t *aColumnNumber); \
NS_METHOD GetFlags(uint32_t *aFlags); \
NS_METHOD GetCategory(char * *aCategory); \
NS_METHOD GetOuterWindowID(uint64_t *aOuterWindowID); \
NS_METHOD GetInnerWindowID(uint64_t *aInnerWindowID); \
NS_METHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow); \
NS_METHOD GetStack(JS::MutableHandleValue aStack); \
NS_METHOD SetStack(JS::HandleValue aStack); \
NS_METHOD GetErrorMessageName(nsAString & aErrorMessageName); \
NS_METHOD SetErrorMessageName(const nsAString & aErrorMessageName); \
NS_METHOD Init(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category); \
NS_METHOD InitWithWindowID(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString & category, uint64_t innerWindowID); \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCRIPTERROR(_to) \
NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) override { return _to GetErrorMessage(aErrorMessage); } \
NS_IMETHOD GetSourceName(nsAString & aSourceName) override { return _to GetSourceName(aSourceName); } \
NS_IMETHOD GetSourceLine(nsAString & aSourceLine) override { return _to GetSourceLine(aSourceLine); } \
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return _to GetLineNumber(aLineNumber); } \
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return _to GetColumnNumber(aColumnNumber); } \
NS_IMETHOD GetFlags(uint32_t *aFlags) override { return _to GetFlags(aFlags); } \
NS_IMETHOD GetCategory(char * *aCategory) override { return _to GetCategory(aCategory); } \
NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override { return _to GetOuterWindowID(aOuterWindowID); } \
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override { return _to GetInnerWindowID(aInnerWindowID); } \
NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) override { return _to GetIsFromPrivateWindow(aIsFromPrivateWindow); } \
NS_IMETHOD GetStack(JS::MutableHandleValue aStack) override { return _to GetStack(aStack); } \
NS_IMETHOD SetStack(JS::HandleValue aStack) override { return _to SetStack(aStack); } \
NS_IMETHOD GetErrorMessageName(nsAString & aErrorMessageName) override { return _to GetErrorMessageName(aErrorMessageName); } \
NS_IMETHOD SetErrorMessageName(const nsAString & aErrorMessageName) override { return _to SetErrorMessageName(aErrorMessageName); } \
NS_IMETHOD Init(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category) override { return _to Init(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category); } \
NS_IMETHOD InitWithWindowID(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString & category, uint64_t innerWindowID) override { return _to InitWithWindowID(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCRIPTERROR(_to) \
NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
NS_IMETHOD GetSourceName(nsAString & aSourceName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceName(aSourceName); } \
NS_IMETHOD GetSourceLine(nsAString & aSourceLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
NS_IMETHOD GetFlags(uint32_t *aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
NS_IMETHOD GetCategory(char * *aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategory(aCategory); } \
NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowID(aOuterWindowID); } \
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerWindowID(aInnerWindowID); } \
NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromPrivateWindow(aIsFromPrivateWindow); } \
NS_IMETHOD GetStack(JS::MutableHandleValue aStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStack(aStack); } \
NS_IMETHOD SetStack(JS::HandleValue aStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStack(aStack); } \
NS_IMETHOD GetErrorMessageName(nsAString & aErrorMessageName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessageName(aErrorMessageName); } \
NS_IMETHOD SetErrorMessageName(const nsAString & aErrorMessageName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorMessageName(aErrorMessageName); } \
NS_IMETHOD Init(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category); } \
NS_IMETHOD InitWithWindowID(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString & category, uint64_t innerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithWindowID(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsScriptError : public nsIScriptError
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISCRIPTERROR
nsScriptError();
private:
~nsScriptError();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsScriptError, nsIScriptError)
nsScriptError::nsScriptError()
{
/* member initializers and constructor code */
}
nsScriptError::~nsScriptError()
{
/* destructor code */
}
/* readonly attribute AString errorMessage; */
NS_IMETHODIMP nsScriptError::GetErrorMessage(nsAString & aErrorMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString sourceName; */
NS_IMETHODIMP nsScriptError::GetSourceName(nsAString & aSourceName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString sourceLine; */
NS_IMETHODIMP nsScriptError::GetSourceLine(nsAString & aSourceLine)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t lineNumber; */
NS_IMETHODIMP nsScriptError::GetLineNumber(uint32_t *aLineNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t columnNumber; */
NS_IMETHODIMP nsScriptError::GetColumnNumber(uint32_t *aColumnNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t flags; */
NS_IMETHODIMP nsScriptError::GetFlags(uint32_t *aFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute string category; */
NS_IMETHODIMP nsScriptError::GetCategory(char * *aCategory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long long outerWindowID; */
NS_IMETHODIMP nsScriptError::GetOuterWindowID(uint64_t *aOuterWindowID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long long innerWindowID; */
NS_IMETHODIMP nsScriptError::GetInnerWindowID(uint64_t *aInnerWindowID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean isFromPrivateWindow; */
NS_IMETHODIMP nsScriptError::GetIsFromPrivateWindow(bool *aIsFromPrivateWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute jsval stack; */
NS_IMETHODIMP nsScriptError::GetStack(JS::MutableHandleValue aStack)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScriptError::SetStack(JS::HandleValue aStack)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AString errorMessageName; */
NS_IMETHODIMP nsScriptError::GetErrorMessageName(nsAString & aErrorMessageName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScriptError::SetErrorMessageName(const nsAString & aErrorMessageName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void init (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in string category); */
NS_IMETHODIMP nsScriptError::Init(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void initWithWindowID (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID); */
NS_IMETHODIMP nsScriptError::InitWithWindowID(const nsAString & message, const nsAString & sourceName, const nsAString & sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString & category, uint64_t innerWindowID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_SCRIPTERROR_CID \
{ 0x1950539a, 0x90f0, 0x4d22, { 0xb5, 0xaf, 0x71, 0x32, 0x9c, 0x68, 0xfa, 0x35 }}
#define NS_SCRIPTERROR_CONTRACTID "@mozilla.org/scripterror;1"
#endif /* __gen_nsIScriptError_h__ */
|