/usr/include/firefox/xpctest_attributes.h is in firefox-dev 11.0+build1-0ubuntu4.
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 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/js/xpconnect/tests/idl/xpctest_attributes.idl
*/
#ifndef __gen_xpctest_attributes_h__
#define __gen_xpctest_attributes_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
/* starting interface: nsIXPCTestObjectReadOnly */
#define NS_IXPCTESTOBJECTREADONLY_IID_STR "29e950a0-0134-44bc-b947-5e0ee95c8f7e"
#define NS_IXPCTESTOBJECTREADONLY_IID \
{0x29e950a0, 0x0134, 0x44bc, \
{ 0xb9, 0x47, 0x5e, 0x0e, 0xe9, 0x5c, 0x8f, 0x7e }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIXPCTestObjectReadOnly : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCTESTOBJECTREADONLY_IID)
/* readonly attribute string strReadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly) = 0;
/* readonly attribute boolean boolReadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly) = 0;
/* readonly attribute short shortReadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly) = 0;
/* readonly attribute long longReadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly) = 0;
/* readonly attribute float floatReadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly) = 0;
/* readonly attribute char charReadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCTestObjectReadOnly, NS_IXPCTESTOBJECTREADONLY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCTESTOBJECTREADONLY \
NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly); \
NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly); \
NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly); \
NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly); \
NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly); \
NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCTESTOBJECTREADONLY(_to) \
NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly) { return _to GetStrReadOnly(aStrReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly) { return _to GetBoolReadOnly(aBoolReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly) { return _to GetShortReadOnly(aShortReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly) { return _to GetLongReadOnly(aLongReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly) { return _to GetFloatReadOnly(aFloatReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly) { return _to GetCharReadOnly(aCharReadOnly); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCTESTOBJECTREADONLY(_to) \
NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrReadOnly(aStrReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolReadOnly(aBoolReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortReadOnly(aShortReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongReadOnly(aLongReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatReadOnly(aFloatReadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharReadOnly(aCharReadOnly); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCTestObjectReadOnly : public nsIXPCTestObjectReadOnly
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCTESTOBJECTREADONLY
nsXPCTestObjectReadOnly();
private:
~nsXPCTestObjectReadOnly();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCTestObjectReadOnly, nsIXPCTestObjectReadOnly)
nsXPCTestObjectReadOnly::nsXPCTestObjectReadOnly()
{
/* member initializers and constructor code */
}
nsXPCTestObjectReadOnly::~nsXPCTestObjectReadOnly()
{
/* destructor code */
}
/* readonly attribute string strReadOnly; */
NS_IMETHODIMP nsXPCTestObjectReadOnly::GetStrReadOnly(char * *aStrReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean boolReadOnly; */
NS_IMETHODIMP nsXPCTestObjectReadOnly::GetBoolReadOnly(bool *aBoolReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute short shortReadOnly; */
NS_IMETHODIMP nsXPCTestObjectReadOnly::GetShortReadOnly(PRInt16 *aShortReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long longReadOnly; */
NS_IMETHODIMP nsXPCTestObjectReadOnly::GetLongReadOnly(PRInt32 *aLongReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute float floatReadOnly; */
NS_IMETHODIMP nsXPCTestObjectReadOnly::GetFloatReadOnly(float *aFloatReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute char charReadOnly; */
NS_IMETHODIMP nsXPCTestObjectReadOnly::GetCharReadOnly(char *aCharReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCTestObjectReadWrite */
#define NS_IXPCTESTOBJECTREADWRITE_IID_STR "492609a7-2582-436b-b0ef-92e29bb9e143"
#define NS_IXPCTESTOBJECTREADWRITE_IID \
{0x492609a7, 0x2582, 0x436b, \
{ 0xb0, 0xef, 0x92, 0xe2, 0x9b, 0xb9, 0xe1, 0x43 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIXPCTestObjectReadWrite : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCTESTOBJECTREADWRITE_IID)
/* attribute string stringProperty; */
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty) = 0;
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty) = 0;
/* attribute boolean booleanProperty; */
NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty) = 0;
NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty) = 0;
/* attribute short shortProperty; */
NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty) = 0;
NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty) = 0;
/* attribute long longProperty; */
NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty) = 0;
NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty) = 0;
/* attribute float floatProperty; */
NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty) = 0;
NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty) = 0;
/* attribute char charProperty; */
NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty) = 0;
NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCTestObjectReadWrite, NS_IXPCTESTOBJECTREADWRITE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCTESTOBJECTREADWRITE \
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty); \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty); \
NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty); \
NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty); \
NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty); \
NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty); \
NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty); \
NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty); \
NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty); \
NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty); \
NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty); \
NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCTESTOBJECTREADWRITE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty) { return _to GetStringProperty(aStringProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty) { return _to SetStringProperty(aStringProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty) { return _to GetBooleanProperty(aBooleanProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty) { return _to SetBooleanProperty(aBooleanProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty) { return _to GetShortProperty(aShortProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty) { return _to SetShortProperty(aShortProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty) { return _to GetLongProperty(aLongProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty) { return _to SetLongProperty(aLongProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty) { return _to GetFloatProperty(aFloatProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty) { return _to SetFloatProperty(aFloatProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty) { return _to GetCharProperty(aCharProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty) { return _to SetCharProperty(aCharProperty); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCTESTOBJECTREADWRITE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(aStringProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(aStringProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanProperty(aBooleanProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanProperty(aBooleanProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortProperty(aShortProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShortProperty(aShortProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongProperty(aLongProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLongProperty(aLongProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatProperty(aFloatProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloatProperty(aFloatProperty); } \
NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharProperty(aCharProperty); } \
NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharProperty(aCharProperty); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCTestObjectReadWrite : public nsIXPCTestObjectReadWrite
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCTESTOBJECTREADWRITE
nsXPCTestObjectReadWrite();
private:
~nsXPCTestObjectReadWrite();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCTestObjectReadWrite, nsIXPCTestObjectReadWrite)
nsXPCTestObjectReadWrite::nsXPCTestObjectReadWrite()
{
/* member initializers and constructor code */
}
nsXPCTestObjectReadWrite::~nsXPCTestObjectReadWrite()
{
/* destructor code */
}
/* attribute string stringProperty; */
NS_IMETHODIMP nsXPCTestObjectReadWrite::GetStringProperty(char * *aStringProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCTestObjectReadWrite::SetStringProperty(const char * aStringProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean booleanProperty; */
NS_IMETHODIMP nsXPCTestObjectReadWrite::GetBooleanProperty(bool *aBooleanProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCTestObjectReadWrite::SetBooleanProperty(bool aBooleanProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute short shortProperty; */
NS_IMETHODIMP nsXPCTestObjectReadWrite::GetShortProperty(PRInt16 *aShortProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCTestObjectReadWrite::SetShortProperty(PRInt16 aShortProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long longProperty; */
NS_IMETHODIMP nsXPCTestObjectReadWrite::GetLongProperty(PRInt32 *aLongProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCTestObjectReadWrite::SetLongProperty(PRInt32 aLongProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute float floatProperty; */
NS_IMETHODIMP nsXPCTestObjectReadWrite::GetFloatProperty(float *aFloatProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCTestObjectReadWrite::SetFloatProperty(float aFloatProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute char charProperty; */
NS_IMETHODIMP nsXPCTestObjectReadWrite::GetCharProperty(char *aCharProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCTestObjectReadWrite::SetCharProperty(char aCharProperty)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_xpctest_attributes_h__ */
|