Commit Graph

183 Commits

Author SHA1 Message Date
Andrea Marchesini
122dbef06b Bug 1411257 - No MOZ_CRASH if BackgroundChild::GetOrCreateForCurrentThread() fails - part 6 - GamePad API, r=asuth
s
2017-10-25 08:45:53 +02:00
Andrea Marchesini
5bac671b8b Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 10 - Gamepad API, r=asuth 2017-10-24 12:02:40 +02:00
Andrea Marchesini
ac65753ef8 Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 9 - Gamepad Test, r=asuth 2017-10-24 12:02:40 +02:00
Sylvestre Ledru
d60d69e2cb Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj
MozReview-Commit-ID: DjDkL20wRg0

--HG--
extra : rebase_source : a343d83d1f4e97e4ba56d0f57fec93079df0b5ea
2017-10-23 20:59:55 +02:00
Nathan Froyd
47b2d43b88 Bug 1410102 - use fewer cycle collection macros for GamepadServiceTest; r=qdot
No reason to use a mess o' macros when a single one will do the trick.
2017-10-19 14:41:10 -04:00
Kris Maglione
60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Tom Ritter
f49999833d Bug 1406380 Fix -Wreorder warnings r=njn
MozReview-Commit-ID: 7Zh2pvAMpXR

--HG--
extra : rebase_source : 5052112ad66a66cd2974c4140c3fd430dcaa3adc
2017-10-09 01:36:36 -05:00
Tom Ritter
206913cd78 Bug 1404147 Fixed Unsigned/Signed comparison in WindowsGamepad.cpp r=qdot
MozReview-Commit-ID: 8qjkVdk6zWT

--HG--
extra : rebase_source : 4ab94a26c163eba551874d9aee05a9498d3a11fd
2017-09-28 17:00:05 -05:00
dmu@mozilla.com
92a1d766b1 Bug 1402749 - Part 1: Remove assertion for avoiding no gamepad listeners in race condition; r=Lenzak
MozReview-Commit-ID: AqWugbCKwwx

--HG--
extra : rebase_source : d25ad6c81b33fa57ff7c3ecfa931cc9f4f52fbd4
2017-09-28 17:11:24 +00:00
Phil Ringnalda
b1d45a9e89 Backed out changeset e98549c5dd9d (bug 1347519) for RunWatchdog shutdown hangs in Mac debug mochitest-1
MozReview-Commit-ID: Ew32xfcEJlx
2017-09-05 21:39:55 -07:00
Chih-Yi Leu
bcfdcffe4f Bug 1347519 - Use CFRunLoopSource for passing shutdown signal r=qdot
MozReview-Commit-ID: 9TgZaNywIQC

--HG--
extra : rebase_source : f4afebd4568cc707fd23fc1406c485b2e7f5868e
2017-09-01 14:41:35 +08:00
Andrew McCreight
78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Daosheng Mu
e709ee722a Bug 1382438 - Part 1: Get gamepads from globalWindow correctly for button and axis events; r=Lenzak
MozReview-Commit-ID: rB9ahFuozO

--HG--
extra : rebase_source : 98a2aee5ff90f5209bfaf1ee0ee42004b691af71
2017-07-27 11:22:29 +08:00
Daosheng Mu
8dcb583554 Bug 1352410 - Add a preference to enable or disable haptic feedback for gamepads; r=Lenzak
MozReview-Commit-ID: 70FFdcd3n5q

--HG--
extra : rebase_source : 42123c0dcb93160d1b0363c616e5bdfac11604a7
2017-07-27 17:55:16 +08:00
Chih-Yi Leu
47a2617b3f Bug 1381378: Refactor - Isolate gamepad index and GamepadServiceType from GamepadChangeEvent; r=daoshengmu
MozReview-Commit-ID: IFjvDsl6vlY

--HG--
extra : rebase_source : 2b9add020e182acb03c01bd5c55742dc7860625d
2017-07-17 11:44:39 +08:00
Daosheng Mu
2c94bb9dc0 Bug 1375816 - Part 2: DisplayId support in GamepadManager; r=Lenzak
MozReview-Commit-ID: 1zrePACFQWf

--HG--
extra : rebase_source : d96f344c5d0c422c496880f47076d731d60f2330
2017-07-14 16:55:52 +08:00
Daosheng Mu
4f33b3d9da Bug 1375816 - Part 1: Add displayId attribute in Gamepad; r=qdot
MozReview-Commit-ID: 7nrOrKRemGY

