/usr/include/thunderbird-11.0.1/nsIDOMMouseEvent.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 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 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/dom/interfaces/events/nsIDOMMouseEvent.idl
*/
#ifndef __gen_nsIDOMMouseEvent_h__
#define __gen_nsIDOMMouseEvent_h__
#ifndef __gen_nsIDOMUIEvent_h__
#include "nsIDOMUIEvent.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: nsIDOMMouseEvent */
#define NS_IDOMMOUSEEVENT_IID_STR "7f57aa45-6792-4d8b-ba5b-201533cf0b2f"
#define NS_IDOMMOUSEEVENT_IID \
{0x7f57aa45, 0x6792, 0x4d8b, \
{ 0xba, 0x5b, 0x20, 0x15, 0x33, 0xcf, 0x0b, 0x2f }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMouseEvent : public nsIDOMUIEvent {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEEVENT_IID)
/* readonly attribute long screenX; */
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
/* readonly attribute long screenY; */
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
/* readonly attribute long clientX; */
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) = 0;
/* readonly attribute long clientY; */
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) = 0;
/* readonly attribute boolean ctrlKey; */
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) = 0;
/* readonly attribute boolean shiftKey; */
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) = 0;
/* readonly attribute boolean altKey; */
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) = 0;
/* readonly attribute boolean metaKey; */
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) = 0;
/* readonly attribute unsigned short button; */
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) = 0;
/* readonly attribute nsIDOMEventTarget relatedTarget; */
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) = 0;
/* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg); */
NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg) = 0;
/* readonly attribute float mozPressure; */
NS_SCRIPTABLE NS_IMETHOD GetMozPressure(float *aMozPressure) = 0;
enum {
MOZ_SOURCE_UNKNOWN = 0U,
MOZ_SOURCE_MOUSE = 1U,
MOZ_SOURCE_PEN = 2U,
MOZ_SOURCE_ERASER = 3U,
MOZ_SOURCE_CURSOR = 4U,
MOZ_SOURCE_TOUCH = 5U,
MOZ_SOURCE_KEYBOARD = 6U
};
/* readonly attribute unsigned short mozInputSource; */
NS_SCRIPTABLE NS_IMETHOD GetMozInputSource(PRUint16 *aMozInputSource) = 0;
/* void initNSMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg, in float pressure, in unsigned short inputSourceArg); */
NS_SCRIPTABLE NS_IMETHOD InitNSMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure, PRUint16 inputSourceArg) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMouseEvent, NS_IDOMMOUSEEVENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMMOUSEEVENT \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX); \
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY); \
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey); \
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey); \
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey); \
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey); \
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton); \
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget); \
NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg); \
NS_SCRIPTABLE NS_IMETHOD GetMozPressure(float *aMozPressure); \
NS_SCRIPTABLE NS_IMETHOD GetMozInputSource(PRUint16 *aMozInputSource); \
NS_SCRIPTABLE NS_IMETHOD InitNSMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure, PRUint16 inputSourceArg);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMMOUSEEVENT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return _to GetClientX(aClientX); } \
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return _to GetClientY(aClientY); } \
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return _to GetAltKey(aAltKey); } \
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) { return _to GetButton(aButton); } \
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return _to GetRelatedTarget(aRelatedTarget); } \
NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg) { return _to InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); } \
NS_SCRIPTABLE NS_IMETHOD GetMozPressure(float *aMozPressure) { return _to GetMozPressure(aMozPressure); } \
NS_SCRIPTABLE NS_IMETHOD GetMozInputSource(PRUint16 *aMozInputSource) { return _to GetMozInputSource(aMozInputSource); } \
NS_SCRIPTABLE NS_IMETHOD InitNSMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure, PRUint16 inputSourceArg) { return _to InitNSMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg, pressure, inputSourceArg); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMMOUSEEVENT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(aButton); } \
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelatedTarget(aRelatedTarget); } \
NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); } \
NS_SCRIPTABLE NS_IMETHOD GetMozPressure(float *aMozPressure) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPressure(aMozPressure); } \
NS_SCRIPTABLE NS_IMETHOD GetMozInputSource(PRUint16 *aMozInputSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozInputSource(aMozInputSource); } \
NS_SCRIPTABLE NS_IMETHOD InitNSMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure, PRUint16 inputSourceArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitNSMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg, pressure, inputSourceArg); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMMouseEvent : public nsIDOMMouseEvent
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMMOUSEEVENT
nsDOMMouseEvent();
private:
~nsDOMMouseEvent();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMMouseEvent, nsIDOMMouseEvent)
nsDOMMouseEvent::nsDOMMouseEvent()
{
/* member initializers and constructor code */
}
nsDOMMouseEvent::~nsDOMMouseEvent()
{
/* destructor code */
}
/* readonly attribute long screenX; */
NS_IMETHODIMP nsDOMMouseEvent::GetScreenX(PRInt32 *aScreenX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long screenY; */
NS_IMETHODIMP nsDOMMouseEvent::GetScreenY(PRInt32 *aScreenY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long clientX; */
NS_IMETHODIMP nsDOMMouseEvent::GetClientX(PRInt32 *aClientX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long clientY; */
NS_IMETHODIMP nsDOMMouseEvent::GetClientY(PRInt32 *aClientY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean ctrlKey; */
NS_IMETHODIMP nsDOMMouseEvent::GetCtrlKey(bool *aCtrlKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean shiftKey; */
NS_IMETHODIMP nsDOMMouseEvent::GetShiftKey(bool *aShiftKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean altKey; */
NS_IMETHODIMP nsDOMMouseEvent::GetAltKey(bool *aAltKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean metaKey; */
NS_IMETHODIMP nsDOMMouseEvent::GetMetaKey(bool *aMetaKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned short button; */
NS_IMETHODIMP nsDOMMouseEvent::GetButton(PRUint16 *aButton)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMEventTarget relatedTarget; */
NS_IMETHODIMP nsDOMMouseEvent::GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg); */
NS_IMETHODIMP nsDOMMouseEvent::InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute float mozPressure; */
NS_IMETHODIMP nsDOMMouseEvent::GetMozPressure(float *aMozPressure)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned short mozInputSource; */
NS_IMETHODIMP nsDOMMouseEvent::GetMozInputSource(PRUint16 *aMozInputSource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void initNSMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg, in float pressure, in unsigned short inputSourceArg); */
NS_IMETHODIMP nsDOMMouseEvent::InitNSMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure, PRUint16 inputSourceArg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIMouseEventInit */
#define NS_IMOUSEEVENTINIT_IID_STR "9495a977-5c9e-4b34-8d51-22bfd9b4fcf6"
#define NS_IMOUSEEVENTINIT_IID \
{0x9495a977, 0x5c9e, 0x4b34, \
{ 0x8d, 0x51, 0x22, 0xbf, 0xd9, 0xb4, 0xfc, 0xf6 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMouseEventInit : public nsIUIEventInit {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOUSEEVENTINIT_IID)
/* attribute long screenX; */
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX) = 0;
/* attribute long screenY; */
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY) = 0;
/* attribute long clientX; */
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) = 0;
NS_SCRIPTABLE NS_IMETHOD SetClientX(PRInt32 aClientX) = 0;
/* attribute long clientY; */
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) = 0;
NS_SCRIPTABLE NS_IMETHOD SetClientY(PRInt32 aClientY) = 0;
/* attribute boolean ctrlKey; */
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetCtrlKey(bool aCtrlKey) = 0;
/* attribute boolean shiftKey; */
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetShiftKey(bool aShiftKey) = 0;
/* attribute boolean altKey; */
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetAltKey(bool aAltKey) = 0;
/* attribute boolean metaKey; */
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetMetaKey(bool aMetaKey) = 0;
/* attribute unsigned short button; */
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) = 0;
NS_SCRIPTABLE NS_IMETHOD SetButton(PRUint16 aButton) = 0;
/* attribute nsIDOMEventTarget relatedTarget; */
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) = 0;
NS_SCRIPTABLE NS_IMETHOD SetRelatedTarget(nsIDOMEventTarget *aRelatedTarget) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMouseEventInit, NS_IMOUSEEVENTINIT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOUSEEVENTINIT \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX); \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY); \
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX); \
NS_SCRIPTABLE NS_IMETHOD SetClientX(PRInt32 aClientX); \
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY); \
NS_SCRIPTABLE NS_IMETHOD SetClientY(PRInt32 aClientY); \
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey); \
NS_SCRIPTABLE NS_IMETHOD SetCtrlKey(bool aCtrlKey); \
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey); \
NS_SCRIPTABLE NS_IMETHOD SetShiftKey(bool aShiftKey); \
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey); \
NS_SCRIPTABLE NS_IMETHOD SetAltKey(bool aAltKey); \
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey); \
NS_SCRIPTABLE NS_IMETHOD SetMetaKey(bool aMetaKey); \
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton); \
NS_SCRIPTABLE NS_IMETHOD SetButton(PRUint16 aButton); \
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget); \
NS_SCRIPTABLE NS_IMETHOD SetRelatedTarget(nsIDOMEventTarget *aRelatedTarget);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOUSEEVENTINIT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX) { return _to SetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY) { return _to SetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return _to GetClientX(aClientX); } \
NS_SCRIPTABLE NS_IMETHOD SetClientX(PRInt32 aClientX) { return _to SetClientX(aClientX); } \
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return _to GetClientY(aClientY); } \
NS_SCRIPTABLE NS_IMETHOD SetClientY(PRInt32 aClientY) { return _to SetClientY(aClientY); } \
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
NS_SCRIPTABLE NS_IMETHOD SetCtrlKey(bool aCtrlKey) { return _to SetCtrlKey(aCtrlKey); } \
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
NS_SCRIPTABLE NS_IMETHOD SetShiftKey(bool aShiftKey) { return _to SetShiftKey(aShiftKey); } \
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return _to GetAltKey(aAltKey); } \
NS_SCRIPTABLE NS_IMETHOD SetAltKey(bool aAltKey) { return _to SetAltKey(aAltKey); } \
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
NS_SCRIPTABLE NS_IMETHOD SetMetaKey(bool aMetaKey) { return _to SetMetaKey(aMetaKey); } \
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) { return _to GetButton(aButton); } \
NS_SCRIPTABLE NS_IMETHOD SetButton(PRUint16 aButton) { return _to SetButton(aButton); } \
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return _to GetRelatedTarget(aRelatedTarget); } \
NS_SCRIPTABLE NS_IMETHOD SetRelatedTarget(nsIDOMEventTarget *aRelatedTarget) { return _to SetRelatedTarget(aRelatedTarget); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMOUSEEVENTINIT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
NS_SCRIPTABLE NS_IMETHOD SetClientX(PRInt32 aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClientX(aClientX); } \
NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
NS_SCRIPTABLE NS_IMETHOD SetClientY(PRInt32 aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClientY(aClientY); } \
NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
NS_SCRIPTABLE NS_IMETHOD SetCtrlKey(bool aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCtrlKey(aCtrlKey); } \
NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
NS_SCRIPTABLE NS_IMETHOD SetShiftKey(bool aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShiftKey(aShiftKey); } \
NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
NS_SCRIPTABLE NS_IMETHOD SetAltKey(bool aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAltKey(aAltKey); } \
NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
NS_SCRIPTABLE NS_IMETHOD SetMetaKey(bool aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMetaKey(aMetaKey); } \
NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(aButton); } \
NS_SCRIPTABLE NS_IMETHOD SetButton(PRUint16 aButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetButton(aButton); } \
NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelatedTarget(aRelatedTarget); } \
NS_SCRIPTABLE NS_IMETHOD SetRelatedTarget(nsIDOMEventTarget *aRelatedTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelatedTarget(aRelatedTarget); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMouseEventInit : public nsIMouseEventInit
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOUSEEVENTINIT
nsMouseEventInit();
private:
~nsMouseEventInit();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMouseEventInit, nsIMouseEventInit)
nsMouseEventInit::nsMouseEventInit()
{
/* member initializers and constructor code */
}
nsMouseEventInit::~nsMouseEventInit()
{
/* destructor code */
}
/* attribute long screenX; */
NS_IMETHODIMP nsMouseEventInit::GetScreenX(PRInt32 *aScreenX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetScreenX(PRInt32 aScreenX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long screenY; */
NS_IMETHODIMP nsMouseEventInit::GetScreenY(PRInt32 *aScreenY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetScreenY(PRInt32 aScreenY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long clientX; */
NS_IMETHODIMP nsMouseEventInit::GetClientX(PRInt32 *aClientX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetClientX(PRInt32 aClientX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long clientY; */
NS_IMETHODIMP nsMouseEventInit::GetClientY(PRInt32 *aClientY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetClientY(PRInt32 aClientY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean ctrlKey; */
NS_IMETHODIMP nsMouseEventInit::GetCtrlKey(bool *aCtrlKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetCtrlKey(bool aCtrlKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean shiftKey; */
NS_IMETHODIMP nsMouseEventInit::GetShiftKey(bool *aShiftKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetShiftKey(bool aShiftKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean altKey; */
NS_IMETHODIMP nsMouseEventInit::GetAltKey(bool *aAltKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetAltKey(bool aAltKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean metaKey; */
NS_IMETHODIMP nsMouseEventInit::GetMetaKey(bool *aMetaKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetMetaKey(bool aMetaKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned short button; */
NS_IMETHODIMP nsMouseEventInit::GetButton(PRUint16 *aButton)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetButton(PRUint16 aButton)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIDOMEventTarget relatedTarget; */
NS_IMETHODIMP nsMouseEventInit::GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMouseEventInit::SetRelatedTarget(nsIDOMEventTarget *aRelatedTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMMouseEvent_h__ */
|