dom/events/EventNameList.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 /*
michael@0 7 * This file contains the list of event names that are exposed via IDL
michael@0 8 * on various objects. It is designed to be used as inline input to
michael@0 9 * various consumers through the magic of C preprocessing.
michael@0 10 *
michael@0 11 * Each entry consists of 4 pieces of information:
michael@0 12 * 1) The name of the event
michael@0 13 * 2) The event ID (see BasicEvents.h)
michael@0 14 * 3) The event type (see the EventNameType enum in nsContentUtils.h)
michael@0 15 * 4) The event struct type for this event.
michael@0 16 * Items 2-4 might be empty strings for events for which they don't make sense.
michael@0 17 *
michael@0 18 * Event names that are exposed as content attributes on HTML elements
michael@0 19 * and as IDL attributes on Elements, Documents and Windows and have
michael@0 20 * no forwarding behavior should be enclosed in the EVENT macro.
michael@0 21 *
michael@0 22 * Event names that are exposed as content attributes on HTML elements
michael@0 23 * and as IDL attributes on Elements, Documents and Windows and are
michael@0 24 * forwarded from <body> and <frameset> to the Window should be
michael@0 25 * enclosed in the FORWARDED_EVENT macro. If this macro is not
michael@0 26 * defined, it will be defined to be equivalent to EVENT.
michael@0 27 *
michael@0 28 * Event names that are exposed as IDL attributes on Windows only
michael@0 29 * should be enclosed in the WINDOW_ONLY_EVENT macro. If this macro
michael@0 30 * is not defined, it will be defined to the empty string.
michael@0 31 *
michael@0 32 * Event names that are exposed as content and IDL attributes on
michael@0 33 * <body> and <frameset>, which forward them to the Window, and are
michael@0 34 * exposed as IDL attributes on the Window should be enclosed in the
michael@0 35 * WINDOW_EVENT macro. If this macro is not defined, it will be
michael@0 36 * defined to be equivalent to WINDOW_ONLY_EVENT.
michael@0 37 *
michael@0 38 * Touch-specific event names should be enclosed in TOUCH_EVENT. They
michael@0 39 * are otherwise equivalent to those enclosed in EVENT. If
michael@0 40 * TOUCH_EVENT is not defined, it will be defined to the empty string.
michael@0 41 *
michael@0 42 * Event names that are only exposed as IDL attributes on Documents
michael@0 43 * should be enclosed in the DOCUMENT_ONLY_EVENT macro. If this macro is
michael@0 44 * not defined, it will be defined to the empty string.
michael@0 45 *
michael@0 46 * Event names that are not exposed as IDL attributes at all should be
michael@0 47 * enclosed in NON_IDL_EVENT. If NON_IDL_EVENT is not defined, it
michael@0 48 * will be defined to the empty string.
michael@0 49 *
michael@0 50 * If you change which macros event names are enclosed in, please
michael@0 51 * update the tests for bug 689564 and bug 659350 as needed.
michael@0 52 */
michael@0 53
michael@0 54 #ifdef ID_TO_EVENT
michael@0 55 #ifdef EVENT
michael@0 56 #error "Don't define EVENT"
michael@0 57 #endif /* EVENT */
michael@0 58 #ifdef WINDOW_ONLY_EVENT
michael@0 59 #error "Don't define WINDOW_ONLY_EVENT"
michael@0 60 #endif /* WINDOW_ONLY_EVENT */
michael@0 61 #ifdef TOUCH_EVENT
michael@0 62 #error "Don't define TOUCH_EVENT"
michael@0 63 #endif /* TOUCH_EVENT */
michael@0 64 #ifdef DOCUMENT_ONLY_EVENT
michael@0 65 #error "Don't define DOCUMENT_ONLY_EVENT"
michael@0 66 #endif /* DOCUMENT_ONLY_EVENT */
michael@0 67 #ifdef NON_IDL_EVENT
michael@0 68 #error "Don't define NON_IDL_EVENT"
michael@0 69 #endif /* NON_IDL_EVENT */
michael@0 70
michael@0 71 #define EVENT ID_TO_EVENT
michael@0 72 #define WINDOW_ONLY_EVENT ID_TO_EVENT
michael@0 73 #define TOUCH_EVENT ID_TO_EVENT
michael@0 74 #define DOCUMENT_ONLY_EVENT ID_TO_EVENT
michael@0 75 #define NON_IDL_EVENT ID_TO_EVENT
michael@0 76 #endif
michael@0 77
michael@0 78 #ifdef DEFINED_FORWARDED_EVENT
michael@0 79 #error "Don't define DEFINED_FORWARDED_EVENT"
michael@0 80 #endif /* DEFINED_FORWARDED_EVENT */
michael@0 81
michael@0 82 #ifndef FORWARDED_EVENT
michael@0 83 #define FORWARDED_EVENT EVENT
michael@0 84 #define DEFINED_FORWARDED_EVENT
michael@0 85 #endif /* FORWARDED_EVENT */
michael@0 86
michael@0 87 #ifdef DEFINED_WINDOW_ONLY_EVENT
michael@0 88 #error "Don't define DEFINED_WINDOW_ONLY_EVENT"
michael@0 89 #endif /* DEFINED_WINDOW_ONLY_EVENT */
michael@0 90
michael@0 91 #ifndef WINDOW_ONLY_EVENT
michael@0 92 #define WINDOW_ONLY_EVENT(_name, _id, _type, _struct)
michael@0 93 #define DEFINED_WINDOW_ONLY_EVENT
michael@0 94 #endif /* WINDOW_ONLY_EVENT */
michael@0 95
michael@0 96 #ifdef DEFINED_WINDOW_EVENT
michael@0 97 #error "Don't define DEFINED_WINDOW_EVENT"
michael@0 98 #endif /* DEFINED_WINDOW_EVENT */
michael@0 99
michael@0 100 #ifndef WINDOW_EVENT
michael@0 101 #define WINDOW_EVENT WINDOW_ONLY_EVENT
michael@0 102 #define DEFINED_WINDOW_EVENT
michael@0 103 #endif /* WINDOW_EVENT */
michael@0 104
michael@0 105 #ifdef DEFINED_TOUCH_EVENT
michael@0 106 #error "Don't define DEFINED_TOUCH_EVENT"
michael@0 107 #endif /* DEFINED_TOUCH_EVENT */
michael@0 108
michael@0 109 #ifndef TOUCH_EVENT
michael@0 110 #define TOUCH_EVENT(_name, _id, _type, _struct)
michael@0 111 #define DEFINED_TOUCH_EVENT
michael@0 112 #endif /* TOUCH_EVENT */
michael@0 113
michael@0 114 #ifdef DEFINED_DOCUMENT_ONLY_EVENT
michael@0 115 #error "Don't define DEFINED_DOCUMENT_ONLY_EVENT"
michael@0 116 #endif /* DEFINED_DOCUMENT_ONLY_EVENT */
michael@0 117
michael@0 118 #ifndef DOCUMENT_ONLY_EVENT
michael@0 119 #define DOCUMENT_ONLY_EVENT(_name, _id, _type, _struct)
michael@0 120 #define DEFINED_DOCUMENT_ONLY_EVENT
michael@0 121 #endif /* DOCUMENT_ONLY_EVENT */
michael@0 122
michael@0 123 #ifdef DEFINED_NON_IDL_EVENT
michael@0 124 #error "Don't define DEFINED_NON_IDL_EVENT"
michael@0 125 #endif /* DEFINED_NON_IDL_EVENT */
michael@0 126
michael@0 127 #ifndef NON_IDL_EVENT
michael@0 128 #define NON_IDL_EVENT(_name, _id, _type, _struct)
michael@0 129 #define DEFINED_NON_IDL_EVENT
michael@0 130 #endif /* NON_IDL_EVENT */
michael@0 131
michael@0 132 #ifdef DEFINED_ERROR_EVENT
michael@0 133 #error "Don't define DEFINED_ERROR_EVENT"
michael@0 134 #endif /* DEFINED_ERROR_EVENT */
michael@0 135
michael@0 136 #ifndef ERROR_EVENT
michael@0 137 #define ERROR_EVENT FORWARDED_EVENT
michael@0 138 #define DEFINED_ERROR_EVENT
michael@0 139 #endif /* ERROR_EVENT */
michael@0 140
michael@0 141 #ifdef DEFINED_BEFOREUNLOAD_EVENT
michael@0 142 #error "Don't define DEFINED_BEFOREUNLOAD_EVENT"
michael@0 143 #endif /* DEFINED_BEFOREUNLOAD_EVENT */
michael@0 144
michael@0 145 #ifndef BEFOREUNLOAD_EVENT
michael@0 146 #define BEFOREUNLOAD_EVENT WINDOW_EVENT
michael@0 147 #define DEFINED_BEFOREUNLOAD_EVENT
michael@0 148 #endif /* BEFOREUNLOAD_EVENT */
michael@0 149
michael@0 150 EVENT(abort,
michael@0 151 NS_IMAGE_ABORT,
michael@0 152 EventNameType_All,
michael@0 153 NS_EVENT)
michael@0 154 EVENT(canplay,
michael@0 155 NS_CANPLAY,
michael@0 156 EventNameType_HTML,
michael@0 157 NS_EVENT)
michael@0 158 EVENT(canplaythrough,
michael@0 159 NS_CANPLAYTHROUGH,
michael@0 160 EventNameType_HTML,
michael@0 161 NS_EVENT)
michael@0 162 EVENT(change,
michael@0 163 NS_FORM_CHANGE,
michael@0 164 EventNameType_HTMLXUL,
michael@0 165 NS_EVENT )
michael@0 166 EVENT(click,
michael@0 167 NS_MOUSE_CLICK,
michael@0 168 EventNameType_All,
michael@0 169 NS_MOUSE_EVENT)
michael@0 170 EVENT(contextmenu,
michael@0 171 NS_CONTEXTMENU,
michael@0 172 EventNameType_HTMLXUL,
michael@0 173 NS_MOUSE_EVENT)
michael@0 174 // Not supported yet
michael@0 175 // EVENT(cuechange)
michael@0 176 EVENT(dblclick,
michael@0 177 NS_MOUSE_DOUBLECLICK,
michael@0 178 EventNameType_HTMLXUL,
michael@0 179 NS_MOUSE_EVENT)
michael@0 180 EVENT(drag,
michael@0 181 NS_DRAGDROP_DRAG,
michael@0 182 EventNameType_HTMLXUL,
michael@0 183 NS_DRAG_EVENT)
michael@0 184 EVENT(dragend,
michael@0 185 NS_DRAGDROP_END,
michael@0 186 EventNameType_HTMLXUL,
michael@0 187 NS_DRAG_EVENT)
michael@0 188 EVENT(dragenter,
michael@0 189 NS_DRAGDROP_ENTER,
michael@0 190 EventNameType_HTMLXUL,
michael@0 191 NS_DRAG_EVENT)
michael@0 192 EVENT(dragleave,
michael@0 193 NS_DRAGDROP_LEAVE_SYNTH,
michael@0 194 EventNameType_HTMLXUL,
michael@0 195 NS_DRAG_EVENT)
michael@0 196 EVENT(dragover,
michael@0 197 NS_DRAGDROP_OVER_SYNTH,
michael@0 198 EventNameType_HTMLXUL,
michael@0 199 NS_DRAG_EVENT)
michael@0 200 EVENT(dragstart,
michael@0 201 NS_DRAGDROP_START,
michael@0 202 EventNameType_HTMLXUL,
michael@0 203 NS_DRAG_EVENT)
michael@0 204 EVENT(drop,
michael@0 205 NS_DRAGDROP_DROP,
michael@0 206 EventNameType_HTMLXUL,
michael@0 207 NS_DRAG_EVENT)
michael@0 208 EVENT(durationchange,
michael@0 209 NS_DURATIONCHANGE,
michael@0 210 EventNameType_HTML,
michael@0 211 NS_EVENT)
michael@0 212 EVENT(emptied,
michael@0 213 NS_EMPTIED,
michael@0 214 EventNameType_HTML,
michael@0 215 NS_EVENT)
michael@0 216 EVENT(ended,
michael@0 217 NS_ENDED,
michael@0 218 EventNameType_HTML,
michael@0 219 NS_EVENT)
michael@0 220 EVENT(input,
michael@0 221 NS_EDITOR_INPUT,
michael@0 222 EventNameType_HTMLXUL,
michael@0 223 NS_EDITOR_INPUT_EVENT)
michael@0 224 EVENT(invalid,
michael@0 225 NS_FORM_INVALID,
michael@0 226 EventNameType_HTMLXUL,
michael@0 227 NS_EVENT)
michael@0 228 EVENT(keydown,
michael@0 229 NS_KEY_DOWN,
michael@0 230 EventNameType_HTMLXUL,
michael@0 231 NS_KEY_EVENT)
michael@0 232 EVENT(keypress,
michael@0 233 NS_KEY_PRESS,
michael@0 234 EventNameType_HTMLXUL,
michael@0 235 NS_KEY_EVENT)
michael@0 236 EVENT(keyup,
michael@0 237 NS_KEY_UP,
michael@0 238 EventNameType_HTMLXUL,
michael@0 239 NS_KEY_EVENT)
michael@0 240 EVENT(loadeddata,
michael@0 241 NS_LOADEDDATA,
michael@0 242 EventNameType_HTML,
michael@0 243 NS_EVENT)
michael@0 244 EVENT(loadedmetadata,
michael@0 245 NS_LOADEDMETADATA,
michael@0 246 EventNameType_HTML,
michael@0 247 NS_EVENT)
michael@0 248 EVENT(loadstart,
michael@0 249 NS_LOADSTART,
michael@0 250 EventNameType_HTML,
michael@0 251 NS_EVENT)
michael@0 252 EVENT(mousedown,
michael@0 253 NS_MOUSE_BUTTON_DOWN,
michael@0 254 EventNameType_All,
michael@0 255 NS_MOUSE_EVENT)
michael@0 256 EVENT(mouseenter,
michael@0 257 NS_MOUSEENTER,
michael@0 258 EventNameType_All,
michael@0 259 NS_MOUSE_EVENT)
michael@0 260 EVENT(mouseleave,
michael@0 261 NS_MOUSELEAVE,
michael@0 262 EventNameType_All,
michael@0 263 NS_MOUSE_EVENT)
michael@0 264 EVENT(mousemove,
michael@0 265 NS_MOUSE_MOVE,
michael@0 266 EventNameType_All,
michael@0 267 NS_MOUSE_EVENT)
michael@0 268 EVENT(mouseout,
michael@0 269 NS_MOUSE_EXIT_SYNTH,
michael@0 270 EventNameType_All,
michael@0 271 NS_MOUSE_EVENT)
michael@0 272 EVENT(mouseover,
michael@0 273 NS_MOUSE_ENTER_SYNTH,
michael@0 274 EventNameType_All,
michael@0 275 NS_MOUSE_EVENT)
michael@0 276 EVENT(mouseup,
michael@0 277 NS_MOUSE_BUTTON_UP,
michael@0 278 EventNameType_All,
michael@0 279 NS_MOUSE_EVENT)
michael@0 280 EVENT(mozfullscreenchange,
michael@0 281 NS_FULLSCREENCHANGE,
michael@0 282 EventNameType_HTML,
michael@0 283 NS_EVENT)
michael@0 284 EVENT(mozfullscreenerror,
michael@0 285 NS_FULLSCREENERROR,
michael@0 286 EventNameType_HTML,
michael@0 287 NS_EVENT)
michael@0 288 EVENT(mozpointerlockchange,
michael@0 289 NS_POINTERLOCKCHANGE,
michael@0 290 EventNameType_HTML,
michael@0 291 NS_EVENT)
michael@0 292 EVENT(mozpointerlockerror,
michael@0 293 NS_POINTERLOCKERROR,
michael@0 294 EventNameType_HTML,
michael@0 295 NS_EVENT)
michael@0 296
michael@0 297 EVENT(pointerdown,
michael@0 298 NS_POINTER_DOWN,
michael@0 299 EventNameType_All,
michael@0 300 NS_POINTER_EVENT)
michael@0 301 EVENT(pointermove,
michael@0 302 NS_POINTER_MOVE,
michael@0 303 EventNameType_All,
michael@0 304 NS_POINTER_EVENT)
michael@0 305 EVENT(pointerup,
michael@0 306 NS_POINTER_UP,
michael@0 307 EventNameType_All,
michael@0 308 NS_POINTER_EVENT)
michael@0 309 EVENT(pointercancel,
michael@0 310 NS_POINTER_CANCEL,
michael@0 311 EventNameType_All,
michael@0 312 NS_POINTER_EVENT)
michael@0 313 EVENT(pointerover,
michael@0 314 NS_POINTER_OVER,
michael@0 315 EventNameType_All,
michael@0 316 NS_POINTER_EVENT)
michael@0 317 EVENT(pointerout,
michael@0 318 NS_POINTER_OUT,
michael@0 319 EventNameType_All,
michael@0 320 NS_POINTER_EVENT)
michael@0 321 EVENT(pointerenter,
michael@0 322 NS_POINTER_ENTER,
michael@0 323 EventNameType_All,
michael@0 324 NS_POINTER_EVENT)
michael@0 325 EVENT(pointerleave,
michael@0 326 NS_POINTER_LEAVE,
michael@0 327 EventNameType_All,
michael@0 328 NS_POINTER_EVENT)
michael@0 329 EVENT(gotpointercapture,
michael@0 330 NS_POINTER_GOT_CAPTURE,
michael@0 331 EventNameType_All,
michael@0 332 NS_POINTER_EVENT)
michael@0 333 EVENT(lostpointercapture,
michael@0 334 NS_POINTER_LOST_CAPTURE,
michael@0 335 EventNameType_All,
michael@0 336 NS_POINTER_EVENT)
michael@0 337
michael@0 338 // Not supported yet; probably never because "wheel" is a better idea.
michael@0 339 // EVENT(mousewheel)
michael@0 340 EVENT(pause,
michael@0 341 NS_PAUSE,
michael@0 342 EventNameType_HTML,
michael@0 343 NS_EVENT)
michael@0 344 EVENT(play,
michael@0 345 NS_PLAY,
michael@0 346 EventNameType_HTML,
michael@0 347 NS_EVENT)
michael@0 348 EVENT(playing,
michael@0 349 NS_PLAYING,
michael@0 350 EventNameType_HTML,
michael@0 351 NS_EVENT)
michael@0 352 EVENT(progress,
michael@0 353 NS_PROGRESS,
michael@0 354 EventNameType_HTML,
michael@0 355 NS_EVENT)
michael@0 356 EVENT(ratechange,
michael@0 357 NS_RATECHANGE,
michael@0 358 EventNameType_HTML,
michael@0 359 NS_EVENT)
michael@0 360 EVENT(reset,
michael@0 361 NS_FORM_RESET,
michael@0 362 EventNameType_HTMLXUL,
michael@0 363 NS_EVENT)
michael@0 364 EVENT(seeked,
michael@0 365 NS_SEEKED,
michael@0 366 EventNameType_HTML,
michael@0 367 NS_EVENT)
michael@0 368 EVENT(seeking,
michael@0 369 NS_SEEKING,
michael@0 370 EventNameType_HTML,
michael@0 371 NS_EVENT)
michael@0 372 EVENT(select,
michael@0 373 NS_FORM_SELECTED,
michael@0 374 EventNameType_HTMLXUL,
michael@0 375 NS_EVENT)
michael@0 376 EVENT(show,
michael@0 377 NS_SHOW_EVENT,
michael@0 378 EventNameType_HTML,
michael@0 379 NS_EVENT)
michael@0 380 EVENT(stalled,
michael@0 381 NS_STALLED,
michael@0 382 EventNameType_HTML,
michael@0 383 NS_EVENT)
michael@0 384 EVENT(submit,
michael@0 385 NS_FORM_SUBMIT,
michael@0 386 EventNameType_HTMLXUL,
michael@0 387 NS_EVENT)
michael@0 388 EVENT(suspend,
michael@0 389 NS_SUSPEND,
michael@0 390 EventNameType_HTML,
michael@0 391 NS_EVENT)
michael@0 392 EVENT(timeupdate,
michael@0 393 NS_TIMEUPDATE,
michael@0 394 EventNameType_HTML,
michael@0 395 NS_EVENT)
michael@0 396 EVENT(volumechange,
michael@0 397 NS_VOLUMECHANGE,
michael@0 398 EventNameType_HTML,
michael@0 399 NS_EVENT)
michael@0 400 EVENT(waiting,
michael@0 401 NS_WAITING,
michael@0 402 EventNameType_HTML,
michael@0 403 NS_EVENT)
michael@0 404 EVENT(wheel,
michael@0 405 NS_WHEEL_WHEEL,
michael@0 406 EventNameType_All,
michael@0 407 NS_WHEEL_EVENT)
michael@0 408 EVENT(copy,
michael@0 409 NS_COPY,
michael@0 410 EventNameType_HTMLXUL,
michael@0 411 NS_CLIPBOARD_EVENT)
michael@0 412 EVENT(cut,
michael@0 413 NS_CUT,
michael@0 414 EventNameType_HTMLXUL,
michael@0 415 NS_CLIPBOARD_EVENT)
michael@0 416 EVENT(paste,
michael@0 417 NS_PASTE,
michael@0 418 EventNameType_HTMLXUL,
michael@0 419 NS_CLIPBOARD_EVENT)
michael@0 420 // Gecko-specific extensions that apply to elements
michael@0 421 EVENT(beforescriptexecute,
michael@0 422 NS_BEFORE_SCRIPT_EXECUTE,
michael@0 423 EventNameType_HTMLXUL,
michael@0 424 NS_EVENT)
michael@0 425 EVENT(afterscriptexecute,
michael@0 426 NS_AFTER_SCRIPT_EXECUTE,
michael@0 427 EventNameType_HTMLXUL,
michael@0 428 NS_EVENT)
michael@0 429
michael@0 430 FORWARDED_EVENT(blur,
michael@0 431 NS_BLUR_CONTENT,
michael@0 432 EventNameType_HTMLXUL,
michael@0 433 NS_FOCUS_EVENT)
michael@0 434 ERROR_EVENT(error,
michael@0 435 NS_LOAD_ERROR,
michael@0 436 EventNameType_All,
michael@0 437 NS_EVENT)
michael@0 438 FORWARDED_EVENT(focus,
michael@0 439 NS_FOCUS_CONTENT,
michael@0 440 EventNameType_HTMLXUL,
michael@0 441 NS_FOCUS_EVENT)
michael@0 442 FORWARDED_EVENT(load,
michael@0 443 NS_LOAD,
michael@0 444 EventNameType_All,
michael@0 445 NS_EVENT)
michael@0 446 FORWARDED_EVENT(scroll,
michael@0 447 NS_SCROLL_EVENT,
michael@0 448 (EventNameType_HTMLXUL | EventNameType_SVGSVG),
michael@0 449 NS_EVENT)
michael@0 450
michael@0 451 WINDOW_EVENT(afterprint,
michael@0 452 NS_AFTERPRINT,
michael@0 453 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 454 NS_EVENT)
michael@0 455 WINDOW_EVENT(beforeprint,
michael@0 456 NS_BEFOREPRINT,
michael@0 457 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 458 NS_EVENT)
michael@0 459 BEFOREUNLOAD_EVENT(beforeunload,
michael@0 460 NS_BEFORE_PAGE_UNLOAD,
michael@0 461 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 462 NS_EVENT)
michael@0 463 WINDOW_EVENT(hashchange,
michael@0 464 NS_HASHCHANGE,
michael@0 465 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 466 NS_EVENT)
michael@0 467 // XXXbz Should the onmessage attribute on <body> really not work? If so, do we
michael@0 468 // need a different macro to flag things like that (IDL, but not content
michael@0 469 // attributes on body/frameset), or is just using EventNameType_None enough?
michael@0 470 WINDOW_EVENT(message,
michael@0 471 NS_MESSAGE,
michael@0 472 EventNameType_None,
michael@0 473 NS_EVENT)
michael@0 474 WINDOW_EVENT(offline,
michael@0 475 NS_OFFLINE,
michael@0 476 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 477 NS_EVENT)
michael@0 478 WINDOW_EVENT(online,
michael@0 479 NS_ONLINE,
michael@0 480 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 481 NS_EVENT)
michael@0 482 WINDOW_EVENT(pagehide,
michael@0 483 NS_PAGE_HIDE,
michael@0 484 EventNameType_HTMLBodyOrFramesetOnly,
michael@0 485 NS_EVENT)
michael@0 486 WINDOW_EVENT(pageshow,
michael@0 487 NS_PAGE_SHOW,
michael@0 488 EventNameType_HTMLBodyOrFramesetOnly,
michael@0 489 NS_EVENT)
michael@0 490 WINDOW_EVENT(popstate,
michael@0 491 NS_POPSTATE,
michael@0 492 EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
michael@0 493 NS_EVENT)
michael@0 494 // Not supported yet
michael@0 495 // WINDOW_EVENT(redo)
michael@0 496 WINDOW_EVENT(resize,
michael@0 497 NS_RESIZE_EVENT,
michael@0 498 (EventNameType_XUL | EventNameType_SVGSVG |
michael@0 499 EventNameType_HTMLBodyOrFramesetOnly),
michael@0 500 NS_EVENT)
michael@0 501 // Not supported yet
michael@0 502 // WINDOW_EVENT(storage)
michael@0 503 // Not supported yet
michael@0 504 // WINDOW_EVENT(undo)
michael@0 505 WINDOW_EVENT(unload,
michael@0 506 NS_PAGE_UNLOAD,
michael@0 507 (EventNameType_XUL | EventNameType_SVGSVG |
michael@0 508 EventNameType_HTMLBodyOrFramesetOnly),
michael@0 509 NS_EVENT)
michael@0 510
michael@0 511 WINDOW_ONLY_EVENT(devicemotion,
michael@0 512 NS_DEVICE_MOTION,
michael@0 513 EventNameType_None,
michael@0 514 NS_EVENT)
michael@0 515 WINDOW_ONLY_EVENT(deviceorientation,
michael@0 516 NS_DEVICE_ORIENTATION,
michael@0 517 EventNameType_None,
michael@0 518 NS_EVENT)
michael@0 519 WINDOW_ONLY_EVENT(deviceproximity,
michael@0 520 NS_DEVICE_PROXIMITY,
michael@0 521 EventNameType_None,
michael@0 522 NS_EVENT)
michael@0 523 WINDOW_ONLY_EVENT(userproximity,
michael@0 524 NS_USER_PROXIMITY,
michael@0 525 EventNameType_None,
michael@0 526 NS_EVENT)
michael@0 527 WINDOW_ONLY_EVENT(devicelight,
michael@0 528 NS_DEVICE_LIGHT,
michael@0 529 EventNameType_None,
michael@0 530 NS_EVENT)
michael@0 531
michael@0 532 #ifdef MOZ_B2G
michael@0 533 WINDOW_ONLY_EVENT(moztimechange,
michael@0 534 NS_MOZ_TIME_CHANGE_EVENT,
michael@0 535 EventNameType_None,
michael@0 536 NS_EVENT)
michael@0 537 WINDOW_ONLY_EVENT(moznetworkupload,
michael@0 538 NS_NETWORK_UPLOAD_EVENT,
michael@0 539 EventNameType_None,
michael@0 540 NS_EVENT)
michael@0 541 WINDOW_ONLY_EVENT(moznetworkdownload,
michael@0 542 NS_NETWORK_DOWNLOAD_EVENT,
michael@0 543 EventNameType_None,
michael@0 544 NS_EVENT)
michael@0 545 #endif // MOZ_B2G
michael@0 546
michael@0 547 TOUCH_EVENT(touchstart,
michael@0 548 NS_TOUCH_START,
michael@0 549 EventNameType_All,
michael@0 550 NS_TOUCH_EVENT)
michael@0 551 TOUCH_EVENT(touchend,
michael@0 552 NS_TOUCH_END,
michael@0 553 EventNameType_All,
michael@0 554 NS_TOUCH_EVENT)
michael@0 555 TOUCH_EVENT(touchmove,
michael@0 556 NS_TOUCH_MOVE,
michael@0 557 EventNameType_All,
michael@0 558 NS_TOUCH_EVENT )
michael@0 559 TOUCH_EVENT(touchenter,
michael@0 560 NS_TOUCH_ENTER,
michael@0 561 EventNameType_All,
michael@0 562 NS_TOUCH_EVENT )
michael@0 563 TOUCH_EVENT(touchleave,
michael@0 564 NS_TOUCH_LEAVE,
michael@0 565 EventNameType_All,
michael@0 566 NS_TOUCH_EVENT)
michael@0 567 TOUCH_EVENT(touchcancel,
michael@0 568 NS_TOUCH_CANCEL,
michael@0 569 EventNameType_All,
michael@0 570 NS_TOUCH_EVENT)
michael@0 571
michael@0 572 DOCUMENT_ONLY_EVENT(readystatechange,
michael@0 573 NS_READYSTATECHANGE,
michael@0 574 EventNameType_HTMLXUL,
michael@0 575 NS_EVENT)
michael@0 576
michael@0 577 NON_IDL_EVENT(MozMouseHittest,
michael@0 578 NS_MOUSE_MOZHITTEST,
michael@0 579 EventNameType_None,
michael@0 580 NS_MOUSE_EVENT)
michael@0 581
michael@0 582 NON_IDL_EVENT(DOMAttrModified,
michael@0 583 NS_MUTATION_ATTRMODIFIED,
michael@0 584 EventNameType_HTMLXUL,
michael@0 585 NS_MUTATION_EVENT)
michael@0 586 NON_IDL_EVENT(DOMCharacterDataModified,
michael@0 587 NS_MUTATION_CHARACTERDATAMODIFIED,
michael@0 588 EventNameType_HTMLXUL,
michael@0 589 NS_MUTATION_EVENT)
michael@0 590 NON_IDL_EVENT(DOMNodeInserted,
michael@0 591 NS_MUTATION_NODEINSERTED,
michael@0 592 EventNameType_HTMLXUL,
michael@0 593 NS_MUTATION_EVENT)
michael@0 594 NON_IDL_EVENT(DOMNodeRemoved,
michael@0 595 NS_MUTATION_NODEREMOVED,
michael@0 596 EventNameType_HTMLXUL,
michael@0 597 NS_MUTATION_EVENT)
michael@0 598 NON_IDL_EVENT(DOMNodeInsertedIntoDocument,
michael@0 599 NS_MUTATION_NODEINSERTEDINTODOCUMENT,
michael@0 600 EventNameType_HTMLXUL,
michael@0 601 NS_MUTATION_EVENT)
michael@0 602 NON_IDL_EVENT(DOMNodeRemovedFromDocument,
michael@0 603 NS_MUTATION_NODEREMOVEDFROMDOCUMENT,
michael@0 604 EventNameType_HTMLXUL,
michael@0 605 NS_MUTATION_EVENT)
michael@0 606 NON_IDL_EVENT(DOMSubtreeModified,
michael@0 607 NS_MUTATION_SUBTREEMODIFIED,
michael@0 608 EventNameType_HTMLXUL,
michael@0 609 NS_MUTATION_EVENT)
michael@0 610
michael@0 611 NON_IDL_EVENT(DOMActivate,
michael@0 612 NS_UI_ACTIVATE,
michael@0 613 EventNameType_HTMLXUL,
michael@0 614 NS_UI_EVENT)
michael@0 615 NON_IDL_EVENT(DOMFocusIn,
michael@0 616 NS_UI_FOCUSIN,
michael@0 617 EventNameType_HTMLXUL,
michael@0 618 NS_UI_EVENT)
michael@0 619 NON_IDL_EVENT(DOMFocusOut,
michael@0 620 NS_UI_FOCUSOUT,
michael@0 621 EventNameType_HTMLXUL,
michael@0 622 NS_UI_EVENT)
michael@0 623
michael@0 624 NON_IDL_EVENT(DOMMouseScroll,
michael@0 625 NS_MOUSE_SCROLL,
michael@0 626 EventNameType_HTMLXUL,
michael@0 627 NS_MOUSE_SCROLL_EVENT)
michael@0 628 NON_IDL_EVENT(MozMousePixelScroll,
michael@0 629 NS_MOUSE_PIXEL_SCROLL,
michael@0 630 EventNameType_HTMLXUL,
michael@0 631 NS_MOUSE_SCROLL_EVENT)
michael@0 632
michael@0 633 NON_IDL_EVENT(open,
michael@0 634 NS_OPEN,
michael@0 635 EventNameType_None,
michael@0 636 NS_EVENT)
michael@0 637
michael@0 638 NON_IDL_EVENT(dataavailable,
michael@0 639 NS_MEDIARECORDER_DATAAVAILABLE,
michael@0 640 EventNameType_None,
michael@0 641 NS_EVENT)
michael@0 642
michael@0 643 NON_IDL_EVENT(stop,
michael@0 644 NS_MEDIARECORDER_STOP,
michael@0 645 EventNameType_None,
michael@0 646 NS_EVENT)
michael@0 647
michael@0 648 NON_IDL_EVENT(warning,
michael@0 649 NS_MEDIARECORDER_WARNING,
michael@0 650 EventNameType_None,
michael@0 651 NS_EVENT)
michael@0 652
michael@0 653 NON_IDL_EVENT(speakerforcedchange,
michael@0 654 NS_SPEAKERMANAGER_SPEAKERFORCEDCHANGE,
michael@0 655 EventNameType_None,
michael@0 656 NS_EVENT)
michael@0 657
michael@0 658 // Events that only have on* attributes on XUL elements
michael@0 659 NON_IDL_EVENT(text,
michael@0 660 NS_TEXT_TEXT,
michael@0 661 EventNameType_XUL,
michael@0 662 NS_TEXT_EVENT)
michael@0 663 NON_IDL_EVENT(compositionstart,
michael@0 664 NS_COMPOSITION_START,
michael@0 665 EventNameType_XUL,
michael@0 666 NS_COMPOSITION_EVENT)
michael@0 667 NON_IDL_EVENT(compositionupdate,
michael@0 668 NS_COMPOSITION_UPDATE,
michael@0 669 EventNameType_XUL,
michael@0 670 NS_COMPOSITION_EVENT)
michael@0 671 NON_IDL_EVENT(compositionend,
michael@0 672 NS_COMPOSITION_END,
michael@0 673 EventNameType_XUL,
michael@0 674 NS_COMPOSITION_EVENT)
michael@0 675 NON_IDL_EVENT(command,
michael@0 676 NS_XUL_COMMAND,
michael@0 677 EventNameType_XUL,
michael@0 678 NS_INPUT_EVENT)
michael@0 679 NON_IDL_EVENT(close,
michael@0 680 NS_XUL_CLOSE,
michael@0 681 EventNameType_XUL,
michael@0 682 NS_EVENT)
michael@0 683 NON_IDL_EVENT(popupshowing,
michael@0 684 NS_XUL_POPUP_SHOWING,
michael@0 685 EventNameType_XUL,
michael@0 686 NS_EVENT)
michael@0 687 NON_IDL_EVENT(popupshown,
michael@0 688 NS_XUL_POPUP_SHOWN,
michael@0 689 EventNameType_XUL,
michael@0 690 NS_EVENT)
michael@0 691 NON_IDL_EVENT(popuphiding,
michael@0 692 NS_XUL_POPUP_HIDING,
michael@0 693 EventNameType_XUL,
michael@0 694 NS_EVENT)
michael@0 695 NON_IDL_EVENT(popuphidden,
michael@0 696 NS_XUL_POPUP_HIDDEN,
michael@0 697 EventNameType_XUL,
michael@0 698 NS_EVENT)
michael@0 699 NON_IDL_EVENT(broadcast,
michael@0 700 NS_XUL_BROADCAST,
michael@0 701 EventNameType_XUL,
michael@0 702 NS_EVENT)
michael@0 703 NON_IDL_EVENT(commandupdate,
michael@0 704 NS_XUL_COMMAND_UPDATE,
michael@0 705 EventNameType_XUL,
michael@0 706 NS_EVENT)
michael@0 707 NON_IDL_EVENT(dragexit,
michael@0 708 NS_DRAGDROP_EXIT_SYNTH,
michael@0 709 EventNameType_XUL,
michael@0 710 NS_DRAG_EVENT)
michael@0 711 NON_IDL_EVENT(dragdrop,
michael@0 712 NS_DRAGDROP_DRAGDROP,
michael@0 713 EventNameType_XUL,
michael@0 714 NS_DRAG_EVENT)
michael@0 715 NON_IDL_EVENT(draggesture,
michael@0 716 NS_DRAGDROP_GESTURE,
michael@0 717 EventNameType_XUL,
michael@0 718 NS_DRAG_EVENT)
michael@0 719 NON_IDL_EVENT(overflow,
michael@0 720 NS_SCROLLPORT_OVERFLOW,
michael@0 721 EventNameType_XUL,
michael@0 722 NS_EVENT)
michael@0 723 NON_IDL_EVENT(underflow,
michael@0 724 NS_SCROLLPORT_UNDERFLOW,
michael@0 725 EventNameType_XUL,
michael@0 726 NS_EVENT)
michael@0 727
michael@0 728 // Various SVG events
michael@0 729 NON_IDL_EVENT(SVGLoad,
michael@0 730 NS_SVG_LOAD,
michael@0 731 EventNameType_None,
michael@0 732 NS_EVENT)
michael@0 733 NON_IDL_EVENT(SVGUnload,
michael@0 734 NS_SVG_UNLOAD,
michael@0 735 EventNameType_None,
michael@0 736 NS_EVENT)
michael@0 737 NON_IDL_EVENT(SVGResize,
michael@0 738 NS_SVG_RESIZE,
michael@0 739 EventNameType_None,
michael@0 740 NS_EVENT)
michael@0 741 NON_IDL_EVENT(SVGScroll,
michael@0 742 NS_SVG_SCROLL,
michael@0 743 EventNameType_None,
michael@0 744 NS_EVENT)
michael@0 745
michael@0 746 NON_IDL_EVENT(SVGZoom,
michael@0 747 NS_SVG_ZOOM,
michael@0 748 EventNameType_None,
michael@0 749 NS_SVGZOOM_EVENT)
michael@0 750
michael@0 751 // Only map the ID to the real event name when ID_TO_EVENT is defined.
michael@0 752 #ifndef ID_TO_EVENT
michael@0 753 // This is a bit hackish, but SVG's event names are weird.
michael@0 754 NON_IDL_EVENT(zoom,
michael@0 755 NS_SVG_ZOOM,
michael@0 756 EventNameType_SVGSVG,
michael@0 757 NS_EVENT)
michael@0 758 #endif
michael@0 759 // Only map the ID to the real event name when ID_TO_EVENT is defined.
michael@0 760 #ifndef ID_TO_EVENT
michael@0 761 NON_IDL_EVENT(begin,
michael@0 762 NS_SMIL_BEGIN,
michael@0 763 EventNameType_SMIL,
michael@0 764 NS_EVENT)
michael@0 765 #endif
michael@0 766 NON_IDL_EVENT(beginEvent,
michael@0 767 NS_SMIL_BEGIN,
michael@0 768 EventNameType_None,
michael@0 769 NS_SMIL_TIME_EVENT)
michael@0 770 // Only map the ID to the real event name when ID_TO_EVENT is defined.
michael@0 771 #ifndef ID_TO_EVENT
michael@0 772 NON_IDL_EVENT(end,
michael@0 773 NS_SMIL_END,
michael@0 774 EventNameType_SMIL,
michael@0 775 NS_EVENT)
michael@0 776 #endif
michael@0 777 NON_IDL_EVENT(endEvent,
michael@0 778 NS_SMIL_END,
michael@0 779 EventNameType_None,
michael@0 780 NS_SMIL_TIME_EVENT)
michael@0 781 // Only map the ID to the real event name when ID_TO_EVENT is defined.
michael@0 782 #ifndef ID_TO_EVENT
michael@0 783 NON_IDL_EVENT(repeat,
michael@0 784 NS_SMIL_REPEAT,
michael@0 785 EventNameType_SMIL,
michael@0 786 NS_EVENT)
michael@0 787 #endif
michael@0 788 NON_IDL_EVENT(repeatEvent,
michael@0 789 NS_SMIL_REPEAT,
michael@0 790 EventNameType_None,
michael@0 791 NS_SMIL_TIME_EVENT)
michael@0 792
michael@0 793 NON_IDL_EVENT(MozAfterPaint,
michael@0 794 NS_AFTERPAINT,
michael@0 795 EventNameType_None,
michael@0 796 NS_EVENT)
michael@0 797
michael@0 798 NON_IDL_EVENT(MozScrolledAreaChanged,
michael@0 799 NS_SCROLLEDAREACHANGED,
michael@0 800 EventNameType_None,
michael@0 801 NS_SCROLLAREA_EVENT)
michael@0 802
michael@0 803 #ifdef MOZ_GAMEPAD
michael@0 804 NON_IDL_EVENT(gamepadbuttondown,
michael@0 805 NS_GAMEPAD_BUTTONDOWN,
michael@0 806 EventNameType_None,
michael@0 807 NS_EVENT)
michael@0 808 NON_IDL_EVENT(gamepadbuttonup,
michael@0 809 NS_GAMEPAD_BUTTONUP,
michael@0 810 EventNameType_None,
michael@0 811 NS_EVENT)
michael@0 812 NON_IDL_EVENT(gamepadaxismove,
michael@0 813 NS_GAMEPAD_AXISMOVE,
michael@0 814 EventNameType_None,
michael@0 815 NS_EVENT)
michael@0 816 NON_IDL_EVENT(gamepadconnected,
michael@0 817 NS_GAMEPAD_CONNECTED,
michael@0 818 EventNameType_None,
michael@0 819 NS_EVENT)
michael@0 820 NON_IDL_EVENT(gamepaddisconnected,
michael@0 821 NS_GAMEPAD_DISCONNECTED,
michael@0 822 EventNameType_None,
michael@0 823 NS_EVENT)
michael@0 824 #endif
michael@0 825
michael@0 826 // Simple gesture events
michael@0 827 NON_IDL_EVENT(MozSwipeGestureStart,
michael@0 828 NS_SIMPLE_GESTURE_SWIPE_START,
michael@0 829 EventNameType_None,
michael@0 830 NS_SIMPLE_GESTURE_EVENT)
michael@0 831 NON_IDL_EVENT(MozSwipeGestureUpdate,
michael@0 832 NS_SIMPLE_GESTURE_SWIPE_UPDATE,
michael@0 833 EventNameType_None,
michael@0 834 NS_SIMPLE_GESTURE_EVENT)
michael@0 835 NON_IDL_EVENT(MozSwipeGestureEnd,
michael@0 836 NS_SIMPLE_GESTURE_SWIPE_END,
michael@0 837 EventNameType_None,
michael@0 838 NS_SIMPLE_GESTURE_EVENT)
michael@0 839 NON_IDL_EVENT(MozSwipeGesture,
michael@0 840 NS_SIMPLE_GESTURE_SWIPE,
michael@0 841 EventNameType_None,
michael@0 842 NS_SIMPLE_GESTURE_EVENT)
michael@0 843 NON_IDL_EVENT(MozMagnifyGestureStart,
michael@0 844 NS_SIMPLE_GESTURE_MAGNIFY_START,
michael@0 845 EventNameType_None,
michael@0 846 NS_SIMPLE_GESTURE_EVENT)
michael@0 847 NON_IDL_EVENT(MozMagnifyGestureUpdate,
michael@0 848 NS_SIMPLE_GESTURE_MAGNIFY_UPDATE,
michael@0 849 EventNameType_None,
michael@0 850 NS_SIMPLE_GESTURE_EVENT)
michael@0 851 NON_IDL_EVENT(MozMagnifyGesture,
michael@0 852 NS_SIMPLE_GESTURE_MAGNIFY,
michael@0 853 EventNameType_None,
michael@0 854 NS_SIMPLE_GESTURE_EVENT)
michael@0 855 NON_IDL_EVENT(MozRotateGestureStart,
michael@0 856 NS_SIMPLE_GESTURE_ROTATE_START,
michael@0 857 EventNameType_None,
michael@0 858 NS_SIMPLE_GESTURE_EVENT)
michael@0 859 NON_IDL_EVENT(MozRotateGestureUpdate,
michael@0 860 NS_SIMPLE_GESTURE_ROTATE_UPDATE,
michael@0 861 EventNameType_None,
michael@0 862 NS_SIMPLE_GESTURE_EVENT)
michael@0 863 NON_IDL_EVENT(MozRotateGesture,
michael@0 864 NS_SIMPLE_GESTURE_ROTATE,
michael@0 865 EventNameType_None,
michael@0 866 NS_SIMPLE_GESTURE_EVENT)
michael@0 867 NON_IDL_EVENT(MozTapGesture,
michael@0 868 NS_SIMPLE_GESTURE_TAP,
michael@0 869 EventNameType_None,
michael@0 870 NS_SIMPLE_GESTURE_EVENT)
michael@0 871 NON_IDL_EVENT(MozPressTapGesture,
michael@0 872 NS_SIMPLE_GESTURE_PRESSTAP,
michael@0 873 EventNameType_None,
michael@0 874 NS_SIMPLE_GESTURE_EVENT)
michael@0 875 NON_IDL_EVENT(MozEdgeUIStarted,
michael@0 876 NS_SIMPLE_GESTURE_EDGE_STARTED,
michael@0 877 EventNameType_None,
michael@0 878 NS_SIMPLE_GESTURE_EVENT)
michael@0 879 NON_IDL_EVENT(MozEdgeUICanceled,
michael@0 880 NS_SIMPLE_GESTURE_EDGE_CANCELED,
michael@0 881 EventNameType_None,
michael@0 882 NS_SIMPLE_GESTURE_EVENT)
michael@0 883 NON_IDL_EVENT(MozEdgeUICompleted,
michael@0 884 NS_SIMPLE_GESTURE_EDGE_COMPLETED,
michael@0 885 EventNameType_None,
michael@0 886 NS_SIMPLE_GESTURE_EVENT)
michael@0 887
michael@0 888 NON_IDL_EVENT(transitionend,
michael@0 889 NS_TRANSITION_END,
michael@0 890 EventNameType_None,
michael@0 891 NS_TRANSITION_EVENT)
michael@0 892 NON_IDL_EVENT(animationstart,
michael@0 893 NS_ANIMATION_START,
michael@0 894 EventNameType_None,
michael@0 895 NS_ANIMATION_EVENT)
michael@0 896 NON_IDL_EVENT(animationend,
michael@0 897 NS_ANIMATION_END,
michael@0 898 EventNameType_None,
michael@0 899 NS_ANIMATION_EVENT)
michael@0 900 NON_IDL_EVENT(animationiteration,
michael@0 901 NS_ANIMATION_ITERATION,
michael@0 902 EventNameType_None,
michael@0 903 NS_ANIMATION_EVENT)
michael@0 904
michael@0 905 NON_IDL_EVENT(audioprocess,
michael@0 906 NS_AUDIO_PROCESS,
michael@0 907 EventNameType_None,
michael@0 908 NS_EVENT)
michael@0 909
michael@0 910 NON_IDL_EVENT(complete,
michael@0 911 NS_AUDIO_COMPLETE,
michael@0 912 EventNameType_None,
michael@0 913 NS_EVENT)
michael@0 914
michael@0 915 #ifdef DEFINED_FORWARDED_EVENT
michael@0 916 #undef DEFINED_FORWARDED_EVENT
michael@0 917 #undef FORWARDED_EVENT
michael@0 918 #endif /* DEFINED_FORWARDED_EVENT */
michael@0 919
michael@0 920 #ifdef DEFINED_WINDOW_EVENT
michael@0 921 #undef DEFINED_WINDOW_EVENT
michael@0 922 #undef WINDOW_EVENT
michael@0 923 #endif /* DEFINED_WINDOW_EVENT */
michael@0 924
michael@0 925 #ifdef DEFINED_WINDOW_ONLY_EVENT
michael@0 926 #undef DEFINED_WINDOW_ONLY_EVENT
michael@0 927 #undef WINDOW_ONLY_EVENT
michael@0 928 #endif /* DEFINED_WINDOW_ONLY_EVENT */
michael@0 929
michael@0 930 #ifdef DEFINED_TOUCH_EVENT
michael@0 931 #undef DEFINED_TOUCH_EVENT
michael@0 932 #undef TOUCH_EVENT
michael@0 933 #endif /* DEFINED_TOUCH_EVENT */
michael@0 934
michael@0 935 #ifdef DEFINED_DOCUMENT_ONLY_EVENT
michael@0 936 #undef DEFINED_DOCUMENT_ONLY_EVENT
michael@0 937 #undef DOCUMENT_ONLY_EVENT
michael@0 938 #endif /* DEFINED_DOCUMENT_ONLY_EVENT */
michael@0 939
michael@0 940 #ifdef DEFINED_NON_IDL_EVENT
michael@0 941 #undef DEFINED_NON_IDL_EVENT
michael@0 942 #undef NON_IDL_EVENT
michael@0 943 #endif /* DEFINED_NON_IDL_EVENT */
michael@0 944
michael@0 945 #ifdef DEFINED_ERROR_EVENT
michael@0 946 #undef DEFINED_ERROR_EVENT
michael@0 947 #undef ERROR_EVENT
michael@0 948 #endif /* DEFINED_ERROR_EVENT */
michael@0 949
michael@0 950 #ifdef DEFINED_BEFOREUNLOAD_EVENT
michael@0 951 #undef DEFINED_BEFOREUNLOAD_EVENT
michael@0 952 #undef BEFOREUNLOAD_EVENT
michael@0 953 #endif /* BEFOREUNLOAD_EVENT */
michael@0 954
michael@0 955 #ifdef ID_TO_EVENT
michael@0 956 #undef EVENT
michael@0 957 #undef WINDOW_ONLY_EVENT
michael@0 958 #undef TOUCH_EVENT
michael@0 959 #undef DOCUMENT_ONLY_EVENT
michael@0 960 #undef NON_IDL_EVENT
michael@0 961 #endif /* ID_TO_EVENT */
michael@0 962

mercurial