/usr/include/thunderbird/nsIScriptableRegion.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScriptableRegion.idl
*/
#ifndef __gen_nsIScriptableRegion_h__
#define __gen_nsIScriptableRegion_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
#include "nsRegionFwd.h"
/* 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 nsIScriptableRegion : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEREGION_IID)
/* void init (); */
NS_IMETHOD Init(void) = 0;
/* void setToRegion (in nsIScriptableRegion aRegion); */
NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) = 0;
/* void setToRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
/* void intersectRegion (in nsIScriptableRegion aRegion); */
NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) = 0;
/* void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
/* void unionRegion (in nsIScriptableRegion aRegion); */
NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) = 0;
/* void unionRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
/* void subtractRegion (in nsIScriptableRegion aRegion); */
NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) = 0;
/* void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) = 0;
/* boolean isEmpty (); */
NS_IMETHOD IsEmpty(bool *_retval) = 0;
/* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) = 0;
/* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) = 0;
/* void offset (in long aXOffset, in long aYOffset); */
NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) = 0;
/* [implicit_jscontext] jsval getRects (); */
NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) = 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_IMETHOD Init(void) override; \
NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) override; \
NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) override; \
NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) override; \
NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) override; \
NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override; \
NS_IMETHOD IsEmpty(bool *_retval) override; \
NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) override; \
NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) override; \
NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) override; \
NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) override; \
NS_IMETHOD GetRegion(nsIntRegion *aRegion) 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_NSISCRIPTABLEREGION \
NS_METHOD Init(void); \
NS_METHOD SetToRegion(nsIScriptableRegion *aRegion); \
NS_METHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
NS_METHOD IntersectRegion(nsIScriptableRegion *aRegion); \
NS_METHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
NS_METHOD UnionRegion(nsIScriptableRegion *aRegion); \
NS_METHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
NS_METHOD SubtractRegion(nsIScriptableRegion *aRegion); \
NS_METHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight); \
NS_METHOD IsEmpty(bool *_retval); \
NS_METHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval); \
NS_METHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight); \
NS_METHOD Offset(int32_t aXOffset, int32_t aYOffset); \
NS_METHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval); \
NS_METHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval); \
NS_METHOD 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_IMETHOD Init(void) override { return _to Init(); } \
NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) override { return _to SetToRegion(aRegion); } \
NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to SetToRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) override { return _to IntersectRegion(aRegion); } \
NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to IntersectRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) override { return _to UnionRegion(aRegion); } \
NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to UnionRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) override { return _to SubtractRegion(aRegion); } \
NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return _to SubtractRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD IsEmpty(bool *_retval) override { return _to IsEmpty(_retval); } \
NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) override { return _to IsEqualRegion(aRegion, _retval); } \
NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) override { return _to GetBoundingBox(aX, aY, aWidth, aHeight); } \
NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) override { return _to Offset(aXOffset, aYOffset); } \
NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetRects(cx, _retval); } \
NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) override { return _to ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
NS_IMETHOD GetRegion(nsIntRegion *aRegion) override { 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_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_IMETHOD SetToRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRegion(aRegion); } \
NS_IMETHOD SetToRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD IntersectRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRegion(aRegion); } \
NS_IMETHOD IntersectRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IntersectRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD UnionRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRegion(aRegion); } \
NS_IMETHOD UnionRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnionRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD SubtractRegion(nsIScriptableRegion *aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRegion(aRegion); } \
NS_IMETHOD SubtractRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractRect(aX, aY, aWidth, aHeight); } \
NS_IMETHOD IsEmpty(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
NS_IMETHOD IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEqualRegion(aRegion, _retval); } \
NS_IMETHOD GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoundingBox(aX, aY, aWidth, aHeight); } \
NS_IMETHOD Offset(int32_t aXOffset, int32_t aYOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Offset(aXOffset, aYOffset); } \
NS_IMETHOD GetRects(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRects(cx, _retval); } \
NS_IMETHOD ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsRect(aX, aY, aWidth, aHeight, _retval); } \
NS_IMETHOD GetRegion(nsIntRegion *aRegion) override { 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_ISUPPORTS(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(int32_t aX, int32_t aY, int32_t aWidth, int32_t 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(int32_t aX, int32_t aY, int32_t aWidth, int32_t 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(int32_t aX, int32_t aY, int32_t aWidth, int32_t 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(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isEmpty (); */
NS_IMETHODIMP nsScriptableRegion::IsEmpty(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isEqualRegion (in nsIScriptableRegion aRegion); */
NS_IMETHODIMP nsScriptableRegion::IsEqualRegion(nsIScriptableRegion *aRegion, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight); */
NS_IMETHODIMP nsScriptableRegion::GetBoundingBox(int32_t *aX, int32_t *aY, int32_t *aWidth, int32_t *aHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void offset (in long aXOffset, in long aYOffset); */
NS_IMETHODIMP nsScriptableRegion::Offset(int32_t aXOffset, int32_t aYOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getRects (); */
NS_IMETHODIMP nsScriptableRegion::GetRects(JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight); */
NS_IMETHODIMP nsScriptableRegion::ContainsRect(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, bool *_retval)
{
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__ */
|