--HG--
extra : rebase_source : c5f4ffe0afec269a2c6c6c4dd459d436748bd5b7
2017-07-14 16:53:03 +08:00
Sebastian Hengst
62a9085842 Backed out changeset bec6c4becfd9 (bug 1375816) for bustage in gfxVROculus.cpp on Windows. r=backout 2017-07-18 11:49:37 +02:00
Sebastian Hengst
becce95e2d Backed out changeset ab013a0a0ae5 (bug 1375816) 2017-07-18 11:48:31 +02:00
Daosheng Mu
6137ea8dc0 Bug 1375816 - Part 2: DisplayId support in GamepadManager; r=Lenzak
MozReview-Commit-ID: 1zrePACFQWf

--HG--
extra : rebase_source : d8038e116435073e59f475f33cbffe0509670ddd
2017-07-14 16:55:52 +08:00
Daosheng Mu
5c5559750b Bug 1375816 - Part 1: Add displayId attribute in Gamepad; r=qdot
MozReview-Commit-ID: 7nrOrKRemGY

--HG--
extra : rebase_source : cbfa25fd22f66eee336529d63019f7e479fefb04
2017-07-14 16:53:03 +08:00
Wes Kocher
eaeabd21b5 Backed out 4 changesets (bug 1375816) for various failures including builds busted in gfxVROculus.cpp a=backout
Backed out changeset 73619b7ce23d (bug 1375816)
Backed out changeset dd09fc501f90 (bug 1375816)
Backed out changeset fd4517198d6c (bug 1375816)
Backed out changeset e15e060f034c (bug 1375816)

MozReview-Commit-ID: 9VXOC0V45NE
2017-07-17 23:18:21 -07:00
Daosheng Mu
4f401fdabb Bug 1375816 - Part 2: DisplayId support in GamepadManager; r=Lenzak
MozReview-Commit-ID: 1zrePACFQWf

--HG--
extra : rebase_source : d8038e116435073e59f475f33cbffe0509670ddd
2017-07-14 16:55:52 +08:00
Daosheng Mu
08d93aa476 Bug 1375816 - Part 1: Add displayId attribute in Gamepad; r=qdot
MozReview-Commit-ID: 7nrOrKRemGY

--HG--
extra : rebase_source : cbfa25fd22f66eee336529d63019f7e479fefb04
2017-07-14 16:53:03 +08:00
Bill McCloskey
224d56eb18 Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj)
MozReview-Commit-ID: 9zN9aAd7daA
2017-07-03 16:19:56 -07:00
Chung-Sheng Fu
a33a8c708d Bug 1337161 - Fix leak of GamepadPlatformService r=jhao,Lenzak
MozReview-Commit-ID: CPLg8kyL0xH

--HG--
extra : rebase_source : d3a42b792e63b6fe9893976bcf972cf039c2263b
2017-06-22 16:56:18 +08:00
Chung-Sheng Fu
49fb1d27d8 Bug 1337161 - Hide information of connected gamepads from content when privacy.resistFingerprinting is true r=arthuredelstein,smaug
MozReview-Commit-ID: Di6ba9B4w0d

--HG--
extra : rebase_source : 69b392d4c0fa7ed5ac8f4fa02091153537a99798
2017-06-15 17:59:26 +08:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bill McCloskey
aefa2aa5da Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.

MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -07:00
Masayuki Nakano
94170bb269 Bug 1370198 Back out the patch for bug 1369419 because the patch couldn't fix bug 1361132 and causes new crash bugs r=jimm
MozReview-Commit-ID: Eq7Dkk6Ghwc

--HG--
extra : rebase_source : edc2d10f4e0359152927830a269f74b75daf5883
2017-06-05 21:52:16 +09:00
Masayuki Nakano
d3789d2d6b Bug 1369419 GetMessage() and PeekMessage() shouldn't be used directly as far as possible r=jimm
In TSF mode, application should retrieve messages with ITfMessagePump::GetMessage() or ITfMessagePump::PeekMessage() since TSF/TIP may handle the message before or after the host application handles it.

This patch rewrites the API users with WinUtils::(Get|Peek)Message() which use ITfMessagePump if it's available.

MozReview-Commit-ID: LwHIgp7SxLH

--HG--
extra : rebase_source : aa5750af9812f9b107c29546cbee6f9eede6ebfa
2017-06-02 12:02:35 +09:00
Randall Barker
39225e3f07 Bug 1364267 - Prevent Android gamepad from dropping axis values r=ted
MozReview-Commit-ID: 3G5xwPKD4mq
2017-05-12 15:55:32 -07:00
Chih-Yi Leu
d0c49e91e8 Bug 1358064 - Simplify Gamepad Event processing; r=daoshengmu
MozReview-Commit-ID: 6CLyWx5w5Qu

