michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * This file contains the list of event names that are exposed via IDL michael@0: * on various objects. It is designed to be used as inline input to michael@0: * various consumers through the magic of C preprocessing. michael@0: * michael@0: * Each entry consists of 4 pieces of information: michael@0: * 1) The name of the event michael@0: * 2) The event ID (see BasicEvents.h) michael@0: * 3) The event type (see the EventNameType enum in nsContentUtils.h) michael@0: * 4) The event struct type for this event. michael@0: * Items 2-4 might be empty strings for events for which they don't make sense. michael@0: * michael@0: * Event names that are exposed as content attributes on HTML elements michael@0: * and as IDL attributes on Elements, Documents and Windows and have michael@0: * no forwarding behavior should be enclosed in the EVENT macro. michael@0: * michael@0: * Event names that are exposed as content attributes on HTML elements michael@0: * and as IDL attributes on Elements, Documents and Windows and are michael@0: * forwarded from and to the Window should be michael@0: * enclosed in the FORWARDED_EVENT macro. If this macro is not michael@0: * defined, it will be defined to be equivalent to EVENT. michael@0: * michael@0: * Event names that are exposed as IDL attributes on Windows only michael@0: * should be enclosed in the WINDOW_ONLY_EVENT macro. If this macro michael@0: * is not defined, it will be defined to the empty string. michael@0: * michael@0: * Event names that are exposed as content and IDL attributes on michael@0: * and , which forward them to the Window, and are michael@0: * exposed as IDL attributes on the Window should be enclosed in the michael@0: * WINDOW_EVENT macro. If this macro is not defined, it will be michael@0: * defined to be equivalent to WINDOW_ONLY_EVENT. michael@0: * michael@0: * Touch-specific event names should be enclosed in TOUCH_EVENT. They michael@0: * are otherwise equivalent to those enclosed in EVENT. If michael@0: * TOUCH_EVENT is not defined, it will be defined to the empty string. michael@0: * michael@0: * Event names that are only exposed as IDL attributes on Documents michael@0: * should be enclosed in the DOCUMENT_ONLY_EVENT macro. If this macro is michael@0: * not defined, it will be defined to the empty string. michael@0: * michael@0: * Event names that are not exposed as IDL attributes at all should be michael@0: * enclosed in NON_IDL_EVENT. If NON_IDL_EVENT is not defined, it michael@0: * will be defined to the empty string. michael@0: * michael@0: * If you change which macros event names are enclosed in, please michael@0: * update the tests for bug 689564 and bug 659350 as needed. michael@0: */ michael@0: michael@0: #ifdef ID_TO_EVENT michael@0: #ifdef EVENT michael@0: #error "Don't define EVENT" michael@0: #endif /* EVENT */ michael@0: #ifdef WINDOW_ONLY_EVENT michael@0: #error "Don't define WINDOW_ONLY_EVENT" michael@0: #endif /* WINDOW_ONLY_EVENT */ michael@0: #ifdef TOUCH_EVENT michael@0: #error "Don't define TOUCH_EVENT" michael@0: #endif /* TOUCH_EVENT */ michael@0: #ifdef DOCUMENT_ONLY_EVENT michael@0: #error "Don't define DOCUMENT_ONLY_EVENT" michael@0: #endif /* DOCUMENT_ONLY_EVENT */ michael@0: #ifdef NON_IDL_EVENT michael@0: #error "Don't define NON_IDL_EVENT" michael@0: #endif /* NON_IDL_EVENT */ michael@0: michael@0: #define EVENT ID_TO_EVENT michael@0: #define WINDOW_ONLY_EVENT ID_TO_EVENT michael@0: #define TOUCH_EVENT ID_TO_EVENT michael@0: #define DOCUMENT_ONLY_EVENT ID_TO_EVENT michael@0: #define NON_IDL_EVENT ID_TO_EVENT michael@0: #endif michael@0: michael@0: #ifdef DEFINED_FORWARDED_EVENT michael@0: #error "Don't define DEFINED_FORWARDED_EVENT" michael@0: #endif /* DEFINED_FORWARDED_EVENT */ michael@0: michael@0: #ifndef FORWARDED_EVENT michael@0: #define FORWARDED_EVENT EVENT michael@0: #define DEFINED_FORWARDED_EVENT michael@0: #endif /* FORWARDED_EVENT */ michael@0: michael@0: #ifdef DEFINED_WINDOW_ONLY_EVENT michael@0: #error "Don't define DEFINED_WINDOW_ONLY_EVENT" michael@0: #endif /* DEFINED_WINDOW_ONLY_EVENT */ michael@0: michael@0: #ifndef WINDOW_ONLY_EVENT michael@0: #define WINDOW_ONLY_EVENT(_name, _id, _type, _struct) michael@0: #define DEFINED_WINDOW_ONLY_EVENT michael@0: #endif /* WINDOW_ONLY_EVENT */ michael@0: michael@0: #ifdef DEFINED_WINDOW_EVENT michael@0: #error "Don't define DEFINED_WINDOW_EVENT" michael@0: #endif /* DEFINED_WINDOW_EVENT */ michael@0: michael@0: #ifndef WINDOW_EVENT michael@0: #define WINDOW_EVENT WINDOW_ONLY_EVENT michael@0: #define DEFINED_WINDOW_EVENT michael@0: #endif /* WINDOW_EVENT */ michael@0: michael@0: #ifdef DEFINED_TOUCH_EVENT michael@0: #error "Don't define DEFINED_TOUCH_EVENT" michael@0: #endif /* DEFINED_TOUCH_EVENT */ michael@0: michael@0: #ifndef TOUCH_EVENT michael@0: #define TOUCH_EVENT(_name, _id, _type, _struct) michael@0: #define DEFINED_TOUCH_EVENT michael@0: #endif /* TOUCH_EVENT */ michael@0: michael@0: #ifdef DEFINED_DOCUMENT_ONLY_EVENT michael@0: #error "Don't define DEFINED_DOCUMENT_ONLY_EVENT" michael@0: #endif /* DEFINED_DOCUMENT_ONLY_EVENT */ michael@0: michael@0: #ifndef DOCUMENT_ONLY_EVENT michael@0: #define DOCUMENT_ONLY_EVENT(_name, _id, _type, _struct) michael@0: #define DEFINED_DOCUMENT_ONLY_EVENT michael@0: #endif /* DOCUMENT_ONLY_EVENT */ michael@0: michael@0: #ifdef DEFINED_NON_IDL_EVENT michael@0: #error "Don't define DEFINED_NON_IDL_EVENT" michael@0: #endif /* DEFINED_NON_IDL_EVENT */ michael@0: michael@0: #ifndef NON_IDL_EVENT michael@0: #define NON_IDL_EVENT(_name, _id, _type, _struct) michael@0: #define DEFINED_NON_IDL_EVENT michael@0: #endif /* NON_IDL_EVENT */ michael@0: michael@0: #ifdef DEFINED_ERROR_EVENT michael@0: #error "Don't define DEFINED_ERROR_EVENT" michael@0: #endif /* DEFINED_ERROR_EVENT */ michael@0: michael@0: #ifndef ERROR_EVENT michael@0: #define ERROR_EVENT FORWARDED_EVENT michael@0: #define DEFINED_ERROR_EVENT michael@0: #endif /* ERROR_EVENT */ michael@0: michael@0: #ifdef DEFINED_BEFOREUNLOAD_EVENT michael@0: #error "Don't define DEFINED_BEFOREUNLOAD_EVENT" michael@0: #endif /* DEFINED_BEFOREUNLOAD_EVENT */ michael@0: michael@0: #ifndef BEFOREUNLOAD_EVENT michael@0: #define BEFOREUNLOAD_EVENT WINDOW_EVENT michael@0: #define DEFINED_BEFOREUNLOAD_EVENT michael@0: #endif /* BEFOREUNLOAD_EVENT */ michael@0: michael@0: EVENT(abort, michael@0: NS_IMAGE_ABORT, michael@0: EventNameType_All, michael@0: NS_EVENT) michael@0: EVENT(canplay, michael@0: NS_CANPLAY, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(canplaythrough, michael@0: NS_CANPLAYTHROUGH, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(change, michael@0: NS_FORM_CHANGE, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT ) michael@0: EVENT(click, michael@0: NS_MOUSE_CLICK, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(contextmenu, michael@0: NS_CONTEXTMENU, michael@0: EventNameType_HTMLXUL, michael@0: NS_MOUSE_EVENT) michael@0: // Not supported yet michael@0: // EVENT(cuechange) michael@0: EVENT(dblclick, michael@0: NS_MOUSE_DOUBLECLICK, michael@0: EventNameType_HTMLXUL, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(drag, michael@0: NS_DRAGDROP_DRAG, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(dragend, michael@0: NS_DRAGDROP_END, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(dragenter, michael@0: NS_DRAGDROP_ENTER, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(dragleave, michael@0: NS_DRAGDROP_LEAVE_SYNTH, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(dragover, michael@0: NS_DRAGDROP_OVER_SYNTH, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(dragstart, michael@0: NS_DRAGDROP_START, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(drop, michael@0: NS_DRAGDROP_DROP, michael@0: EventNameType_HTMLXUL, michael@0: NS_DRAG_EVENT) michael@0: EVENT(durationchange, michael@0: NS_DURATIONCHANGE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(emptied, michael@0: NS_EMPTIED, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(ended, michael@0: NS_ENDED, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(input, michael@0: NS_EDITOR_INPUT, michael@0: EventNameType_HTMLXUL, michael@0: NS_EDITOR_INPUT_EVENT) michael@0: EVENT(invalid, michael@0: NS_FORM_INVALID, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: EVENT(keydown, michael@0: NS_KEY_DOWN, michael@0: EventNameType_HTMLXUL, michael@0: NS_KEY_EVENT) michael@0: EVENT(keypress, michael@0: NS_KEY_PRESS, michael@0: EventNameType_HTMLXUL, michael@0: NS_KEY_EVENT) michael@0: EVENT(keyup, michael@0: NS_KEY_UP, michael@0: EventNameType_HTMLXUL, michael@0: NS_KEY_EVENT) michael@0: EVENT(loadeddata, michael@0: NS_LOADEDDATA, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(loadedmetadata, michael@0: NS_LOADEDMETADATA, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(loadstart, michael@0: NS_LOADSTART, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(mousedown, michael@0: NS_MOUSE_BUTTON_DOWN, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mouseenter, michael@0: NS_MOUSEENTER, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mouseleave, michael@0: NS_MOUSELEAVE, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mousemove, michael@0: NS_MOUSE_MOVE, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mouseout, michael@0: NS_MOUSE_EXIT_SYNTH, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mouseover, michael@0: NS_MOUSE_ENTER_SYNTH, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mouseup, michael@0: NS_MOUSE_BUTTON_UP, michael@0: EventNameType_All, michael@0: NS_MOUSE_EVENT) michael@0: EVENT(mozfullscreenchange, michael@0: NS_FULLSCREENCHANGE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(mozfullscreenerror, michael@0: NS_FULLSCREENERROR, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(mozpointerlockchange, michael@0: NS_POINTERLOCKCHANGE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(mozpointerlockerror, michael@0: NS_POINTERLOCKERROR, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: michael@0: EVENT(pointerdown, michael@0: NS_POINTER_DOWN, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointermove, michael@0: NS_POINTER_MOVE, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointerup, michael@0: NS_POINTER_UP, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointercancel, michael@0: NS_POINTER_CANCEL, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointerover, michael@0: NS_POINTER_OVER, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointerout, michael@0: NS_POINTER_OUT, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointerenter, michael@0: NS_POINTER_ENTER, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(pointerleave, michael@0: NS_POINTER_LEAVE, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(gotpointercapture, michael@0: NS_POINTER_GOT_CAPTURE, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: EVENT(lostpointercapture, michael@0: NS_POINTER_LOST_CAPTURE, michael@0: EventNameType_All, michael@0: NS_POINTER_EVENT) michael@0: michael@0: // Not supported yet; probably never because "wheel" is a better idea. michael@0: // EVENT(mousewheel) michael@0: EVENT(pause, michael@0: NS_PAUSE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(play, michael@0: NS_PLAY, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(playing, michael@0: NS_PLAYING, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(progress, michael@0: NS_PROGRESS, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(ratechange, michael@0: NS_RATECHANGE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(reset, michael@0: NS_FORM_RESET, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: EVENT(seeked, michael@0: NS_SEEKED, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(seeking, michael@0: NS_SEEKING, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(select, michael@0: NS_FORM_SELECTED, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: EVENT(show, michael@0: NS_SHOW_EVENT, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(stalled, michael@0: NS_STALLED, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(submit, michael@0: NS_FORM_SUBMIT, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: EVENT(suspend, michael@0: NS_SUSPEND, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(timeupdate, michael@0: NS_TIMEUPDATE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(volumechange, michael@0: NS_VOLUMECHANGE, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(waiting, michael@0: NS_WAITING, michael@0: EventNameType_HTML, michael@0: NS_EVENT) michael@0: EVENT(wheel, michael@0: NS_WHEEL_WHEEL, michael@0: EventNameType_All, michael@0: NS_WHEEL_EVENT) michael@0: EVENT(copy, michael@0: NS_COPY, michael@0: EventNameType_HTMLXUL, michael@0: NS_CLIPBOARD_EVENT) michael@0: EVENT(cut, michael@0: NS_CUT, michael@0: EventNameType_HTMLXUL, michael@0: NS_CLIPBOARD_EVENT) michael@0: EVENT(paste, michael@0: NS_PASTE, michael@0: EventNameType_HTMLXUL, michael@0: NS_CLIPBOARD_EVENT) michael@0: // Gecko-specific extensions that apply to elements michael@0: EVENT(beforescriptexecute, michael@0: NS_BEFORE_SCRIPT_EXECUTE, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: EVENT(afterscriptexecute, michael@0: NS_AFTER_SCRIPT_EXECUTE, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: michael@0: FORWARDED_EVENT(blur, michael@0: NS_BLUR_CONTENT, michael@0: EventNameType_HTMLXUL, michael@0: NS_FOCUS_EVENT) michael@0: ERROR_EVENT(error, michael@0: NS_LOAD_ERROR, michael@0: EventNameType_All, michael@0: NS_EVENT) michael@0: FORWARDED_EVENT(focus, michael@0: NS_FOCUS_CONTENT, michael@0: EventNameType_HTMLXUL, michael@0: NS_FOCUS_EVENT) michael@0: FORWARDED_EVENT(load, michael@0: NS_LOAD, michael@0: EventNameType_All, michael@0: NS_EVENT) michael@0: FORWARDED_EVENT(scroll, michael@0: NS_SCROLL_EVENT, michael@0: (EventNameType_HTMLXUL | EventNameType_SVGSVG), michael@0: NS_EVENT) michael@0: michael@0: WINDOW_EVENT(afterprint, michael@0: NS_AFTERPRINT, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(beforeprint, michael@0: NS_BEFOREPRINT, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: BEFOREUNLOAD_EVENT(beforeunload, michael@0: NS_BEFORE_PAGE_UNLOAD, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(hashchange, michael@0: NS_HASHCHANGE, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: // XXXbz Should the onmessage attribute on really not work? If so, do we michael@0: // need a different macro to flag things like that (IDL, but not content michael@0: // attributes on body/frameset), or is just using EventNameType_None enough? michael@0: WINDOW_EVENT(message, michael@0: NS_MESSAGE, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(offline, michael@0: NS_OFFLINE, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(online, michael@0: NS_ONLINE, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(pagehide, michael@0: NS_PAGE_HIDE, michael@0: EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(pageshow, michael@0: NS_PAGE_SHOW, michael@0: EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: WINDOW_EVENT(popstate, michael@0: NS_POPSTATE, michael@0: EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, michael@0: NS_EVENT) michael@0: // Not supported yet michael@0: // WINDOW_EVENT(redo) michael@0: WINDOW_EVENT(resize, michael@0: NS_RESIZE_EVENT, michael@0: (EventNameType_XUL | EventNameType_SVGSVG | michael@0: EventNameType_HTMLBodyOrFramesetOnly), michael@0: NS_EVENT) michael@0: // Not supported yet michael@0: // WINDOW_EVENT(storage) michael@0: // Not supported yet michael@0: // WINDOW_EVENT(undo) michael@0: WINDOW_EVENT(unload, michael@0: NS_PAGE_UNLOAD, michael@0: (EventNameType_XUL | EventNameType_SVGSVG | michael@0: EventNameType_HTMLBodyOrFramesetOnly), michael@0: NS_EVENT) michael@0: michael@0: WINDOW_ONLY_EVENT(devicemotion, michael@0: NS_DEVICE_MOTION, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_ONLY_EVENT(deviceorientation, michael@0: NS_DEVICE_ORIENTATION, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_ONLY_EVENT(deviceproximity, michael@0: NS_DEVICE_PROXIMITY, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_ONLY_EVENT(userproximity, michael@0: NS_USER_PROXIMITY, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_ONLY_EVENT(devicelight, michael@0: NS_DEVICE_LIGHT, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: #ifdef MOZ_B2G michael@0: WINDOW_ONLY_EVENT(moztimechange, michael@0: NS_MOZ_TIME_CHANGE_EVENT, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_ONLY_EVENT(moznetworkupload, michael@0: NS_NETWORK_UPLOAD_EVENT, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: WINDOW_ONLY_EVENT(moznetworkdownload, michael@0: NS_NETWORK_DOWNLOAD_EVENT, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: #endif // MOZ_B2G michael@0: michael@0: TOUCH_EVENT(touchstart, michael@0: NS_TOUCH_START, michael@0: EventNameType_All, michael@0: NS_TOUCH_EVENT) michael@0: TOUCH_EVENT(touchend, michael@0: NS_TOUCH_END, michael@0: EventNameType_All, michael@0: NS_TOUCH_EVENT) michael@0: TOUCH_EVENT(touchmove, michael@0: NS_TOUCH_MOVE, michael@0: EventNameType_All, michael@0: NS_TOUCH_EVENT ) michael@0: TOUCH_EVENT(touchenter, michael@0: NS_TOUCH_ENTER, michael@0: EventNameType_All, michael@0: NS_TOUCH_EVENT ) michael@0: TOUCH_EVENT(touchleave, michael@0: NS_TOUCH_LEAVE, michael@0: EventNameType_All, michael@0: NS_TOUCH_EVENT) michael@0: TOUCH_EVENT(touchcancel, michael@0: NS_TOUCH_CANCEL, michael@0: EventNameType_All, michael@0: NS_TOUCH_EVENT) michael@0: michael@0: DOCUMENT_ONLY_EVENT(readystatechange, michael@0: NS_READYSTATECHANGE, michael@0: EventNameType_HTMLXUL, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(MozMouseHittest, michael@0: NS_MOUSE_MOZHITTEST, michael@0: EventNameType_None, michael@0: NS_MOUSE_EVENT) michael@0: michael@0: NON_IDL_EVENT(DOMAttrModified, michael@0: NS_MUTATION_ATTRMODIFIED, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: NON_IDL_EVENT(DOMCharacterDataModified, michael@0: NS_MUTATION_CHARACTERDATAMODIFIED, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: NON_IDL_EVENT(DOMNodeInserted, michael@0: NS_MUTATION_NODEINSERTED, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: NON_IDL_EVENT(DOMNodeRemoved, michael@0: NS_MUTATION_NODEREMOVED, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: NON_IDL_EVENT(DOMNodeInsertedIntoDocument, michael@0: NS_MUTATION_NODEINSERTEDINTODOCUMENT, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: NON_IDL_EVENT(DOMNodeRemovedFromDocument, michael@0: NS_MUTATION_NODEREMOVEDFROMDOCUMENT, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: NON_IDL_EVENT(DOMSubtreeModified, michael@0: NS_MUTATION_SUBTREEMODIFIED, michael@0: EventNameType_HTMLXUL, michael@0: NS_MUTATION_EVENT) michael@0: michael@0: NON_IDL_EVENT(DOMActivate, michael@0: NS_UI_ACTIVATE, michael@0: EventNameType_HTMLXUL, michael@0: NS_UI_EVENT) michael@0: NON_IDL_EVENT(DOMFocusIn, michael@0: NS_UI_FOCUSIN, michael@0: EventNameType_HTMLXUL, michael@0: NS_UI_EVENT) michael@0: NON_IDL_EVENT(DOMFocusOut, michael@0: NS_UI_FOCUSOUT, michael@0: EventNameType_HTMLXUL, michael@0: NS_UI_EVENT) michael@0: michael@0: NON_IDL_EVENT(DOMMouseScroll, michael@0: NS_MOUSE_SCROLL, michael@0: EventNameType_HTMLXUL, michael@0: NS_MOUSE_SCROLL_EVENT) michael@0: NON_IDL_EVENT(MozMousePixelScroll, michael@0: NS_MOUSE_PIXEL_SCROLL, michael@0: EventNameType_HTMLXUL, michael@0: NS_MOUSE_SCROLL_EVENT) michael@0: michael@0: NON_IDL_EVENT(open, michael@0: NS_OPEN, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(dataavailable, michael@0: NS_MEDIARECORDER_DATAAVAILABLE, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(stop, michael@0: NS_MEDIARECORDER_STOP, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(warning, michael@0: NS_MEDIARECORDER_WARNING, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(speakerforcedchange, michael@0: NS_SPEAKERMANAGER_SPEAKERFORCEDCHANGE, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: // Events that only have on* attributes on XUL elements michael@0: NON_IDL_EVENT(text, michael@0: NS_TEXT_TEXT, michael@0: EventNameType_XUL, michael@0: NS_TEXT_EVENT) michael@0: NON_IDL_EVENT(compositionstart, michael@0: NS_COMPOSITION_START, michael@0: EventNameType_XUL, michael@0: NS_COMPOSITION_EVENT) michael@0: NON_IDL_EVENT(compositionupdate, michael@0: NS_COMPOSITION_UPDATE, michael@0: EventNameType_XUL, michael@0: NS_COMPOSITION_EVENT) michael@0: NON_IDL_EVENT(compositionend, michael@0: NS_COMPOSITION_END, michael@0: EventNameType_XUL, michael@0: NS_COMPOSITION_EVENT) michael@0: NON_IDL_EVENT(command, michael@0: NS_XUL_COMMAND, michael@0: EventNameType_XUL, michael@0: NS_INPUT_EVENT) michael@0: NON_IDL_EVENT(close, michael@0: NS_XUL_CLOSE, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(popupshowing, michael@0: NS_XUL_POPUP_SHOWING, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(popupshown, michael@0: NS_XUL_POPUP_SHOWN, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(popuphiding, michael@0: NS_XUL_POPUP_HIDING, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(popuphidden, michael@0: NS_XUL_POPUP_HIDDEN, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(broadcast, michael@0: NS_XUL_BROADCAST, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(commandupdate, michael@0: NS_XUL_COMMAND_UPDATE, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(dragexit, michael@0: NS_DRAGDROP_EXIT_SYNTH, michael@0: EventNameType_XUL, michael@0: NS_DRAG_EVENT) michael@0: NON_IDL_EVENT(dragdrop, michael@0: NS_DRAGDROP_DRAGDROP, michael@0: EventNameType_XUL, michael@0: NS_DRAG_EVENT) michael@0: NON_IDL_EVENT(draggesture, michael@0: NS_DRAGDROP_GESTURE, michael@0: EventNameType_XUL, michael@0: NS_DRAG_EVENT) michael@0: NON_IDL_EVENT(overflow, michael@0: NS_SCROLLPORT_OVERFLOW, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(underflow, michael@0: NS_SCROLLPORT_UNDERFLOW, michael@0: EventNameType_XUL, michael@0: NS_EVENT) michael@0: michael@0: // Various SVG events michael@0: NON_IDL_EVENT(SVGLoad, michael@0: NS_SVG_LOAD, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(SVGUnload, michael@0: NS_SVG_UNLOAD, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(SVGResize, michael@0: NS_SVG_RESIZE, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(SVGScroll, michael@0: NS_SVG_SCROLL, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(SVGZoom, michael@0: NS_SVG_ZOOM, michael@0: EventNameType_None, michael@0: NS_SVGZOOM_EVENT) michael@0: michael@0: // Only map the ID to the real event name when ID_TO_EVENT is defined. michael@0: #ifndef ID_TO_EVENT michael@0: // This is a bit hackish, but SVG's event names are weird. michael@0: NON_IDL_EVENT(zoom, michael@0: NS_SVG_ZOOM, michael@0: EventNameType_SVGSVG, michael@0: NS_EVENT) michael@0: #endif michael@0: // Only map the ID to the real event name when ID_TO_EVENT is defined. michael@0: #ifndef ID_TO_EVENT michael@0: NON_IDL_EVENT(begin, michael@0: NS_SMIL_BEGIN, michael@0: EventNameType_SMIL, michael@0: NS_EVENT) michael@0: #endif michael@0: NON_IDL_EVENT(beginEvent, michael@0: NS_SMIL_BEGIN, michael@0: EventNameType_None, michael@0: NS_SMIL_TIME_EVENT) michael@0: // Only map the ID to the real event name when ID_TO_EVENT is defined. michael@0: #ifndef ID_TO_EVENT michael@0: NON_IDL_EVENT(end, michael@0: NS_SMIL_END, michael@0: EventNameType_SMIL, michael@0: NS_EVENT) michael@0: #endif michael@0: NON_IDL_EVENT(endEvent, michael@0: NS_SMIL_END, michael@0: EventNameType_None, michael@0: NS_SMIL_TIME_EVENT) michael@0: // Only map the ID to the real event name when ID_TO_EVENT is defined. michael@0: #ifndef ID_TO_EVENT michael@0: NON_IDL_EVENT(repeat, michael@0: NS_SMIL_REPEAT, michael@0: EventNameType_SMIL, michael@0: NS_EVENT) michael@0: #endif michael@0: NON_IDL_EVENT(repeatEvent, michael@0: NS_SMIL_REPEAT, michael@0: EventNameType_None, michael@0: NS_SMIL_TIME_EVENT) michael@0: michael@0: NON_IDL_EVENT(MozAfterPaint, michael@0: NS_AFTERPAINT, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(MozScrolledAreaChanged, michael@0: NS_SCROLLEDAREACHANGED, michael@0: EventNameType_None, michael@0: NS_SCROLLAREA_EVENT) michael@0: michael@0: #ifdef MOZ_GAMEPAD michael@0: NON_IDL_EVENT(gamepadbuttondown, michael@0: NS_GAMEPAD_BUTTONDOWN, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(gamepadbuttonup, michael@0: NS_GAMEPAD_BUTTONUP, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(gamepadaxismove, michael@0: NS_GAMEPAD_AXISMOVE, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(gamepadconnected, michael@0: NS_GAMEPAD_CONNECTED, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: NON_IDL_EVENT(gamepaddisconnected, michael@0: NS_GAMEPAD_DISCONNECTED, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: #endif michael@0: michael@0: // Simple gesture events michael@0: NON_IDL_EVENT(MozSwipeGestureStart, michael@0: NS_SIMPLE_GESTURE_SWIPE_START, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozSwipeGestureUpdate, michael@0: NS_SIMPLE_GESTURE_SWIPE_UPDATE, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozSwipeGestureEnd, michael@0: NS_SIMPLE_GESTURE_SWIPE_END, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozSwipeGesture, michael@0: NS_SIMPLE_GESTURE_SWIPE, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozMagnifyGestureStart, michael@0: NS_SIMPLE_GESTURE_MAGNIFY_START, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozMagnifyGestureUpdate, michael@0: NS_SIMPLE_GESTURE_MAGNIFY_UPDATE, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozMagnifyGesture, michael@0: NS_SIMPLE_GESTURE_MAGNIFY, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozRotateGestureStart, michael@0: NS_SIMPLE_GESTURE_ROTATE_START, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozRotateGestureUpdate, michael@0: NS_SIMPLE_GESTURE_ROTATE_UPDATE, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozRotateGesture, michael@0: NS_SIMPLE_GESTURE_ROTATE, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozTapGesture, michael@0: NS_SIMPLE_GESTURE_TAP, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozPressTapGesture, michael@0: NS_SIMPLE_GESTURE_PRESSTAP, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozEdgeUIStarted, michael@0: NS_SIMPLE_GESTURE_EDGE_STARTED, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozEdgeUICanceled, michael@0: NS_SIMPLE_GESTURE_EDGE_CANCELED, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: NON_IDL_EVENT(MozEdgeUICompleted, michael@0: NS_SIMPLE_GESTURE_EDGE_COMPLETED, michael@0: EventNameType_None, michael@0: NS_SIMPLE_GESTURE_EVENT) michael@0: michael@0: NON_IDL_EVENT(transitionend, michael@0: NS_TRANSITION_END, michael@0: EventNameType_None, michael@0: NS_TRANSITION_EVENT) michael@0: NON_IDL_EVENT(animationstart, michael@0: NS_ANIMATION_START, michael@0: EventNameType_None, michael@0: NS_ANIMATION_EVENT) michael@0: NON_IDL_EVENT(animationend, michael@0: NS_ANIMATION_END, michael@0: EventNameType_None, michael@0: NS_ANIMATION_EVENT) michael@0: NON_IDL_EVENT(animationiteration, michael@0: NS_ANIMATION_ITERATION, michael@0: EventNameType_None, michael@0: NS_ANIMATION_EVENT) michael@0: michael@0: NON_IDL_EVENT(audioprocess, michael@0: NS_AUDIO_PROCESS, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: NON_IDL_EVENT(complete, michael@0: NS_AUDIO_COMPLETE, michael@0: EventNameType_None, michael@0: NS_EVENT) michael@0: michael@0: #ifdef DEFINED_FORWARDED_EVENT michael@0: #undef DEFINED_FORWARDED_EVENT michael@0: #undef FORWARDED_EVENT michael@0: #endif /* DEFINED_FORWARDED_EVENT */ michael@0: michael@0: #ifdef DEFINED_WINDOW_EVENT michael@0: #undef DEFINED_WINDOW_EVENT michael@0: #undef WINDOW_EVENT michael@0: #endif /* DEFINED_WINDOW_EVENT */ michael@0: michael@0: #ifdef DEFINED_WINDOW_ONLY_EVENT michael@0: #undef DEFINED_WINDOW_ONLY_EVENT michael@0: #undef WINDOW_ONLY_EVENT michael@0: #endif /* DEFINED_WINDOW_ONLY_EVENT */ michael@0: michael@0: #ifdef DEFINED_TOUCH_EVENT michael@0: #undef DEFINED_TOUCH_EVENT michael@0: #undef TOUCH_EVENT michael@0: #endif /* DEFINED_TOUCH_EVENT */ michael@0: michael@0: #ifdef DEFINED_DOCUMENT_ONLY_EVENT michael@0: #undef DEFINED_DOCUMENT_ONLY_EVENT michael@0: #undef DOCUMENT_ONLY_EVENT michael@0: #endif /* DEFINED_DOCUMENT_ONLY_EVENT */ michael@0: michael@0: #ifdef DEFINED_NON_IDL_EVENT michael@0: #undef DEFINED_NON_IDL_EVENT michael@0: #undef NON_IDL_EVENT michael@0: #endif /* DEFINED_NON_IDL_EVENT */ michael@0: michael@0: #ifdef DEFINED_ERROR_EVENT michael@0: #undef DEFINED_ERROR_EVENT michael@0: #undef ERROR_EVENT michael@0: #endif /* DEFINED_ERROR_EVENT */ michael@0: michael@0: #ifdef DEFINED_BEFOREUNLOAD_EVENT michael@0: #undef DEFINED_BEFOREUNLOAD_EVENT michael@0: #undef BEFOREUNLOAD_EVENT michael@0: #endif /* BEFOREUNLOAD_EVENT */ michael@0: michael@0: #ifdef ID_TO_EVENT michael@0: #undef EVENT michael@0: #undef WINDOW_ONLY_EVENT michael@0: #undef TOUCH_EVENT michael@0: #undef DOCUMENT_ONLY_EVENT michael@0: #undef NON_IDL_EVENT michael@0: #endif /* ID_TO_EVENT */ michael@0: