gecko-dev/dom/events
Hiroyuki Ikezoe a457a5cfbb Bug 1766805 - Introduce intended direction and intended end position concepts. r=botond
The scroll snap spec defines the concepts [1]. There are three type of scroll
operations. 1) intended end position, 2) intended direction and end position
and 3) intended direction.

Basically our existing ScrollUnits types correspond;

1) DEVICE_PIXELS, WHOLE => intended end position
2) PAGES => intended direction and end position
3) LINES => intended direction

There are two exceptions in the `intended direction and end position` case,
scrollBy() and fling gestures (on Linux). They were defined as scroll operations
with DEVICE_PIXELS unit, but the spec cleary says they are `intended direction
and end position` operations.

Note that we will also use this information for scroll-snap-stop property since
the properly will only have effects on both 2) and 3) cases.

[1] https://drafts.csswg.org/css-scroll-snap/#scroll-types

Depends on D145190

Differential Revision: https://phabricator.services.mozilla.com/D145191
2022-05-12 12:25:15 +00:00
..
crashtests
test Bug 1760986 - Modify APZ mochitest coordinatesRelativeToScreen callers to use await. r=tnikkel 2022-05-06 18:21:15 +00:00
AnimationEvent.cpp
AnimationEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
AsyncEventDispatcher.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
AsyncEventDispatcher.h
BeforeUnloadEvent.cpp
BeforeUnloadEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
Clipboard.cpp Bug 1472338: part 2) Change `clipboard.readText()` to read from the clipboard asynchronously when called from content. r=NeilDeakin,mccr8 2022-02-25 09:35:46 +00:00
Clipboard.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ClipboardEvent.cpp
ClipboardEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ClipboardItem.cpp
ClipboardItem.h
CommandEvent.cpp
CommandEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
CompositionEvent.cpp
CompositionEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ConstructibleEventTarget.cpp
ConstructibleEventTarget.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ContentEventHandler.cpp Bug 1760160 - Make `ContentCacheInChild` stop storing content if editable element has already been blurred r=m_kato 2022-04-07 00:58:49 +00:00
ContentEventHandler.h Bug 1746104 - part 7: Make `eQuerySelectedText` event and `ContentEventHandler` work with no selection ranges r=m_kato 2022-02-07 22:33:41 +00:00
CustomEvent.cpp
CustomEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
DOMEventTargetHelper.cpp Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot 2022-02-11 10:01:15 +00:00
DOMEventTargetHelper.h Bug 1745950 - Remove the string-based KeepAliveIfHasListenersFor() implementation and convert all callers to use the atoms-based one instead r=smaug 2021-12-14 16:54:50 +00:00
DataTransfer.cpp Bug 1760560 - Remove directory upload API; r=smaug 2022-04-04 09:54:34 +00:00
DataTransfer.h Bug 1760560 - Remove directory upload API; r=smaug 2022-04-04 09:54:34 +00:00
DataTransferItem.cpp Backed out changeset 00f6bd7aa727 (bug 1755481) for causing multiple clipboard related failures CLOSED TREE 2022-02-16 12:14:58 +02:00
DataTransferItem.h Bug 1472338: part 2) Change `clipboard.readText()` to read from the clipboard asynchronously when called from content. r=NeilDeakin,mccr8 2022-02-25 09:35:46 +00:00
DataTransferItemList.cpp Bug 1737041 - DataTransfer.types should include 'Files'. r=masayuki 2021-11-11 09:59:42 +00:00
DataTransferItemList.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
DeviceMotionEvent.cpp
DeviceMotionEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
DragEvent.cpp
DragEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
Event.cpp Bug 1757929 - Remove a bunch of IPC headers from gfxFont and co. r=jfkthame,layout-reviewers 2022-05-05 11:37:51 +00:00
Event.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
EventDispatcher.cpp Bug 1758752 - Describe the event target in DOMEvent profiler markers, r=mstange. 2022-03-11 07:49:03 +00:00
EventDispatcher.h Bug 1539884 - Part 38: Mark EventDispatcher::Dispatch as CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:26 +00:00
EventListenerManager.cpp Bug 1763586 - Remove Element from LoadScript and child classes; r=jonco 2022-04-21 09:53:34 +00:00
EventListenerManager.h Bug 1735745 - Make `SelectionChangeEventDispatcher` dispatch `select` event and `selectchange` event only when there may be corresponding event listeners r=smaug 2021-11-25 07:09:23 +00:00
EventListenerService.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
EventListenerService.h
EventNameList.h Bug 1744315 - P1: Introduce chrome-only MozMouseExploreByTouch event. r=botond 2021-12-28 20:41:22 +00:00
EventStateManager.cpp Bug 1766805 - Introduce intended direction and intended end position concepts. r=botond 2022-05-12 12:25:15 +00:00
EventStateManager.h Bug 1766350 - Get rid of unused internal event messages r=smaug 2022-04-27 01:15:29 +00:00
EventStates.h Bug 502258 - Add a Show Password button to <input type=password> controls. r=Gijs 2021-11-25 20:12:05 +00:00
EventTarget.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
EventTarget.h Bug 1743439 - Part 5: Mark callers in dom/events and dom/html as MOZ_CAN_RUN_SCRIPT_BOUNDARY r=masayuki 2021-12-09 19:56:09 +00:00
FocusEvent.cpp
FocusEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
GlobalKeyListener.cpp Bug 1191862 - part 3: Make `GlobalKeyListener` not reserve key combination which is mapped to an edit command or a navigation command by native key bindings r=NeilDeakin,smaug 2022-02-15 08:00:06 +00:00
GlobalKeyListener.h
IMEContentObserver.cpp Bug 1758420 - part 1: Let `TextComposition` know where is changed in storing text node r=m_kato 2022-04-21 03:37:56 +00:00
IMEContentObserver.h
IMEStateManager.cpp Bug 1191862 - part 3: Make `GlobalKeyListener` not reserve key combination which is mapped to an edit command or a navigation command by native key bindings r=NeilDeakin,smaug 2022-02-15 08:00:06 +00:00
IMEStateManager.h
ImageCaptureError.cpp
ImageCaptureError.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
InputEvent.cpp
InputEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
InputEventOptions.h
InputTypeList.h
InternalMutationEvent.h
JSEventHandler.cpp
JSEventHandler.h
KeyEventHandler.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
KeyEventHandler.h
KeyNameList.h
KeyboardEvent.cpp
KeyboardEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
MessageEvent.cpp
MessageEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
MouseEvent.cpp Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
MouseEvent.h Bug 1756323 - Cleanup mouse event coord code. r=jfkthame 2022-02-21 11:53:02 +00:00
MouseScrollEvent.cpp
MouseScrollEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
MutationEvent.cpp
MutationEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
NotifyPaintEvent.cpp Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 2022-03-04 15:39:41 +00:00
NotifyPaintEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
PaintRequest.cpp Bug 1754579 - Don't keep so much alive when returning DOMRects & co. r=smaug 2022-02-10 00:38:45 +00:00
PaintRequest.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
PendingFullscreenEvent.h
PhysicalKeyCodeNameList.h
PointerEvent.cpp Bug 1750994 - PointerEvent.constructor should not modify the target of the events which are passed as coalesced or predicted events, r=edgar 2022-01-20 09:09:47 +00:00
PointerEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
PointerEventHandler.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
PointerEventHandler.h
RemoteDragStartData.cpp
RemoteDragStartData.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
ScrollAreaEvent.cpp Bug 1757929 - Remove a bunch of IPC headers from gfxFont and co. r=jfkthame,layout-reviewers 2022-05-05 11:37:51 +00:00
ScrollAreaEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
ShortcutKeyDefinitions.cpp Bug 1376091 - For MOZ_WIDGET_GTK, change shortcut for `cmd_selectAll` from Alt+A to Ctrl+A. r=masayuki 2021-11-23 18:37:41 +00:00
ShortcutKeys.cpp
ShortcutKeys.h
SimpleGestureEvent.cpp
SimpleGestureEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
SpeechRecognitionError.cpp
SpeechRecognitionError.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
StorageEvent.cpp
StorageEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
TextClause.cpp
TextClause.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
TextComposition.cpp Bug 1758420 - part 1: Let `TextComposition` know where is changed in storing text node r=m_kato 2022-04-21 03:37:56 +00:00
TextComposition.h Bug 1758420 - part 2: Clean up update timing of `TextComposition` r=m_kato 2022-04-21 03:37:56 +00:00
Touch.cpp Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
Touch.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
TouchEvent.cpp Bug 1757929 - Remove a bunch of IPC headers from gfxFont and co. r=jfkthame,layout-reviewers 2022-05-05 11:37:51 +00:00
TouchEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
TransitionEvent.cpp
TransitionEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
UIEvent.cpp Bug 1757929 - Remove a bunch of IPC headers from gfxFont and co. r=jfkthame,layout-reviewers 2022-05-05 11:37:51 +00:00
UIEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
VirtualKeyCodeList.h
WheelEvent.cpp
WheelEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
WheelHandlingHelper.cpp
WheelHandlingHelper.h
XULCommandEvent.cpp
XULCommandEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
moz.build Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
nsIEventListenerService.idl Bug 1539884 - Part 7: Mark nsIEventListenerService::getEventTargetChainFor as can_run_script r=masayuki 2021-12-16 17:17:06 +00:00