--HG--
extra : rebase_source : 51ad3f2f01eb30a6f1de79eb38bffa5265a1ee90
2017-04-21 11:34:30 +08:00
Daosheng Mu
85b521a633 Bug 1362284 - Assign the background thread before flushing pending events at GamepadEventChannelParent; r=Lenzak
MozReview-Commit-ID: FcnAM1JSON2

--HG--
extra : rebase_source : 61ce19675463d6b32502d561cd90a6cfa782c72e
2017-05-05 01:21:39 +08:00
Daosheng Mu
3a6ad95915 Bug 1355648 - Part 3: Set position and orientation IsValid properties for GamepadPose tests; r=kip
MozReview-Commit-ID: 29sjo3yhg98

--HG--
extra : rebase_source : afb483713a3e895d81e20d4d8dc3861679f1781e
2017-04-26 13:17:25 +08:00
Daosheng Mu
df7c980c42 Bug 1355648 - Part 2: Handle GampadPose losing tracking situation; r=kip,qdot
MozReview-Commit-ID: FAWnYBuDfFy

--HG--
extra : rebase_source : c2e4c6f76f0f2f811c85ebbad16c252ada045949
2017-04-21 18:15:22 +08:00
Daosheng Mu
2c3593dc56 Bug 1358885 - Check VRManagerChild is created in GampadManager for avoiding crash on Android; r=kip
MozReview-Commit-ID: 5Jf4nZjZkFN

--HG--
extra : rebase_source : 6dc725ab27efc962d7f7bd9ba5711ba8c31db9ed
2017-04-24 12:56:41 +08:00
Phil Ringnalda
7e834ae6b6 Backed out 2 changesets (bug 1355648) for failures in test_gamepad_extensions.html
CLOSED TREE

Backed out changeset 1a675abcc1f0 (bug 1355648)
Backed out changeset f07c7d6ddb8d (bug 1355648)

MozReview-Commit-ID: 86HfzOsNVjZ
2017-04-25 20:31:16 -07:00
Daosheng Mu
64ca304e37 Bug 1355648 - Part 2: Handle GampadPose losing tracking situation; r=kip,qdot
MozReview-Commit-ID: FAWnYBuDfFy

--HG--
extra : rebase_source : 08437d75379acb5e4701cef0b39512ca482d52f3
2017-04-21 18:15:22 +08:00
Daosheng Mu
0d1a38ef9a Bug 1356452 - Part 4: Add gamepad set hand function in Gamepad; r=qdot
MozReview-Commit-ID: LrQjMZ6demG

--HG--
extra : rebase_source : 56fe3af2ba69be38226b51248ae53a8bf4bbe0c2
2017-04-18 15:56:08 +08:00
Daosheng Mu
9e638e1eac Bug 1356452 - Part 3: Support changing gamepad hand property in GamepadManager; r=Lenzak
MozReview-Commit-ID: KZx2qJqks6f

--HG--
extra : rebase_source : f2d3d70f7394964b07bc45d4db1bfd6b56694e38
2017-04-18 15:55:15 +08:00
Daosheng Mu
d834dfb544 Bug 1336002 - Part 2: Support button touched in GamepadManager; r=Lenzak
MozReview-Commit-ID: DcX988Obthp

--HG--
extra : rebase_source : 590704bc0e5edc0ed446da19267ad16a8f728ee6
2017-04-07 09:35:13 +08:00
Daosheng Mu
66e6df1d73 Bug 1336002 - Part 1: Support button touched in the Gamepad API; r=qdot
MozReview-Commit-ID: FVWo5bpuSkS

--HG--
extra : rebase_source : 5bf9742409ac4466c3fa289c9a7a2596c4983de7
2017-04-06 18:36:46 +08:00
Daosheng Mu
3ab8ee7fa3 Bug 1354977 - Update timestamp when gamepadpose is changed; r=qdot
MozReview-Commit-ID: 2glmvw5xUCH

--HG--
extra : rebase_source : afea8296041574fb182b278b588a1e3282c68c3d
2017-04-06 18:37:29 +08:00
Daosheng Mu
a747e7db60 Bug 1350682 - Call VRManagerChild getter when need it at GamepadManager instead of keeping it; r=kip,Lenzak
MozReview-Commit-ID: 2kbPEJ09DOP

--HG--
extra : rebase_source : bb84cc4db9abca70400b68a4445dc7fbb981153b
2017-03-28 11:31:00 +08:00
Daosheng Mu
62781e3b7d Bug 1299937 - Part 6: Handle Stop vibrating when the window defoucses; r=qdot
MozReview-Commit-ID: Kvd40jnSPvK

--HG--
extra : rebase_source : f9ce4c68fd07376b8e18cbab08718c49d6fed455
2017-03-07 10:17:57 +08:00