2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-08-08 06:26:52 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This file contains the list of event names that are exposed via IDL
|
|
|
|
* on various objects. It is designed to be used as inline input to
|
|
|
|
* various consumers through the magic of C preprocessing.
|
|
|
|
*
|
2011-08-08 06:30:17 +04:00
|
|
|
* Each entry consists of 4 pieces of information:
|
|
|
|
* 1) The name of the event
|
2015-08-26 15:56:59 +03:00
|
|
|
* 2) The event message
|
2011-08-08 06:30:17 +04:00
|
|
|
* 3) The event type (see the EventNameType enum in nsContentUtils.h)
|
|
|
|
* 4) The event struct type for this event.
|
|
|
|
* Items 2-4 might be empty strings for events for which they don't make sense.
|
2011-08-08 06:26:52 +04:00
|
|
|
*
|
|
|
|
* Event names that are exposed as content attributes on HTML elements
|
|
|
|
* and as IDL attributes on Elements, Documents and Windows and have
|
|
|
|
* no forwarding behavior should be enclosed in the EVENT macro.
|
|
|
|
*
|
|
|
|
* Event names that are exposed as content attributes on HTML elements
|
|
|
|
* and as IDL attributes on Elements, Documents and Windows and are
|
|
|
|
* forwarded from <body> and <frameset> to the Window should be
|
|
|
|
* enclosed in the FORWARDED_EVENT macro. If this macro is not
|
|
|
|
* defined, it will be defined to be equivalent to EVENT.
|
|
|
|
*
|
2011-08-08 06:27:01 +04:00
|
|
|
* Event names that are exposed as IDL attributes on Windows only
|
|
|
|
* should be enclosed in the WINDOW_ONLY_EVENT macro. If this macro
|
|
|
|
* is not defined, it will be defined to the empty string.
|
|
|
|
*
|
2011-08-08 06:26:52 +04:00
|
|
|
* Event names that are exposed as content and IDL attributes on
|
|
|
|
* <body> and <frameset>, which forward them to the Window, and are
|
|
|
|
* exposed as IDL attributes on the Window should be enclosed in the
|
|
|
|
* WINDOW_EVENT macro. If this macro is not defined, it will be
|
2011-08-08 06:27:01 +04:00
|
|
|
* defined to be equivalent to WINDOW_ONLY_EVENT.
|
|
|
|
*
|
|
|
|
* Touch-specific event names should be enclosed in TOUCH_EVENT. They
|
|
|
|
* are otherwise equivalent to those enclosed in EVENT. If
|
|
|
|
* TOUCH_EVENT is not defined, it will be defined to the empty string.
|
2011-08-08 06:30:17 +04:00
|
|
|
*
|
2011-09-20 06:56:45 +04:00
|
|
|
* Event names that are only exposed as IDL attributes on Documents
|
|
|
|
* should be enclosed in the DOCUMENT_ONLY_EVENT macro. If this macro is
|
|
|
|
* not defined, it will be defined to the empty string.
|
|
|
|
*
|
2011-08-08 06:30:17 +04:00
|
|
|
* Event names that are not exposed as IDL attributes at all should be
|
|
|
|
* enclosed in NON_IDL_EVENT. If NON_IDL_EVENT is not defined, it
|
|
|
|
* will be defined to the empty string.
|
2011-09-28 19:54:50 +04:00
|
|
|
*
|
|
|
|
* If you change which macros event names are enclosed in, please
|
|
|
|
* update the tests for bug 689564 and bug 659350 as needed.
|
2011-08-08 06:26:52 +04:00
|
|
|
*/
|
|
|
|
|
2015-08-26 15:56:59 +03:00
|
|
|
#ifdef MESSAGE_TO_EVENT
|
2012-08-29 15:24:41 +04:00
|
|
|
# ifdef EVENT
|
|
|
|
# error "Don't define EVENT"
|
|
|
|
# endif /* EVENT */
|
|
|
|
# ifdef WINDOW_ONLY_EVENT
|
|
|
|
# error "Don't define WINDOW_ONLY_EVENT"
|
|
|
|
# endif /* WINDOW_ONLY_EVENT */
|
|
|
|
# ifdef TOUCH_EVENT
|
|
|
|
# error "Don't define TOUCH_EVENT"
|
|
|
|
# endif /* TOUCH_EVENT */
|
|
|
|
# ifdef DOCUMENT_ONLY_EVENT
|
|
|
|
# error "Don't define DOCUMENT_ONLY_EVENT"
|
|
|
|
# endif /* DOCUMENT_ONLY_EVENT */
|
|
|
|
# ifdef NON_IDL_EVENT
|
|
|
|
# error "Don't define NON_IDL_EVENT"
|
|
|
|
# endif /* NON_IDL_EVENT */
|
2019-01-18 12:16:18 +03:00
|
|
|
|
2015-08-26 15:56:59 +03:00
|
|
|
# define EVENT MESSAGE_TO_EVENT
|
|
|
|
# define WINDOW_ONLY_EVENT MESSAGE_TO_EVENT
|
|
|
|
# define TOUCH_EVENT MESSAGE_TO_EVENT
|
|
|
|
# define DOCUMENT_ONLY_EVENT MESSAGE_TO_EVENT
|
|
|
|
# define NON_IDL_EVENT MESSAGE_TO_EVENT
|
2016-08-05 02:12:14 +03:00
|
|
|
#endif /* MESSAGE_TO_EVENT */
|
2012-08-29 15:24:41 +04:00
|
|
|
|
2011-08-08 06:26:52 +04:00
|
|
|
#ifdef DEFINED_FORWARDED_EVENT
|
|
|
|
# error "Don't define DEFINED_FORWARDED_EVENT"
|
|
|
|
#endif /* DEFINED_FORWARDED_EVENT */
|
|
|
|
|
|
|
|
#ifndef FORWARDED_EVENT
|
2011-08-08 06:30:17 +04:00
|
|
|
# define FORWARDED_EVENT EVENT
|
2011-08-08 06:26:52 +04:00
|
|
|
# define DEFINED_FORWARDED_EVENT
|
|
|
|
#endif /* FORWARDED_EVENT */
|
|
|
|
|
2011-08-08 06:27:01 +04:00
|
|
|
#ifdef DEFINED_WINDOW_ONLY_EVENT
|
|
|
|
# error "Don't define DEFINED_WINDOW_ONLY_EVENT"
|
|
|
|
#endif /* DEFINED_WINDOW_ONLY_EVENT */
|
|
|
|
|
|
|
|
#ifndef WINDOW_ONLY_EVENT
|
2015-08-26 15:56:59 +03:00
|
|
|
# define WINDOW_ONLY_EVENT(_name, _message, _type, _struct)
|
2011-08-08 06:27:01 +04:00
|
|
|
# define DEFINED_WINDOW_ONLY_EVENT
|
|
|
|
#endif /* WINDOW_ONLY_EVENT */
|
|
|
|
|
2011-08-08 06:26:52 +04:00
|
|
|
#ifdef DEFINED_WINDOW_EVENT
|
|
|
|
# error "Don't define DEFINED_WINDOW_EVENT"
|
|
|
|
#endif /* DEFINED_WINDOW_EVENT */
|
|
|
|
|
|
|
|
#ifndef WINDOW_EVENT
|
2011-08-08 06:30:17 +04:00
|
|
|
# define WINDOW_EVENT WINDOW_ONLY_EVENT
|
2011-08-08 06:26:52 +04:00
|
|
|
# define DEFINED_WINDOW_EVENT
|
|
|
|
#endif /* WINDOW_EVENT */
|
|
|
|
|
2011-08-08 06:27:01 +04:00
|
|
|
#ifdef DEFINED_TOUCH_EVENT
|
|
|
|
# error "Don't define DEFINED_TOUCH_EVENT"
|
|
|
|
#endif /* DEFINED_TOUCH_EVENT */
|
|
|
|
|
|
|
|
#ifndef TOUCH_EVENT
|
2015-08-26 15:56:59 +03:00
|
|
|
# define TOUCH_EVENT(_name, _message, _type, _struct)
|
2011-08-08 06:27:01 +04:00
|
|
|
# define DEFINED_TOUCH_EVENT
|
|
|
|
#endif /* TOUCH_EVENT */
|
|
|
|
|
2011-09-20 06:56:45 +04:00
|
|
|
#ifdef DEFINED_DOCUMENT_ONLY_EVENT
|
|
|
|
# error "Don't define DEFINED_DOCUMENT_ONLY_EVENT"
|
|
|
|
#endif /* DEFINED_DOCUMENT_ONLY_EVENT */
|
|
|
|
|
|
|
|
#ifndef DOCUMENT_ONLY_EVENT
|
2015-08-26 15:56:59 +03:00
|
|
|
# define DOCUMENT_ONLY_EVENT(_name, _message, _type, _struct)
|
2011-09-20 06:56:45 +04:00
|
|
|
# define DEFINED_DOCUMENT_ONLY_EVENT
|
|
|
|
#endif /* DOCUMENT_ONLY_EVENT */
|
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
#ifdef DEFINED_NON_IDL_EVENT
|
|
|
|
# error "Don't define DEFINED_NON_IDL_EVENT"
|
|
|
|
#endif /* DEFINED_NON_IDL_EVENT */
|
|
|
|
|
|
|
|
#ifndef NON_IDL_EVENT
|
2015-08-26 15:56:59 +03:00
|
|
|
# define NON_IDL_EVENT(_name, _message, _type, _struct)
|
2011-08-08 06:30:17 +04:00
|
|
|
# define DEFINED_NON_IDL_EVENT
|
|
|
|
#endif /* NON_IDL_EVENT */
|
|
|
|
|
2012-11-09 20:00:24 +04:00
|
|
|
#ifdef DEFINED_ERROR_EVENT
|
|
|
|
# error "Don't define DEFINED_ERROR_EVENT"
|
|
|
|
#endif /* DEFINED_ERROR_EVENT */
|
|
|
|
|
|
|
|
#ifndef ERROR_EVENT
|
|
|
|
# define ERROR_EVENT FORWARDED_EVENT
|
|
|
|
# define DEFINED_ERROR_EVENT
|
|
|
|
#endif /* ERROR_EVENT */
|
|
|
|
|
|
|
|
#ifdef DEFINED_BEFOREUNLOAD_EVENT
|
|
|
|
# error "Don't define DEFINED_BEFOREUNLOAD_EVENT"
|
|
|
|
#endif /* DEFINED_BEFOREUNLOAD_EVENT */
|
|
|
|
|
|
|
|
#ifndef BEFOREUNLOAD_EVENT
|
|
|
|
# define BEFOREUNLOAD_EVENT WINDOW_EVENT
|
|
|
|
# define DEFINED_BEFOREUNLOAD_EVENT
|
|
|
|
#endif /* BEFOREUNLOAD_EVENT */
|
|
|
|
|
2014-02-18 23:57:42 +04:00
|
|
|
EVENT(abort, eImageAbort, EventNameType_All, eBasicEventClass)
|
2018-11-08 17:46:45 +03:00
|
|
|
EVENT(bounce, eMarqueeBounce, EventNameType_HTMLMarqueeOnly, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(canplay, eCanPlay, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(canplaythrough, eCanPlayThrough, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(change, eFormChange, EventNameType_HTMLXUL, eBasicEventClass)
|
2017-06-17 06:42:05 +03:00
|
|
|
EVENT(CheckboxStateChange, eFormCheckboxStateChange, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
|
|
|
EVENT(RadioStateChange, eFormRadioStateChange, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
2016-12-01 03:48:02 +03:00
|
|
|
EVENT(auxclick, eMouseAuxClick, EventNameType_All, eMouseEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(click, eMouseClick, EventNameType_All, eMouseEventClass)
|
2017-07-12 00:49:24 +03:00
|
|
|
EVENT(close, eClose, EventNameType_HTMLXUL, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(contextmenu, eContextMenu, EventNameType_HTMLXUL, eMouseEventClass)
|
2016-10-07 22:10:39 +03:00
|
|
|
NON_IDL_EVENT(mouselongtap, eMouseLongTap, EventNameType_HTMLXUL,
|
|
|
|
eMouseEventClass)
|
2019-05-07 14:21:29 +03:00
|
|
|
EVENT(cuechange, eCueChange, EventNameType_All, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(dblclick, eMouseDoubleClick, EventNameType_HTMLXUL, eMouseEventClass)
|
|
|
|
EVENT(drag, eDrag, EventNameType_HTMLXUL, eDragEventClass)
|
|
|
|
EVENT(dragend, eDragEnd, EventNameType_HTMLXUL, eDragEventClass)
|
|
|
|
EVENT(dragenter, eDragEnter, EventNameType_HTMLXUL, eDragEventClass)
|
2016-08-03 14:45:46 +03:00
|
|
|
EVENT(dragexit, eDragExit, EventNameType_HTMLXUL, eDragEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(dragleave, eDragLeave, EventNameType_HTMLXUL, eDragEventClass)
|
|
|
|
EVENT(dragover, eDragOver, EventNameType_HTMLXUL, eDragEventClass)
|
|
|
|
EVENT(dragstart, eDragStart, EventNameType_HTMLXUL, eDragEventClass)
|
|
|
|
EVENT(drop, eDrop, EventNameType_HTMLXUL, eDragEventClass)
|
|
|
|
EVENT(durationchange, eDurationChange, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(emptied, eEmptied, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(ended, eEnded, EventNameType_HTML, eBasicEventClass)
|
2018-11-08 17:46:45 +03:00
|
|
|
EVENT(finish, eMarqueeFinish, EventNameType_HTMLMarqueeOnly, eBasicEventClass)
|
2019-09-09 16:53:25 +03:00
|
|
|
EVENT(formdata, eFormData, EventNameType_HTML, eBasicEventClass)
|
2016-02-17 03:47:11 +03:00
|
|
|
EVENT(fullscreenchange, eFullscreenChange, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(fullscreenerror, eFullscreenError, EventNameType_HTML, eBasicEventClass)
|
2020-01-14 10:15:45 +03:00
|
|
|
EVENT(beforeinput, eEditorBeforeInput, EventNameType_HTMLXUL,
|
|
|
|
eEditorInputEventClass)
|
2014-08-04 09:28:49 +04:00
|
|
|
EVENT(input, eEditorInput, EventNameType_HTMLXUL, eEditorInputEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(invalid, eFormInvalid, EventNameType_HTMLXUL, eBasicEventClass)
|
|
|
|
EVENT(keydown, eKeyDown, EventNameType_HTMLXUL, eKeyboardEventClass)
|
|
|
|
EVENT(keypress, eKeyPress, EventNameType_HTMLXUL, eKeyboardEventClass)
|
|
|
|
EVENT(keyup, eKeyUp, EventNameType_HTMLXUL, eKeyboardEventClass)
|
|
|
|
EVENT(mozkeydownonplugin, eKeyDownOnPlugin, EventNameType_None,
|
2014-08-04 09:28:48 +04:00
|
|
|
eKeyboardEventClass)
|
2016-04-22 19:22:49 +03:00
|
|
|
EVENT(mozkeyuponplugin, eKeyUpOnPlugin, EventNameType_None, eKeyboardEventClass)
|
2016-05-11 15:56:42 +03:00
|
|
|
NON_IDL_EVENT(mozaccesskeynotfound, eAccessKeyNotFound, EventNameType_None,
|
|
|
|
eKeyboardEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(loadeddata, eLoadedData, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(loadedmetadata, eLoadedMetaData, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(loadend, eLoadEnd, EventNameType_HTML, eBasicEventClass)
|
2016-08-16 07:01:12 +03:00
|
|
|
EVENT(loadstart, eLoadStart, EventNameType_HTML, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(mousedown, eMouseDown, EventNameType_All, eMouseEventClass)
|
|
|
|
EVENT(mouseenter, eMouseEnter, EventNameType_All, eMouseEventClass)
|
2014-08-04 09:28:50 +04:00
|
|
|
EVENT(mouseleave, eMouseLeave, EventNameType_All, eMouseEventClass)
|
2011-09-18 11:45:14 +04:00
|
|
|
EVENT(mousemove, eMouseMove, EventNameType_All, eMouseEventClass)
|
2014-08-04 09:28:50 +04:00
|
|
|
EVENT(mouseout, eMouseOut, EventNameType_All, eMouseEventClass)
|
2011-09-18 11:45:14 +04:00
|
|
|
EVENT(mouseover, eMouseOver, EventNameType_All, eMouseEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(mouseup, eMouseUp, EventNameType_All, eMouseEventClass)
|
|
|
|
EVENT(mozfullscreenchange, eMozFullscreenChange, EventNameType_HTML,
|
2014-08-04 09:28:50 +04:00
|
|
|
eBasicEventClass)
|
2011-11-02 04:02:47 +04:00
|
|
|
EVENT(mozfullscreenerror, eMozFullscreenError, EventNameType_HTML,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2012-04-12 01:55:21 +04:00
|
|
|
EVENT(mozpointerlockchange, eMozPointerLockChange, EventNameType_HTML,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2012-04-12 01:55:21 +04:00
|
|
|
EVENT(mozpointerlockerror, eMozPointerLockError, EventNameType_HTML,
|
2016-07-28 10:15:21 +03:00
|
|
|
eBasicEventClass)
|
|
|
|
EVENT(pointerlockchange, ePointerLockChange, EventNameType_HTML,
|
|
|
|
eBasicEventClass)
|
|
|
|
EVENT(pointerlockerror, ePointerLockError, EventNameType_HTML, eBasicEventClass)
|
2013-11-21 09:44:22 +04:00
|
|
|
EVENT(pointerdown, ePointerDown, EventNameType_All, ePointerEventClass)
|
|
|
|
EVENT(pointermove, ePointerMove, EventNameType_All, ePointerEventClass)
|
2014-08-04 09:28:52 +04:00
|
|
|
EVENT(pointerup, ePointerUp, EventNameType_All, ePointerEventClass)
|
2013-11-21 09:44:22 +04:00
|
|
|
EVENT(pointercancel, ePointerCancel, EventNameType_All, ePointerEventClass)
|
2015-08-31 18:20:05 +03:00
|
|
|
EVENT(pointerover, ePointerOver, EventNameType_All, ePointerEventClass)
|
2013-11-21 09:44:22 +04:00
|
|
|
EVENT(pointerout, ePointerOut, EventNameType_All, ePointerEventClass)
|
2014-08-04 09:28:52 +04:00
|
|
|
EVENT(pointerenter, ePointerEnter, EventNameType_All, ePointerEventClass)
|
|
|
|
EVENT(pointerleave, ePointerLeave, EventNameType_All, ePointerEventClass)
|
2013-11-21 09:44:22 +04:00
|
|
|
EVENT(gotpointercapture, ePointerGotCapture, EventNameType_All,
|
2014-08-04 09:28:52 +04:00
|
|
|
ePointerEventClass)
|
2013-11-21 09:44:22 +04:00
|
|
|
EVENT(lostpointercapture, ePointerLostCapture, EventNameType_All,
|
2014-08-04 09:28:52 +04:00
|
|
|
ePointerEventClass)
|
2015-08-12 20:26:01 +03:00
|
|
|
EVENT(selectstart, eSelectStart, EventNameType_HTMLXUL, eBasicEventClass)
|
2013-11-21 09:44:22 +04:00
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
// Not supported yet; probably never because "wheel" is a better idea.
|
|
|
|
// EVENT(mousewheel)
|
|
|
|
EVENT(pause, ePause, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(play, ePlay, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(playing, ePlaying, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(progress, eProgress, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(ratechange, eRateChange, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(reset, eFormReset, EventNameType_HTMLXUL, eBasicEventClass)
|
|
|
|
EVENT(seeked, eSeeked, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(seeking, eSeeking, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(select, eFormSelect, EventNameType_HTMLXUL, eBasicEventClass)
|
2011-08-08 21:31:32 +04:00
|
|
|
EVENT(show, eShow, EventNameType_HTML, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(stalled, eStalled, EventNameType_HTML, eBasicEventClass)
|
2018-11-08 17:46:45 +03:00
|
|
|
EVENT(start, eMarqueeStart, EventNameType_HTMLMarqueeOnly, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(submit, eFormSubmit, EventNameType_HTMLXUL, eBasicEventClass)
|
|
|
|
EVENT(suspend, eSuspend, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(timeupdate, eTimeUpdate, EventNameType_HTML, eBasicEventClass)
|
2016-03-12 14:53:51 +03:00
|
|
|
EVENT(toggle, eToggle, EventNameType_HTML, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(volumechange, eVolumeChange, EventNameType_HTML, eBasicEventClass)
|
|
|
|
EVENT(waiting, eWaiting, EventNameType_HTML, eBasicEventClass)
|
2012-08-16 03:09:42 +04:00
|
|
|
EVENT(wheel, eWheel, EventNameType_All, eWheelEventClass)
|
2019-07-31 01:45:54 +03:00
|
|
|
EVENT(copy, eCopy, EventNameType_HTMLXUL | EventNameType_SVGGraphic,
|
|
|
|
eClipboardEventClass)
|
|
|
|
EVENT(cut, eCut, EventNameType_HTMLXUL | EventNameType_SVGGraphic,
|
|
|
|
eClipboardEventClass)
|
|
|
|
EVENT(paste, ePaste, EventNameType_HTMLXUL | EventNameType_SVGGraphic,
|
|
|
|
eClipboardEventClass)
|
2013-03-11 19:49:48 +04:00
|
|
|
// Gecko-specific extensions that apply to elements
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(beforescriptexecute, eBeforeScriptExecute, EventNameType_HTMLXUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(afterscriptexecute, eAfterScriptExecute, EventNameType_HTMLXUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
FORWARDED_EVENT(blur, eBlur, EventNameType_HTMLXUL, eFocusEventClass)
|
2012-11-09 20:00:24 +04:00
|
|
|
ERROR_EVENT(error, eLoadError, EventNameType_All, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
FORWARDED_EVENT(focus, eFocus, EventNameType_HTMLXUL, eFocusEventClass)
|
2016-10-07 04:39:53 +03:00
|
|
|
FORWARDED_EVENT(focusin, eFocusIn, EventNameType_HTMLXUL, eFocusEventClass)
|
|
|
|
FORWARDED_EVENT(focusout, eFocusOut, EventNameType_HTMLXUL, eFocusEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
FORWARDED_EVENT(load, eLoad, EventNameType_All, eBasicEventClass)
|
2014-12-04 19:26:00 +03:00
|
|
|
FORWARDED_EVENT(resize, eResize, EventNameType_All, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
FORWARDED_EVENT(scroll, eScroll, (EventNameType_HTMLXUL | EventNameType_SVGSVG),
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
Bug 1478776 - Part 10: Add internal VisualViewport resize/scroll events. r=botond,nika
The VisualViewport events are all nice and shiny, but unfortunately not quite
what is needed for the session store.
Firstly, the spec wants the "scroll" event to be fired only when the *relative*
offset between visual and layout viewport changes. The session store however
records the absolute offset and as such is interested in when *that* changes.
Secondly, again as per the spec the events don't bubble, and with the default
DOMEventTargetHelper implementation they don't escape the VisualViewport during
capturing, either. This means that any event listener must be added directly on
the VisualViewport itself in order to capture any events.
This might have been intended because the events use the same names as the
normal "scroll"/"resize" events, and as such you cannot specify separate event
listeners for VisualViewport and non-VisualViewport "scroll" events if both
events end up being dispatched to the same element (you can only try to filter
after the fact by looking at the originalTarget of the event).
At the same time, the VisualViewport is attached to the inner Window, and so
each time you navigate, you also get a different VisualViewport object.
All of this might be totally fine from the perspective of a page script, because
in that case you won't care anyway about what happens when the current page goes
away.
From the session store perspective on the other hand (especially Fennec's non-
e10s session store design), this is rather unfortunate because we don't want to
have to keep registering event listeners
a) manually for each subframe
b) each time the page navigates
The event target chain problem could be solved by letting the scroll events
escape the VisualViewport during the capturing phase (which the spec doesn't say
anything about), but this would mean that any scroll listener attached to a
window/browser/... that uses capturing will now catch both layout and visual
viewport scroll events.
In some cases this might even be beneficial, but in others (e.g. bug 1498812
comment 21) I'd like to specifically decide which kind of scroll event to
capture. Having to look at event.originalTarget to distinguish the two kinds
might be defensible in test code, but in case this distinction would be needed
in production code as well, given the existence of a C++-based filtering helper
in nsSessionStoreUtils for another use case where (scroll) events need to be
filtered, JS-based scroll event filtering might be a bad idea.
Additionally, in any case this wouldn't solve the fundamental conflict between
the spec and the session store about *when* the "scroll" event should be fired
in the first place.
Hence I'd like to introduce a separate set of events with distinct event names,
which will be dispatched according to the requirements of our internal users
(i.e. currently the session store). To avoid potential web compatibility issues
down the road, for now these events will be dispatched only to event listeners
registered in the system group (allowing *all* Chrome event listeners cannot be
done because checking the Chrome status of each event target might be too
expensive for frequently dispatched events).
Differential Revision: https://phabricator.services.mozilla.com/D14046
--HG--
extra : moz-landing-system : lando
2018-12-21 01:14:42 +03:00
|
|
|
NON_IDL_EVENT(mozvisualresize, eMozVisualResize, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
|
|
|
NON_IDL_EVENT(mozvisualscroll, eMozVisualScroll, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
WINDOW_EVENT(afterprint, eAfterPrint,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(beforeprint, eBeforePrint,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2012-11-09 20:00:24 +04:00
|
|
|
BEFOREUNLOAD_EVENT(beforeunload, eBeforeUnload,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(hashchange, eHashChange,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2014-05-12 15:48:15 +04:00
|
|
|
WINDOW_EVENT(languagechange, eLanguageChange,
|
|
|
|
EventNameType_HTMLBodyOrFramesetOnly, eBasicEventClass)
|
2012-11-14 22:05:41 +04:00
|
|
|
// XXXbz Should the onmessage attribute on <body> really not work? If so, do we
|
|
|
|
// need a different macro to flag things like that (IDL, but not content
|
|
|
|
// attributes on body/frameset), or is just using EventNameType_None enough?
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(message, eMessage, EventNameType_None, eBasicEventClass)
|
2017-09-13 06:59:06 +03:00
|
|
|
WINDOW_EVENT(messageerror, eMessageError, EventNameType_HTMLBodyOrFramesetOnly,
|
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(offline, eOffline,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(online, eOnline,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2017-07-21 03:52:44 +03:00
|
|
|
#if defined(MOZ_WIDGET_ANDROID)
|
2015-10-24 07:37:28 +03:00
|
|
|
WINDOW_EVENT(orientationchange, eOrientationChange,
|
|
|
|
EventNameType_HTMLBodyOrFramesetOnly, eBasicEventClass)
|
|
|
|
#endif
|
2012-11-14 22:05:41 +04:00
|
|
|
WINDOW_EVENT(pagehide, ePageHide, EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2012-11-14 22:05:41 +04:00
|
|
|
WINDOW_EVENT(pageshow, ePageShow, EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(popstate, ePopState,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2019-04-24 14:15:27 +03:00
|
|
|
WINDOW_EVENT(rejectionhandled, eRejectionHandled,
|
|
|
|
EventNameType_HTMLBodyOrFramesetOnly, eBasicEventClass)
|
2015-11-18 02:09:53 +03:00
|
|
|
WINDOW_EVENT(storage, eStorage, EventNameType_HTMLBodyOrFramesetOnly,
|
|
|
|
eBasicEventClass)
|
2019-04-24 14:15:27 +03:00
|
|
|
WINDOW_EVENT(unhandledrejection, eUnhandledRejection,
|
|
|
|
EventNameType_HTMLBodyOrFramesetOnly, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
WINDOW_EVENT(unload, eUnload,
|
2012-11-14 22:05:41 +04:00
|
|
|
(EventNameType_XUL | EventNameType_SVGSVG |
|
|
|
|
EventNameType_HTMLBodyOrFramesetOnly),
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
WINDOW_ONLY_EVENT(devicemotion, eDeviceMotion, EventNameType_None,
|
2015-12-18 01:14:51 +03:00
|
|
|
eBasicEventClass)
|
2012-05-02 20:43:45 +04:00
|
|
|
WINDOW_ONLY_EVENT(deviceorientation, eDeviceOrientation, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2015-12-18 01:14:51 +03:00
|
|
|
WINDOW_ONLY_EVENT(absolutedeviceorientation, eAbsoluteDeviceOrientation,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_None, eBasicEventClass)
|
2012-05-17 00:27:54 +04:00
|
|
|
WINDOW_ONLY_EVENT(deviceproximity, eDeviceProximity, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2012-05-02 20:43:45 +04:00
|
|
|
WINDOW_ONLY_EVENT(userproximity, eUserProximity, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2016-10-19 01:18:10 +03:00
|
|
|
WINDOW_ONLY_EVENT(devicelight, eDeviceLight, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
|
|
|
WINDOW_ONLY_EVENT(vrdisplayactivate, eVRDisplayActivate, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
2016-07-05 01:46:49 +03:00
|
|
|
WINDOW_ONLY_EVENT(vrdisplaydeactivate, eVRDisplayDeactivate, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
|
|
|
WINDOW_ONLY_EVENT(vrdisplayconnect, eVRDisplayConnect, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
|
|
|
WINDOW_ONLY_EVENT(vrdisplaydisconnect, eVRDisplayDisconnect, EventNameType_None,
|
|
|
|
eBasicEventClass)
|
2015-08-26 15:56:59 +03:00
|
|
|
WINDOW_ONLY_EVENT(vrdisplaypresentchange, eVRDisplayPresentChange,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_None, eBasicEventClass)
|
2016-05-30 19:52:00 +03:00
|
|
|
// Install events as per W3C Manifest spec
|
2016-10-12 22:45:19 +03:00
|
|
|
WINDOW_ONLY_EVENT(appinstalled, eAppInstalled, EventNameType_None,
|
2016-05-30 19:52:00 +03:00
|
|
|
eBasicEventClass)
|
|
|
|
|
2011-08-08 06:27:01 +04:00
|
|
|
TOUCH_EVENT(touchstart, eTouchStart, EventNameType_All, eTouchEventClass)
|
|
|
|
TOUCH_EVENT(touchend, eTouchEnd, EventNameType_All, eTouchEventClass)
|
|
|
|
TOUCH_EVENT(touchmove, eTouchMove, EventNameType_All, eTouchEventClass)
|
|
|
|
TOUCH_EVENT(touchcancel, eTouchCancel, EventNameType_All, eTouchEventClass)
|
2016-05-30 19:52:00 +03:00
|
|
|
|
2011-09-20 06:56:45 +04:00
|
|
|
DOCUMENT_ONLY_EVENT(readystatechange, eReadyStateChange, EventNameType_HTMLXUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2015-08-12 20:26:01 +03:00
|
|
|
DOCUMENT_ONLY_EVENT(selectionchange, eSelectionChange, EventNameType_HTMLXUL,
|
|
|
|
eBasicEventClass)
|
2017-07-26 23:22:42 +03:00
|
|
|
DOCUMENT_ONLY_EVENT(visibilitychange, eVisibilityChange, EventNameType_HTMLXUL,
|
|
|
|
eBasicEventClass)
|
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozMouseHittest, eMouseHitTest, EventNameType_None,
|
2014-08-04 09:28:50 +04:00
|
|
|
eMouseEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
NON_IDL_EVENT(DOMAttrModified, eLegacyAttrModified, EventNameType_HTMLXUL,
|
2014-08-04 09:28:57 +04:00
|
|
|
eMutationEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(DOMCharacterDataModified, eLegacyCharacterDataModified,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_HTMLXUL, eMutationEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(DOMNodeInserted, eLegacyNodeInserted, EventNameType_HTMLXUL,
|
2014-08-04 09:28:57 +04:00
|
|
|
eMutationEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(DOMNodeRemoved, eLegacyNodeRemoved, EventNameType_HTMLXUL,
|
2014-08-04 09:28:57 +04:00
|
|
|
eMutationEventClass)
|
2015-09-07 17:55:50 +03:00
|
|
|
NON_IDL_EVENT(DOMNodeInsertedIntoDocument, eLegacyNodeInsertedIntoDocument,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_HTMLXUL, eMutationEventClass)
|
2015-09-07 17:55:50 +03:00
|
|
|
NON_IDL_EVENT(DOMNodeRemovedFromDocument, eLegacyNodeRemovedFromDocument,
|
2012-11-14 22:05:41 +04:00
|
|
|
EventNameType_HTMLXUL, eMutationEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(DOMSubtreeModified, eLegacySubtreeModified, EventNameType_HTMLXUL,
|
2014-08-04 09:28:57 +04:00
|
|
|
eMutationEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
NON_IDL_EVENT(DOMActivate, eLegacyDOMActivate, EventNameType_HTMLXUL,
|
2014-08-04 09:28:47 +04:00
|
|
|
eUIEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(DOMFocusIn, eLegacyDOMFocusIn, EventNameType_HTMLXUL,
|
2014-08-04 09:28:47 +04:00
|
|
|
eUIEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(DOMFocusOut, eLegacyDOMFocusOut, EventNameType_HTMLXUL,
|
2014-08-04 09:28:47 +04:00
|
|
|
eUIEventClass)
|
2016-08-16 07:01:12 +03:00
|
|
|
|
2015-09-10 04:40:04 +03:00
|
|
|
NON_IDL_EVENT(DOMMouseScroll, eLegacyMouseLineOrPageScroll,
|
2014-08-04 09:28:51 +04:00
|
|
|
EventNameType_HTMLXUL, eMouseScrollEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozMousePixelScroll, eLegacyMousePixelScroll,
|
2014-08-04 09:28:51 +04:00
|
|
|
EventNameType_HTMLXUL, eMouseScrollEventClass)
|
2016-08-16 07:01:12 +03:00
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(open, eOpen, EventNameType_None, eBasicEventClass)
|
|
|
|
|
2015-09-14 18:14:34 +03:00
|
|
|
NON_IDL_EVENT(dataavailable, eMediaRecorderDataAvailable, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2013-07-05 05:50:25 +04:00
|
|
|
|
|
|
|
NON_IDL_EVENT(stop, eMediaRecorderStop, EventNameType_None, eBasicEventClass)
|
|
|
|
|
2015-09-14 18:14:34 +03:00
|
|
|
NON_IDL_EVENT(warning, eMediaRecorderWarning, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2013-07-05 05:50:25 +04:00
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
// Events that only have on* attributes on XUL elements
|
2014-10-07 14:01:47 +04:00
|
|
|
|
2016-07-08 07:10:13 +03:00
|
|
|
// "text" event is legacy event for modifying composition string in EditorBase.
|
2014-10-07 14:01:47 +04:00
|
|
|
// This shouldn't be used by web/xul apps. "compositionupdate" should be
|
|
|
|
// used instead.
|
2015-09-11 15:21:27 +03:00
|
|
|
NON_IDL_EVENT(text, eCompositionChange, EventNameType_XUL,
|
2014-10-07 14:01:48 +04:00
|
|
|
eCompositionEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(compositionstart, eCompositionStart, EventNameType_XUL,
|
2014-08-04 09:28:48 +04:00
|
|
|
eCompositionEventClass)
|
2011-09-22 13:17:40 +04:00
|
|
|
NON_IDL_EVENT(compositionupdate, eCompositionUpdate, EventNameType_XUL,
|
2014-08-04 09:28:48 +04:00
|
|
|
eCompositionEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(compositionend, eCompositionEnd, EventNameType_XUL,
|
2014-08-04 09:28:48 +04:00
|
|
|
eCompositionEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(command, eXULCommand, EventNameType_XUL, eInputEventClass)
|
|
|
|
NON_IDL_EVENT(popupshowing, eXULPopupShowing, EventNameType_XUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(popupshown, eXULPopupShown, EventNameType_XUL, eBasicEventClass)
|
|
|
|
NON_IDL_EVENT(popuppositioned, eXULPopupPositioned, EventNameType_XUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(popuphiding, eXULPopupHiding, EventNameType_XUL, eBasicEventClass)
|
|
|
|
NON_IDL_EVENT(popuphidden, eXULPopupHidden, EventNameType_XUL, eBasicEventClass)
|
2015-08-26 15:56:59 +03:00
|
|
|
NON_IDL_EVENT(broadcast, eXULBroadcast, EventNameType_XUL, eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(commandupdate, eXULCommandUpdate, EventNameType_XUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(overflow, eScrollPortOverflow, EventNameType_XUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(underflow, eScrollPortUnderflow, EventNameType_XUL,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
// Various SVG events
|
|
|
|
NON_IDL_EVENT(SVGLoad, eSVGLoad, EventNameType_None, eBasicEventClass)
|
|
|
|
NON_IDL_EVENT(SVGUnload, eSVGUnload, EventNameType_None, eBasicEventClass)
|
|
|
|
NON_IDL_EVENT(SVGResize, eSVGResize, EventNameType_None, eBasicEventClass)
|
|
|
|
NON_IDL_EVENT(SVGScroll, eSVGScroll, EventNameType_None, eBasicEventClass)
|
|
|
|
|
2015-08-26 15:56:59 +03:00
|
|
|
// Only map the ID to the real event name when MESSAGE_TO_EVENT is defined.
|
|
|
|
#ifndef MESSAGE_TO_EVENT
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(begin, eSMILBeginEvent, EventNameType_SMIL, eBasicEventClass)
|
2012-08-29 15:24:41 +04:00
|
|
|
#endif
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(beginEvent, eSMILBeginEvent, EventNameType_None,
|
2014-08-04 09:28:56 +04:00
|
|
|
eSMILTimeEventClass)
|
2015-08-26 15:56:59 +03:00
|
|
|
// Only map the ID to the real event name when MESSAGE_TO_EVENT is defined.
|
|
|
|
#ifndef MESSAGE_TO_EVENT
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(end, eSMILEndEvent, EventNameType_SMIL, eBasicEventClass)
|
2012-08-29 15:24:41 +04:00
|
|
|
#endif
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(endEvent, eSMILEndEvent, EventNameType_None, eSMILTimeEventClass)
|
2015-08-26 15:56:59 +03:00
|
|
|
// Only map the ID to the real event name when MESSAGE_TO_EVENT is defined.
|
|
|
|
#ifndef MESSAGE_TO_EVENT
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(repeat, eSMILRepeatEvent, EventNameType_SMIL, eBasicEventClass)
|
2012-08-29 15:24:41 +04:00
|
|
|
#endif
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(repeatEvent, eSMILRepeatEvent, EventNameType_None,
|
2014-08-04 09:28:56 +04:00
|
|
|
eSMILTimeEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
|
|
|
NON_IDL_EVENT(MozAfterPaint, eAfterPaint, EventNameType_None, eBasicEventClass)
|
|
|
|
|
|
|
|
NON_IDL_EVENT(MozScrolledAreaChanged, eScrolledAreaChanged, EventNameType_None,
|
2014-08-04 09:28:54 +04:00
|
|
|
eScrollAreaEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
2011-08-03 22:12:08 +04:00
|
|
|
NON_IDL_EVENT(gamepadbuttondown, eGamepadButtonDown, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-03 22:12:08 +04:00
|
|
|
NON_IDL_EVENT(gamepadbuttonup, eGamepadButtonUp, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-03 22:12:08 +04:00
|
|
|
NON_IDL_EVENT(gamepadaxismove, eGamepadAxisMove, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-03 22:12:08 +04:00
|
|
|
NON_IDL_EVENT(gamepadconnected, eGamepadConnected, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-03 22:12:08 +04:00
|
|
|
NON_IDL_EVENT(gamepaddisconnected, eGamepadDisconnected, EventNameType_None,
|
2014-08-04 09:28:58 +04:00
|
|
|
eBasicEventClass)
|
2011-08-03 22:12:08 +04:00
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
// Simple gesture events
|
2015-08-27 22:06:21 +03:00
|
|
|
NON_IDL_EVENT(MozSwipeGestureMayStart, eSwipeGestureMayStart,
|
|
|
|
EventNameType_None, eSimpleGestureEventClass)
|
2013-04-09 23:44:01 +04:00
|
|
|
NON_IDL_EVENT(MozSwipeGestureStart, eSwipeGestureStart, EventNameType_None,
|
2015-08-27 22:06:21 +03:00
|
|
|
eSimpleGestureEventClass)
|
2013-04-09 23:44:01 +04:00
|
|
|
NON_IDL_EVENT(MozSwipeGestureUpdate, eSwipeGestureUpdate, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2013-04-09 23:44:01 +04:00
|
|
|
NON_IDL_EVENT(MozSwipeGestureEnd, eSwipeGestureEnd, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2013-04-09 23:44:01 +04:00
|
|
|
NON_IDL_EVENT(MozSwipeGesture, eSwipeGesture, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozMagnifyGestureStart, eMagnifyGestureStart, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozMagnifyGestureUpdate, eMagnifyGestureUpdate,
|
|
|
|
EventNameType_None, eSimpleGestureEventClass)
|
|
|
|
NON_IDL_EVENT(MozMagnifyGesture, eMagnifyGesture, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozRotateGestureStart, eRotateGestureStart, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozRotateGestureUpdate, eRotateGestureUpdate, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozRotateGesture, eRotateGesture, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozTapGesture, eTapGesture, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozPressTapGesture, ePressTapGesture, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozEdgeUIStarted, eEdgeUIStarted, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
NON_IDL_EVENT(MozEdgeUICanceled, eEdgeUICanceled, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2013-05-17 08:22:21 +04:00
|
|
|
NON_IDL_EVENT(MozEdgeUICompleted, eEdgeUICompleted, EventNameType_None,
|
2014-08-04 09:28:53 +04:00
|
|
|
eSimpleGestureEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
|
2016-01-31 11:01:17 +03:00
|
|
|
// CSS Transition & Animation events:
|
2016-10-19 09:16:51 +03:00
|
|
|
EVENT(transitionstart, eTransitionStart, EventNameType_All,
|
|
|
|
eTransitionEventClass)
|
2011-08-08 06:30:17 +04:00
|
|
|
EVENT(transitionrun, eTransitionRun, EventNameType_All, eTransitionEventClass)
|
2016-08-05 02:12:14 +03:00
|
|
|
EVENT(transitionend, eTransitionEnd, EventNameType_All, eTransitionEventClass)
|
|
|
|
EVENT(transitioncancel, eTransitionCancel, EventNameType_All,
|
|
|
|
eTransitionEventClass)
|
|
|
|
EVENT(animationstart, eAnimationStart, EventNameType_All, eAnimationEventClass)
|
|
|
|
EVENT(animationend, eAnimationEnd, EventNameType_All, eAnimationEventClass)
|
|
|
|
EVENT(animationiteration, eAnimationIteration, EventNameType_All,
|
|
|
|
eAnimationEventClass)
|
2017-02-10 06:32:43 +03:00
|
|
|
EVENT(animationcancel, eAnimationCancel, EventNameType_All,
|
|
|
|
eAnimationEventClass)
|
2011-08-08 06:27:01 +04:00
|
|
|
|
2016-01-31 11:01:17 +03:00
|
|
|
// Webkit-prefixed versions of Transition & Animation events, for web compat:
|
2016-08-05 08:12:38 +03:00
|
|
|
EVENT(webkitAnimationEnd, eWebkitAnimationEnd, EventNameType_All,
|
|
|
|
eAnimationEventClass)
|
|
|
|
EVENT(webkitAnimationIteration, eWebkitAnimationIteration, EventNameType_All,
|
|
|
|
eAnimationEventClass)
|
|
|
|
EVENT(webkitAnimationStart, eWebkitAnimationStart, EventNameType_All,
|
|
|
|
eAnimationEventClass)
|
|
|
|
EVENT(webkitTransitionEnd, eWebkitTransitionEnd, EventNameType_All,
|
|
|
|
eTransitionEventClass)
|
|
|
|
#ifndef MESSAGE_TO_EVENT
|
2020-01-13 23:04:59 +03:00
|
|
|
// These are only here so that IsEventAttributeName() will return the right
|
|
|
|
// thing for these events. We could probably remove them if we used
|
|
|
|
// Element::GetEventNameForAttr on the input to IsEventAttributeName before
|
|
|
|
// looking it up in the hashtable...
|
|
|
|
EVENT(webkitanimationend, eUnidentifiedEvent, EventNameType_All,
|
2016-08-05 08:12:38 +03:00
|
|
|
eAnimationEventClass)
|
2020-01-13 23:04:59 +03:00
|
|
|
EVENT(webkitanimationiteration, eUnidentifiedEvent, EventNameType_All,
|
2016-08-05 08:12:38 +03:00
|
|
|
eAnimationEventClass)
|
2020-01-13 23:04:59 +03:00
|
|
|
EVENT(webkitanimationstart, eUnidentifiedEvent, EventNameType_All,
|
2016-08-05 08:12:38 +03:00
|
|
|
eAnimationEventClass)
|
2020-01-13 23:04:59 +03:00
|
|
|
EVENT(webkittransitionend, eUnidentifiedEvent, EventNameType_All,
|
2016-08-05 08:12:38 +03:00
|
|
|
eTransitionEventClass)
|
|
|
|
#endif
|
2016-01-31 11:01:17 +03:00
|
|
|
|
2013-04-14 05:37:04 +04:00
|
|
|
NON_IDL_EVENT(audioprocess, eAudioProcess, EventNameType_None, eBasicEventClass)
|
|
|
|
|
2013-05-17 03:30:41 +04:00
|
|
|
NON_IDL_EVENT(complete, eAudioComplete, EventNameType_None, eBasicEventClass)
|
|
|
|
|
2011-08-08 06:26:52 +04:00
|
|
|
#ifdef DEFINED_FORWARDED_EVENT
|
|
|
|
# undef DEFINED_FORWARDED_EVENT
|
|
|
|
# undef FORWARDED_EVENT
|
|
|
|
#endif /* DEFINED_FORWARDED_EVENT */
|
|
|
|
|
|
|
|
#ifdef DEFINED_WINDOW_EVENT
|
|
|
|
# undef DEFINED_WINDOW_EVENT
|
|
|
|
# undef WINDOW_EVENT
|
|
|
|
#endif /* DEFINED_WINDOW_EVENT */
|
2011-08-08 06:27:01 +04:00
|
|
|
|
|
|
|
#ifdef DEFINED_WINDOW_ONLY_EVENT
|
|
|
|
# undef DEFINED_WINDOW_ONLY_EVENT
|
|
|
|
# undef WINDOW_ONLY_EVENT
|
|
|
|
#endif /* DEFINED_WINDOW_ONLY_EVENT */
|
|
|
|
|
|
|
|
#ifdef DEFINED_TOUCH_EVENT
|
|
|
|
# undef DEFINED_TOUCH_EVENT
|
|
|
|
# undef TOUCH_EVENT
|
|
|
|
#endif /* DEFINED_TOUCH_EVENT */
|
|
|
|
|
2011-09-20 06:56:45 +04:00
|
|
|
#ifdef DEFINED_DOCUMENT_ONLY_EVENT
|
|
|
|
# undef DEFINED_DOCUMENT_ONLY_EVENT
|
|
|
|
# undef DOCUMENT_ONLY_EVENT
|
|
|
|
#endif /* DEFINED_DOCUMENT_ONLY_EVENT */
|
|
|
|
|
2011-08-08 06:30:17 +04:00
|
|
|
#ifdef DEFINED_NON_IDL_EVENT
|
|
|
|
# undef DEFINED_NON_IDL_EVENT
|
|
|
|
# undef NON_IDL_EVENT
|
|
|
|
#endif /* DEFINED_NON_IDL_EVENT */
|
|
|
|
|
2012-11-09 20:00:24 +04:00
|
|
|
#ifdef DEFINED_ERROR_EVENT
|
|
|
|
# undef DEFINED_ERROR_EVENT
|
|
|
|
# undef ERROR_EVENT
|
|
|
|
#endif /* DEFINED_ERROR_EVENT */
|
|
|
|
|
|
|
|
#ifdef DEFINED_BEFOREUNLOAD_EVENT
|
|
|
|
# undef DEFINED_BEFOREUNLOAD_EVENT
|
|
|
|
# undef BEFOREUNLOAD_EVENT
|
|
|
|
#endif /* BEFOREUNLOAD_EVENT */
|
|
|
|
|
2015-08-26 15:56:59 +03:00
|
|
|
#ifdef MESSAGE_TO_EVENT
|
2012-08-29 15:24:41 +04:00
|
|
|
# undef EVENT
|
|
|
|
# undef WINDOW_ONLY_EVENT
|
|
|
|
# undef TOUCH_EVENT
|
|
|
|
# undef DOCUMENT_ONLY_EVENT
|
|
|
|
# undef NON_IDL_EVENT
|
2015-08-26 15:56:59 +03:00
|
|
|
#endif /* MESSAGE_TO_EVENT */
|