Olli Pettay
ddf5c731fa
Bug 1425441 - Move relatedTarget to WidgetEvent, r=stone
...
--HG--
extra : rebase_source : 75b00efa0af5989e41763fbecac6fd8794c870c6
2017-12-18 19:08:11 +02:00
Stone Shih
f54b118ead
Bug 1303957 Part1: Add support for PointerEvent.getCoalescedEvents. r=smaug.
...
We implement PointerEvent.getCoalescedEvents as
1. Clone the widget events we coalesced.
2. Convert them to dom::PointerEvent when user calls getCoalescedEvents.
MozReview-Commit-ID: 8IKw4PbUsDD
2017-09-20 13:00:57 +08:00
Masayuki Nakano
16fd3a84a4
Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
...
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event. Therefore, we don't need to use this new
default action on macOS. Additionally, old default action with Shift key,
navigating history, is moved to with Alt key. This makes same settings between
macOS and the others. So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).
For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events. This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.
So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally. This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.
MozReview-Commit-ID: E4X3yZzLEAl
--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-05 01:12:35 +09:00
Stone Shih
eb9ee92c2d
Bug 1323158 - Part 1: Fire pointer and mouse boundary events when capturing the pointer. r=smaug
...
--HG--
extra : rebase_source : 2895681bb5d0e4872dc37f9d67dc4e2928bdce33
extra : histedit_source : e08adaaf7299e9667eb1f3887ef518c5edf5dc59
2017-01-18 15:25:44 +08:00
Stone Shih
27fc4c155d
Bug 1292064 - [Pointer Event] Add digitizer/pen tangential (barrel) pressure and twist. r=smaug
2017-02-09 10:49:00 +08:00
Stone Shih
c163f48767
Bug 1323976 - Part 1: Add eNoButton to WidgetMouseEventBase::buttonType. r=smaug
...
MozReview-Commit-ID: FYUhdfKj5wT
--HG--
extra : rebase_source : ef4959c9dd68d5316cf19c9b726d8b2e8fd33b4e
2017-01-12 17:53:38 +08:00
Stone Shih
f60994b515
Bug 1031362 Part1: Dispatching mouse events by handling pen generated WM_POINTER* messages. r=jimm,smaug
2016-11-20 10:24:46 +08:00
Carsten "Tomcat" Book
9b6d97a4be
Backed out changeset 1413fa802632 (bug 1031362) for test failures in pointerevents/test_touch_action.html
...
--HG--
extra : rebase_source : 937d349fb18e2368d4155364558027134c01fec6
2016-12-20 14:52:23 +01:00
Stone Shih
d908d1a2d4
Bug 1031362 Part1: Dispatching mouse events by handling pen generated WM_POINTER* messages. r=jimm,smaug
2016-11-20 10:24:46 +08:00
Stone Shih
5abe523179
Bug 1299197 Part1: Refine WidgetPointerHelper. r=smaug
...
--HG--
extra : rebase_source : bc9feec42fa7e36d5ba5ed7530cd150e1deadd9c
2016-11-20 09:36:39 +08:00
Stone Shih
1063903850
Bug 1304315 - [Pointer Event] Make all pointer events's default width/height to 1. f=bevistseng. r=smaug,masayuki.
2016-09-21 16:26:21 +08:00
Nicholas Nethercote
b71747b2ac
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Stone Shih
e9962ae1fc
Bug 1292067 - Make width/height of pointer default to 1. f=bevistseng. r=smaug
...
--HG--
extra : rebase_source : a55c4356dadacb2a41b49cde98a31051af6aa9d8
2016-08-10 13:04:33 +08:00
Masayuki Nakano
78b4a701e3
Bug 1259665 part.3 Rename WidgetPointerEvent::isPrimary to mIsPrimary r=smaug
...
MozReview-Commit-ID: LfKzpwCjMcz
--HG--
extra : rebase_source : d4fd41db8ff4dc39a7156f2f509aae89d1c126a1
2016-08-03 17:34:53 +09:00
Masayuki Nakano
b38025c056
Bug 1259665 part.2 Rename WidgetPointerEvent::height to mHeight r=smaug
...
MozReview-Commit-ID: Ji4X53dByiH
--HG--
extra : rebase_source : 0e79a45d34142453e79f2412eddb7abc132e11d7
2016-08-03 17:23:56 +09:00
Masayuki Nakano
924e7f39e5
Bug 1259665 part.1 Rename WidgetPointerEvent::width to mWidth r=smaug
...
MozReview-Commit-ID: 3V5gyOvPuQi
--HG--
extra : rebase_source : 6adf7908e8a84bc2cfb86d8f7823662f1b72170f
2016-08-03 17:18:04 +09:00
Masayuki Nakano
cbc08975f5
Bug 1259661 part.10 Clean up some nits of WidgetMouseEvent definition r=smaug
...
MozReview-Commit-ID: 9e4F8gOmRpZ
--HG--
extra : rebase_source : 77582b007ebb9a87925543f044d9af06a5f7c2fa
2016-05-10 21:57:16 +09:00
Masayuki Nakano
3e4ceded8b
Bug 1259661 part.9 Rename WidgetMouseEvent::clickCount to WidgetMouseEvent::mClickCount r=smaug
...
MozReview-Commit-ID: 5tC8UqcfLek
--HG--
extra : rebase_source : a336f9d8676c74804e2c00eebec4f2a30d7a11b3
2016-05-10 23:29:14 +09:00
Masayuki Nakano
b2a210c268
Bug 1259661 part.8 Rename WidgetMouseEvent::ignoreRootScrollFrame to WidgetMouseEvent::mIgnoreRootScrollFrame r=smaug
...
MozReview-Commit-ID: 98G9UMv4qqj
--HG--
extra : rebase_source : e3fed10d5d7b8b3a714e279457192e9f0bc703df
2016-05-10 21:15:05 +09:00
Masayuki Nakano
52b8126bf2
Bug 1259661 part.7 Get rid of WidgetMouseEvent::acceptActivation because of unused r=smaug
...
MozReview-Commit-ID: ItkudUhGGN4
--HG--
extra : rebase_source : 2f396c1acf032c731d7d875b2a427aaddda1a576
2016-05-10 21:01:15 +09:00
Masayuki Nakano
1663e01f1f
Bug 1259661 part.6 Rename WidgetMouseEvent::exit to WidgetMouseEvent::mExitFrom r=smaug
...
MozReview-Commit-ID: FHUaUOE5eIB
--HG--
extra : rebase_source : f4ff5a5f662054ab161805dc37b9e7b6d6b97d96
2016-05-12 11:42:08 +09:00
Masayuki Nakano
2d6e9e3d48
Bug 1259661 part.5 Rename WidgetMouseEvent::context to WidgetMouseEvent::mContextMenuTrigger r=smaug
...
MozReview-Commit-ID: GDAAHiyRrhY
--HG--
extra : rebase_source : fe7e3a658192f13f6458f664b35d5937925eca13
2016-05-12 11:39:05 +09:00
Masayuki Nakano
0902859a3a
Bug 1259661 part.4 Rename WidgetMouseEvent::reason to WidgetMouseEvent::mReason r=smaug
...
MozReview-Commit-ID: JaE0S7BIgVF
--HG--
extra : rebase_source : 2d0f80e49dfd09cecc7ab3c85d2496308055d434
2016-05-12 11:36:41 +09:00
Masayuki Nakano
9874716678
Bug 1259661 part.3 Rename WidgetMouseEvent::exitType to WidgetMouseEvent::ExitFrom r=smaug
...
MozReview-Commit-ID: 8NdDccCrTS7
--HG--
extra : rebase_source : 6c4bf2bceab7638ee25907be7b434f0544dfe325
2016-05-12 11:32:53 +09:00
Masayuki Nakano
decf620aaa
Bug 1259661 part.2 Rename WidgetMouseEvent::context to WidgetMouseEvent::ContextMenuTrigger r=smaug
...
MozReview-Commit-ID: 2amULUnzsxc
--HG--
extra : rebase_source : 8b09dfe85fd9e583d378fd2fd167a169b5258175
2016-05-12 11:28:14 +09:00
Masayuki Nakano
22d783b8ac
Bug 1259661 part.1 Rename WidgetMouseEvent::reasonType to WidgetMouseEvent::Reason r=smaug
...
MozReview-Commit-ID: 3bx2Z32rwb1
--HG--
extra : rebase_source : afb94677ccce2c9ae8ffbf63f0c0566d94430773
2016-05-12 11:17:46 +09:00
Stone Shih
547b61eae3
Bug 386743 - Set default event bubbling/cancelable flags in the WidgetEvent constructor. r=smaug
2016-04-13 14:16:42 +08:00
Maksim Lebedev
9734ab0c2c
Bug 1000870 - Add some features in testing system. r=smaug
2015-05-19 07:03:00 +02:00
shundroid
0eca40da0c
Bug 1259663 - Clean up WidgetMouseScrollEvent. r=masayuki
...
MozReview-Commit-ID: F98luwO9y1N
--HG--
extra : rebase_source : e798d10142104b99fa50763a2f4e42107d3c6976
2016-04-06 16:44:11 +09:00
Masayuki Nakano
a1c4469bab
Bug 1259664 part.13 Reorder the definition of members of WidgetWheelEvent r=smaug
...
MozReview-Commit-ID: 345QqjCPdSA
--HG--
extra : rebase_source : c0f452fb0986d8045f75515d07a820d388198ff3
2016-04-01 00:46:18 +09:00
Masayuki Nakano
e6be470f50
Bug 1259664 part.12 Rename WidgetWheelEvent::overflowDeltaY to WidgetWheelEvent::mOverflowDeltaY r=smaug
...
MozReview-Commit-ID: GGvQZlvc4sl
--HG--
extra : rebase_source : 9673aea11cbc752cfbc3c7b48fa68e2a4143266f
2016-04-01 00:36:55 +09:00
Masayuki Nakano
a597026bd6
Bug 1259664 part.11 Rename WidgetWheelEvent::overflowDeltaX to WidgetWheelEvent::mOverflowDeltaX r=smaug
...
MozReview-Commit-ID: CVKbougU4uT
--HG--
extra : rebase_source : 0beb961e696e114321db819ac68dab7d54cf7e28
2016-04-01 00:27:45 +09:00
Masayuki Nakano
1e0825ccd9
Bug 1259664 part.10 Rename WidgetWheelEvent::lineOrPageDeltaY to WidgetWheelEvent::mLineOrPageDeltaY r=smaug
...
MozReview-Commit-ID: 64lFZosnMbd
--HG--
extra : rebase_source : 1e103c5255a702d46f78c6f544981b0e82e2d23c
2016-04-01 00:10:09 +09:00
Masayuki Nakano
e462919d2b
Bug 1259664 part.9 Rename WidgetWheelEvent::lineOrPageDeltaX to WidgetWheelEvent::mLineOrPageDeltaX r=smaug
...
MozReview-Commit-ID: 1j8SFp6bME4
--HG--
extra : rebase_source : 18b080a4938925547b2f5b7fa66908c75211a345
2016-04-01 00:10:46 +09:00
Masayuki Nakano
477d2b746e
Bug 1259664 part.8 Rename WidgetWheelEvent::scrollType to WidgetWheelEvent::mScrollType r=smaug
...
MozReview-Commit-ID: 9Oywv8Yb0Qg
--HG--
extra : rebase_source : 71925e8e97855837f28912c8a1d689300de36489
2016-03-31 23:54:42 +09:00
Masayuki Nakano
3b08c541b4
Bug 1259664 part.7 Rename WidgetWheelEvent::isMomentum to WidgetWheelEvent::mIsMomentum r=smaug
...
MozReview-Commit-ID: CornLj3WkyG
--HG--
extra : rebase_source : 2566b30374ed1a5be7cf0c6fead25a0271d58d17
2016-03-31 23:45:55 +09:00
Masayuki Nakano
9d2172e67c
Bug 1259664 part.6 Rename WidgetWheelEvent::mayHaveMomentum to WidgetWheelEvent::mMayHaveMomentum r=smaug
...
MozReview-Commit-ID: E6kS0pkOZby
--HG--
extra : rebase_source : edee14ad5acc01384ed356cf49a3215c843f12fd
2016-03-31 23:36:49 +09:00
Masayuki Nakano
70f6c0a7ac
Bug 1259664 part.5 Rename WidgetWheelEvent::customizedByUserPrefs to WidgetWheelEvent::mCustomizedByUserPrefs r=smaug
...
MozReview-Commit-ID: 9GksNZRtmmb
--HG--
extra : rebase_source : 70f15531a9e83e1bd942270a9d95c5a9ea970b8c
2016-03-31 18:44:01 +09:00
Masayuki Nakano
a2da982fdb
Bug 1259664 part.4 Rename WidgetWheelEvent::deltaMode to WidgetWheelEvent::mDeltaMode r=smaug
...
MozReview-Commit-ID: Ky3xp2NtBWq
--HG--
extra : rebase_source : 412e2df1c27c37dc76039d1fd3463623b476d81c
2016-03-31 18:35:24 +09:00
Masayuki Nakano
3450ec21e1
Bug 1259664 part.3 Rename WidgetWheelEvent::deltaZ to WidgetWheelEvent::mDeltaZ r=smaug
...
MozReview-Commit-ID: BbxTrLko8kp
--HG--
extra : rebase_source : 1aa8b1086791442dc15ac5464b7ecd3716203ccd
2016-03-31 18:18:34 +09:00
Masayuki Nakano
6aedccbde5
Bug 1259664 part.2 Rename WidgetWheelEvent::deltaY to WidgetWheelEvent::mDeltaY r=smaug
...
MozReview-Commit-ID: 3xscKDblY4V
--HG--
extra : rebase_source : c587768fd2c9a48e07cafa27b5c72e4eeb030360
2016-03-31 18:09:47 +09:00
Masayuki Nakano
6cedf549dc
Bug 1259664 part.1 Rename WidgetWheelEvent::deltaX to WidgetWheelEvent::mDeltaX r=smaug
...
MozReview-Commit-ID: F5dQHpPkWfA
--HG--
extra : rebase_source : 1a256f288b0e004c196468f8659393b474d73840
2016-03-31 18:55:59 +09:00
Masayuki Nakano
0fbb1c8d67
Bug 1259662 part.2 Rename WidgetDragEvent::userCancelled to WidgetDragEvent::mUserCancelled r=smaug
...
MozReview-Commit-ID: 1Nx5NssvbM9
--HG--
extra : rebase_source : 5aff114e6728bc4608e4c0e5a386f2fa1a025e23
2016-03-31 19:06:05 +09:00
Masayuki Nakano
920137b6c6
Bug 1259662 part.1 Rename WidgetDragEvent::dataTransfer to WidgetDragEvent::mDataTransfer r=smaug
...
MozReview-Commit-ID: 6O8S0Yx7kBR
--HG--
extra : rebase_source : dc7936716cb8e09d5df83a985364b7301a2c6526
2016-03-31 17:26:32 +09:00
Carsten "Tomcat" Book
60c4cde799
Backed out changeset 76c66d5a8196 (bug 1000870)
2016-02-05 13:57:31 +01:00
Maksim Lebedev
75f766038d
Bug 1000870 - Add some features in testing system. r=smaug
2015-05-19 07:03:00 +02:00
Masayuki Nakano
2e9c9ae27c
Bug 1153156 part.3 Don't allow to override system scroll speed if the wheel event causes too fast scroll r=smaug+jimm
2016-01-27 15:09:13 +09:00
Masayuki Nakano
3d49c4fe37
Bug 1153156 part.2 Make WidgetWheelEvent store if overriding system scroll speed is allowed and it shouldn't be allowed if scroll speed isn't system default settings on Windows r=smaug+jimm
2016-01-27 15:09:13 +09:00
Masayuki Nakano
367ad6230a
Bug 1153156 part.1 Move nsBaseWidget::OverrideSystemMouseScrollSpeed() to WidgetWheelEvent r=smaug, sr=smaug
2016-01-27 15:09:13 +09:00
Andrea Marchesini
caa2f9b456
Bug 1231378 - part 4 - Fix uninitialized members of classes in netwerk/widget/storage/uriloader/memory/tools, r=smaug
2016-01-12 18:16:59 +00:00