Commit Graph

53 Commits

Author SHA1 Message Date
Botond Ballo
d7e944c1ef Bug 1069417 - Modify TransformTo() and related functions to use typed matrices. r=kats
Call sites (all in APZ and related code) were modified accordingly. Some of
these modifications involved changing some matrices stored in APZ to be typed.
2015-11-30 20:14:31 -05:00
Botond Ballo
ecac74cd13 Bug 1069417 - Generalize Matrix4x4 into Matrix4x4Typed<SourceUnits, TargetUnits>. r=Bas
Matrix4x4 remains a typedef for Matrix4x4Typed<UnknownUnits, UnknownUnits>.

No client code needed changing, except for forward-declarations of Matrix4x4
as a class (since it's now a typedef).
2015-12-02 18:52:00 -05:00
David Anderson
4ec5b82b2b Add page scroll support for APZ wheel events. (bug 1228028, r=kats) 2015-12-02 17:05:11 -08:00
David Anderson
6ff0e08776 Add APZ support for mousewheel delta multiplier prefs. (bug 1214170 part 2, r=kats) 2015-12-01 13:46:07 -08:00
David Anderson
a34f7136a3 Add APZ support for mousewheel.acceleration prefs. (bug 1214170 part 1, r=kats) 2015-12-01 13:45:49 -08:00
Nigel Babu
1d02fdbec3 Backed out changeset ebb6fb453cca (bug 1214170) for build bustage on a CLOSED TREE 2015-11-25 16:22:16 +05:30
David Anderson
dec9fd1698 Add APZ support for mousewheel.acceleration prefs. (bug 1214170, r=kats) 2015-11-25 01:12:33 -08:00
Dmitry Rozhkov
864c47b0d2 Bug 962243 - Implement PINCH to TOUCHING transition in APZC. r=botond 2015-11-22 08:57:45 -05:00
Randall Barker
3fef84f2dc Bug 1223946 - Part 1: Clean up and support needed for converting WidgetWheelEvent to ScrollWheelInput. r=kats 2015-11-18 19:32:37 -05:00
Kartikaya Gupta
be8be6ff3e Bug 1217818 - Add support for the mHandledByAPZ flag on touch events as well. r=botond 2015-10-28 12:53:34 -04:00
Benoit Girard
55467aee3c Bug 1199885 - Part 9: Let APZC handle the drag events. r=kats 2015-09-28 14:44:37 -04:00
Benoit Girard
b5920e1ccc Bug 1199885 - Part 1: Add MouseInput InputData. r=kats 2015-09-28 10:32:05 -04:00
Markus Stange
30a922252e Bug 1016035 - Don't wait for content to say that we need to swipe if APZ has enough information. r=kats 2015-08-28 16:50:00 -04:00
Markus Stange
2d82354499 Bug 1016035 - Delay the processing of a PanGestureInput block until we know whether it's a swipe. r=kats 2015-08-12 00:11:54 -04:00
Markus Stange
86a0110438 Bug 1193062 - Add mHandledByAPZ on PanGestureInput and ScrollWheelInput, and sync the information to the WidgetWheelEvent. r=kats 2015-08-11 18:04:55 -04:00
Markus Stange
0776efb091 Bug 1193062 - Process pan gesture deltas in begin+end events. r=kats
We don't want to split native NSEvents into two PanGestureInput events.
2015-08-11 15:57:47 -04:00
Markus Stange
4d40e8fb88 Bug 1193062 - Make OverscrollHandoffChain::FindFirstScrollable and AsyncPanZoomController::CanScroll able to deal with PanGestureInput events. r=kats 2015-08-26 11:14:33 -04:00
Markus Stange
a9ac0c9ff4 Bug 1193062 - Add fields to PanGestureInput and ScrollWheelInput. r=kats
We are going to create WidgetWheelEvents from them and need more information than what they currently have.
2015-08-25 23:21:41 -04:00
Birunthan Mohanathas
e52329c788 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Kevin Wern
b4ac13dd45 Bug 1120683 - Properly handle unapplying 3D projective transforms throughout APZ code. r=botond
Whenever the inverse of a 3D projective transform is applied to a point, only use the result if it has a positive w-coordinate.

When transforming by a matrix that we know should be 2D, assert to that effect.

Transformations of rectangles (as opposed to points) remain to be audited.
2015-07-03 15:06:26 -04:00
Markus Stange
cbf06b9cac Bug 1148868 - Make APZ wheel handling handle pixel scrolling on OS X. r=dvander, r=kats 2015-04-13 15:45:37 -04:00
Kartikaya Gupta
e88bacd4a2 Bug 1143618 - Follow-up to fix static analysis build bustage. r=me on a CLOSED TREE 2015-03-25 12:41:50 -04:00
Maksim Lebedev
af9e30af0e Bug 1143618 - Change Window::OnTouch implementation to use MultiTouchInput class. r=kats 2015-03-25 12:20:20 -04:00
Nicholas Nethercote
6ee3666899 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
8413cc973c Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
3629781b69 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Kartikaya Gupta
e116db3134 Bug 1121353 - Implement SynthesizeNativeTouchPoint in the gonk widget to allow injecting touch events into APZ. r=mwu 2015-01-20 00:38:00 +01:00
Kartikaya Gupta
f2e69b3fbc Bug 1117712 - Refactor some code to transform input events. r=botond 2015-01-09 13:39:08 -05:00
Kartikaya Gupta
992e9e1aa0 Bug 920036 - Move ToWidgetMouseEvent into MultiTouchInput. r=mwu 2015-01-10 13:54:24 -05:00
David Anderson
ec1f0caf28 Add APZ handling for desktop scroll wheel events. (bug 1086162 part 1, r=kats) 2014-11-17 20:56:18 -08:00
Botond Ballo
27647aabec Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats 2014-11-10 14:35:11 -05:00
Carsten "Tomcat" Book
5b163a6b8b Backed out changeset a96930f1e26b (bug 1055741) 2014-11-13 11:47:31 +01:00
Botond Ballo
c54c9d42eb Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats
--HG--
extra : rebase_source : af7323668fb54079e121755660da2121bec3d76b
2014-11-10 14:35:11 -05:00
Ehsan Akhgari
38a6ed7fd0 Bug 1055519 - Fix some more bad implicit constructors in layout and widget; r=roc 2014-08-20 00:58:22 -04:00
Mason Chang
b60c748e4b Bug 1049136 - Add a method to convert MultiTouchInputs to WidgetTouchEvents. r=mwu
Original code by Mason Chang posted on bug 970751; modified by Kartikaya Gupta
for use in bug 1049136.
2014-08-08 18:15:37 -04:00
Kartikaya Gupta
4ff5fbdfab Bug 1036444 - Kill touchenter and touchleave events. r=smaug 2014-07-09 10:27:00 -04:00
Kartikaya Gupta
0280fddb89 Bug 1035356 - Make ReceiveInputEvent(InputData...) do in-place modifications of the event to DOM space. r=mstange r=botond 2014-07-08 14:55:52 -04:00
Kartikaya Gupta
ffb7a3d4db Bug 1030181 - Share code for dealing with WidgetTouchEvent and MultiTouchInput. r=drs r=smaug 2014-06-25 20:11:20 -04:00
Markus Stange
a986c2df8c Bug 944938 - Add event structs and APZ event handling for pan gesture events that can be used for Mac touchpad scrolling. r=kats 2014-06-07 00:49:49 +02:00
Brian Birtles
dba77091dc Bug 77992 part 1.0 - Add timeStamp to WidgetEvent; r=smaug
This patch adds a timeStamp member to WidgetEvent alongside the existing 'time'
member. In the future we would like to remove 'time' and just keep timeStamp but
that depends on it being web-compatible. For now we introduce both members
side-by-side. Later we will add a pref to determine which one to return. If no
compatibility issues arise we will remove 'time' altogether.
2014-06-06 14:29:49 +09:00
Dale Harvey
7870fd7c06 Bug 942929 - Use longtapup event to handle firing clicks when longtap not handled. r=kats 2013-12-12 00:39:06 +00:00
Matt Brubeck
72385391d3 Bug 942689 - Include modifer info in tap gesture events [r=roc,jimm,botond] 2013-11-25 20:30:26 -08:00
Masayuki Nakano
e46624e0ca Bug 920377 part.32 Get rid of nsMouseEvent r=roc 2013-10-02 15:38:27 +09:00
Masayuki Nakano
512bc33b30 Bug 920377 part.26 Get rid of nsInputEvent r=roc 2013-10-01 16:23:02 +09:00
Masayuki Nakano
99ed9cf061 Bug 920377 part.13 Get rid of nsTouchEvent r=roc 2013-09-27 15:20:57 +09:00
Masayuki Nakano
648570f10b Bug 912956 part.18 Remove nsGUIEvent.h r=roc 2013-09-25 20:21:22 +09:00
Masayuki Nakano
2a465d3e36 Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc
--HG--
rename : widget/nsEvent.h => widget/EventForwards.h
2013-09-24 19:04:14 +09:00
David Zbarsky
cdc9360b32 Bug 898105 - Remove nsIDOMTouch r=reuben 2013-08-05 00:51:22 -04:00
Kartikaya Gupta
fa8050e549 Bug 879011 - Convert nsIntPoint instances in InputData.h to types with units. r=kentuckyfriedtakahe 2013-06-11 18:13:11 -04:00
David Zbarsky
0180c76147 Bug 856962: Move Touch to its own file r=Ms2ger
--HG--
rename : content/events/src/nsDOMTouchEvent.cpp => content/events/src/Touch.cpp
rename : content/events/src/nsDOMTouchEvent.h => content/events/src/Touch.h
2013-04-05 04:49:00 -04:00