/usr/include/thunderbird-11.0.1/nsIScriptableRegion.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/gfx/src/nsIScriptableRegion.idl
*/
#ifndef __gen_nsIScriptableRegion_h__
#define __gen_nsIScriptableRegion_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#include "jspubtd.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIntRegion;
/* starting interface: nsIScriptableRegion */
#define NS_ISCRIPTABLEREGION_IID_STR "a5f44cc7-2820-489b-b817-ae8a08506ff6"
#define NS_ISCRIPTABLEREGION_IID \
{0xa5f44cc7, 0x2820, 0x489b, \
{ 0xb8, 0x17, 0xae, 0x8a, 0x08, 0x50, 0x6f, 0xf6 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptableRegion : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEREGION_IID)
/* void init (); */
NS_SCRIPTABLE NS_IMETHOD Init(void) = 0;
/* void setToRegion (in nsIScriptableRegion aRegion); */
NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) = 0;
/* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
/* void intersectRegion (in nsIScriptableRegion aRegion); */
NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) = 0;
/* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
/* void unionRegion (in nsIScriptableRegion aRegion); */
NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) = 0;
/* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
/* void subtractRegion (in nsIScriptableRegion aRegion); */
NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) = 0;
/* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) = 0;
/* boolean isEmpty (); */
NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) = 0;
/* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM) = 0;
/* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM) = 0;
/* void offset (in long aXOffset, in long aYOffset); */
NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset) = 0;
/* [implicit_jscontext] jsval getRects (); */
NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM) = 0;
/* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM) = 0;
/* [noscript] readonly attribute nsIntRegion region; */
NS_IMETHOD GetRegion(nsIntRegion *aRegion) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableRegion, NS_ISCRIPTABLEREGION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCRIPTABLEREGION \
NS_SCRIPTABLE NS_IMETHOD Init(void); \
NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion); \
NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion); \
NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion); \
NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion); \
NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); \
NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset); \
NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM); \
NS_IMETHOD GetRegion(nsIntRegion *aRegion);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCRIPTABLEREGION(_to) \
NS_SCRIPTABLE NS_IMETHOD Init(void) { return _to Init(); } \
NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) { return _to SetToRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to SetToRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) { return _to IntersectRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to IntersectRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) { return _to UnionRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to UnionRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) { return _to SubtractRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return _to SubtractRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return _to IsEmpty(_retval); } \
NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM) { return _to IsEqualRegion(aRegion, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM) { return _to GetBoundingBox(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset) { return _to Offset(aXOffset, aYOffset); } \
NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return _to GetRects(cx, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM) { return _to ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
NS_IMETHOD GetRegion(nsIntRegion *aRegion) { return _to GetRegion(aRegion); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCRIPTABLEREGION(_to) \
NS_SCRIPTABLE NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_SCRIPTABLE NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRegion(aRegion); } \
NS_SCRIPTABLE NS_IMETHOD SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRect(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
NS_SCRIPTABLE NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEqualRegion(aRegion, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoundingBox(aX, aY, aWidth, aHeight); } \
NS_SCRIPTABLE NS_IMETHOD Offset(PRInt32 aXOffset, PRInt32 aYOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->Offset(aXOffset, aYOffset); } \
NS_SCRIPTABLE NS_IMETHOD GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRects(cx, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
NS_IMETHOD GetRegion(nsIntRegion *aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegion(aRegion); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsScriptableRegion : public nsIScriptableRegion
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISCRIPTABLEREGION
nsScriptableRegion();
private:
~nsScriptableRegion();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScriptableRegion, nsIScriptableRegion)
nsScriptableRegion::nsScriptableRegion()
{
/* member initializers and constructor code */
}
nsScriptableRegion::~nsScriptableRegion()
{
/* destructor code */
}
/* void init (); */
NS_IMETHODIMP nsScriptableRegion::Init()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setToRegion (in nsIScriptableRegion aRegion); */
NS_IMETHODIMP nsScriptableRegion::SetToRegion(nsIScriptableRegion *aRegion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHODIMP nsScriptableRegion::SetToRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void intersectRegion (in nsIScriptableRegion aRegion); */
NS_IMETHODIMP nsScriptableRegion::IntersectRegion(nsIScriptableRegion *aRegion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHODIMP nsScriptableRegion::IntersectRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unionRegion (in nsIScriptableRegion aRegion); */
NS_IMETHODIMP nsScriptableRegion::UnionRegion(nsIScriptableRegion *aRegion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHODIMP nsScriptableRegion::UnionRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void subtractRegion (in nsIScriptableRegion aRegion); */
NS_IMETHODIMP nsScriptableRegion::SubtractRegion(nsIScriptableRegion *aRegion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHODIMP nsScriptableRegion::SubtractRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isEmpty (); */
NS_IMETHODIMP nsScriptableRegion::IsEmpty(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
NS_IMETHODIMP nsScriptableRegion::IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
NS_IMETHODIMP nsScriptableRegion::GetBoundingBox(PRInt32 *aX NS_OUTPARAM, PRInt32 *aY NS_OUTPARAM, PRInt32 *aWidth NS_OUTPARAM, PRInt32 *aHeight NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void offset (in long aXOffset, in long aYOffset); */
NS_IMETHODIMP nsScriptableRegion::Offset(PRInt32 aXOffset, PRInt32 aYOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getRects (); */
NS_IMETHODIMP nsScriptableRegion::GetRects(JSContext* cx, JS::Value *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHODIMP nsScriptableRegion::ContainsRect(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] readonly attribute nsIntRegion region; */
NS_IMETHODIMP nsScriptableRegion::GetRegion(nsIntRegion *aRegion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIScriptableRegion_h__ */
|