Commit Graph

242 Commits

Author SHA1 Message Date
Csoregi Natalia
ee806041c6 Merge inbound to mozilla-central. a=merge 2019-06-09 12:06:26 +03:00
Sylvestre Ledru
f1fbd2ff00 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D33456

--HG--
extra : moz-landing-system : lando
2019-06-08 08:26:37 +00:00
Jan Beich
45ada47777 Bug 1555871 - Unbreak build on Tier3 after bug 1523351. r=daoshengmu 2019-05-30 18:55:00 +03:00
Boris Zbarsky
768b65d83a Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D33060

--HG--
extra : moz-landing-system : lando
2019-06-01 02:29:26 +00:00
Daosheng Mu
3db15dbbdb Bug 1523351 - Part 5: Add LightIndicatorColor dummy functions in other platforms. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D31114

--HG--
extra : moz-landing-system : lando
2019-05-29 22:15:19 +00:00
Daosheng Mu
337ebaba8a Bug 1523351 - Part 4: DS4 GamepadTouch and GamepadLightIndicator implementation in Windows. r=aklotz,baku
These should both be blocking reviewers.

Differential Revision: https://phabricator.services.mozilla.com/D29291

--HG--
extra : moz-landing-system : lando
2019-05-30 00:21:59 +00:00
Daosheng Mu
21043eccbc Bug 1523351 - Part 3: Handling GamepadTouch and GamepadLightIndicator events in Gamepad service. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29290

--HG--
extra : moz-landing-system : lando
2019-05-29 22:15:23 +00:00
Daosheng Mu
fc4437c39c Bug 1523351 - Part 2: Add tests for GamepadTouch and GamepadLightIndicator. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29289

--HG--
extra : moz-landing-system : lando
2019-05-29 22:15:25 +00:00
Daosheng Mu
7b8a1cc7ba Bug 1523351 - Part 1: GamepadTouch and GamepadLightIndicator WebAPI implementation. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D20744

--HG--
extra : moz-landing-system : lando
2019-05-29 22:44:24 +00:00
Daniel Varga
b173205f5e Backed out 5 changesets (bug 1523351) for build bustage at builds/worker/workspace/build/src/dom/gamepad/GamepadRemapping.cpp on a CLOSED TREE
Backed out changeset 723d0a919d71 (bug 1523351)
Backed out changeset 13dcba81ff07 (bug 1523351)
Backed out changeset 6209717410be (bug 1523351)
Backed out changeset 80b34e6ce876 (bug 1523351)
Backed out changeset 7bdb7982c3af (bug 1523351)
2019-05-30 01:10:11 +03:00
Daosheng Mu
8dc2ffb50b Bug 1523351 - Part 5: Add LightIndicatorColor dummy functions in other platforms. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D31114

--HG--
extra : moz-landing-system : lando
2019-05-29 20:48:23 +00:00
Daosheng Mu
2d2b678574 Bug 1523351 - Part 4: DS4 GamepadTouch and GamepadLightIndicator implementation in Windows. r=aklotz,baku
These should both be blocking reviewers.

Differential Revision: https://phabricator.services.mozilla.com/D29291

--HG--
extra : moz-landing-system : lando
2019-05-29 21:25:23 +00:00
Daosheng Mu
fdcc151ea4 Bug 1523351 - Part 3: Handling GamepadTouch and GamepadLightIndicator events in Gamepad service. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29290

--HG--
extra : moz-landing-system : lando
2019-05-29 20:48:27 +00:00
Daosheng Mu
304abbd74d Bug 1523351 - Part 2: Add tests for GamepadTouch and GamepadLightIndicator. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29289

--HG--
extra : moz-landing-system : lando
2019-05-29 20:48:29 +00:00
Daosheng Mu
f1193f9f17 Bug 1523351 - Part 1: GamepadTouch and GamepadLightIndicator WebAPI implementation. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D20744

--HG--
extra : moz-landing-system : lando
2019-05-29 21:44:28 +00:00
Daniel Varga
943f938b03 Backed out 5 changesets (bug 1523351) for causing build bustage at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/StaticPrefList.h on a CLOSED TREE
Backed out changeset 607b23dcc62a (bug 1523351)
Backed out changeset b8169dcf0631 (bug 1523351)
Backed out changeset 982cd43dc8d9 (bug 1523351)
Backed out changeset 053540f0b00a (bug 1523351)
Backed out changeset cac2a77abd09 (bug 1523351)
2019-05-29 23:45:15 +03:00
Daosheng Mu
9f3e3fcf84 Bug 1523351 - Part 5: Add LightIndicatorColor dummy functions in other platforms. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D31114

--HG--
extra : moz-landing-system : lando
2019-05-21 21:54:22 +00:00
Daosheng Mu
a6af1336a1 Bug 1523351 - Part 4: DS4 GamepadTouch and GamepadLightIndicator implementation in Windows. r=aklotz,baku
These should both be blocking reviewers.

Differential Revision: https://phabricator.services.mozilla.com/D29291

--HG--
extra : moz-landing-system : lando
2019-05-29 20:25:46 +00:00
Daosheng Mu
c41523ff67 Bug 1523351 - Part 3: Handling GamepadTouch and GamepadLightIndicator events in Gamepad service. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29290

--HG--
extra : moz-landing-system : lando
2019-05-22 23:02:26 +00:00
Daosheng Mu
8b44d0d2b9 Bug 1523351 - Part 2: Add tests for GamepadTouch and GamepadLightIndicator. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29289

--HG--
extra : moz-landing-system : lando
2019-05-22 05:54:43 +00:00
Daosheng Mu
fc365d059b Bug 1523351 - Part 1: GamepadTouch and GamepadLightIndicator WebAPI implementation. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D20744

--HG--
extra : moz-landing-system : lando
2019-05-23 05:36:31 +00:00
Sylvestre Ledru
96da5036ad Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D28948

--HG--
extra : moz-landing-system : lando
2019-04-28 09:30:05 +00:00
Daosheng Mu
9e73a18233 Bug 1545806 - Correct the initializer list in Windows gamepad axis value constructor. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28242

--HG--
extra : moz-landing-system : lando
2019-04-22 18:37:11 +00:00
Sylvestre Ledru
a1dce6440a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D28329

--HG--
extra : moz-landing-system : lando
2019-04-22 16:35:03 +00:00
Daosheng Mu
4eb28fa005 Bug 1545180 - Correct DualShock 4 mapping type. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D27945

--HG--
extra : moz-landing-system : lando
2019-04-18 06:44:09 +00:00
Daosheng Mu
2397e3dc11 Bug 1542893 - Remapping gamepads to standard mapping. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D27198

--HG--
extra : moz-landing-system : lando
2019-04-17 17:05:43 +00:00
Sylvestre Ledru
7f60810d86 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D27245

--HG--
extra : moz-landing-system : lando
2019-04-12 13:14:25 +00:00
Boris Zbarsky
d0bcf72821 Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27027

--HG--
extra : moz-landing-system : lando
2019-04-11 14:12:43 +00:00
Daosheng Mu
a88ec2c201 Bug 1465643 - Part 2: Remapping DualShock 4 buttons and axes on Windows. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D24217

--HG--
extra : moz-landing-system : lando
2019-04-08 20:21:28 +00:00
Daosheng Mu
0614a16811 Bug 1465643 - Part 1: Removing unused hasDpad logic in WindowsGamepad.cpp. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D25886

--HG--
extra : moz-landing-system : lando
2019-04-08 18:51:25 +00:00
Ehsan Akhgari
c2111e147b Bug 1532411 - Pass a document pointer to nsContentUtils::ShouldResistFingerprinting() callers in the gamepad API; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D21996

--HG--
extra : moz-landing-system : lando
2019-03-05 12:42:51 +00:00
Ryan Hunt
00e98538aa Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21106

--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Alex Gaynor
0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

Differential Revision: https://phabricator.services.mozilla.com/D18132

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +00:00
Alex Gaynor
75c7d1fa76 Bug 1512990 - Part 2 - implement direct calls in the IPDL compiler; r=froydnj
When calling a Recv/Alloc/Dealloc method on most types, cast `this` to the
derived class.

There is a heuristic to figure out what the correct derived type is. There is a
blacklist of types which we can't do direct calls on for the moment, as well as
an override for types that do work with direct calls but which don't match the
heuristic.

Differential Revision: https://phabricator.services.mozilla.com/D16492

--HG--
extra : moz-landing-system : lando
2019-02-06 15:57:37 +00:00
Ehsan Akhgari
e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Gabriele Svelto
19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Imanol Fernandez
424bea6436 Bug 1487079 - Fix hasOrientation and hasPosition are switched on WebVR GamepadPose r=qdot,kip
Differential Revision: https://phabricator.services.mozilla.com/D4534

--HG--
extra : moz-landing-system : lando
2018-08-29 22:09:48 +00:00
Imanol Fernandez
01d16686d3 Bug 1487115 - Fix navigator.Gamepads returns empty VR array after a page load when using gfxVRExternal r=qdot,kip
Differential Revision: https://phabricator.services.mozilla.com/D4570

--HG--
extra : moz-landing-system : lando
2018-08-29 19:10:55 +00:00
Andi-Bogdan Postelnicu
88cc63910d Bug 1453795 - DOM - Initialize member fields in classes/ structures. r=peterv
--HG--
extra : rebase_source : 249fc26e50bded4e94f5effa4308af0f1e54b908
2018-06-16 17:21:46 +03:00
Jed Davis
3921444145 Bug 1473193 - Don't use dom/gamepad/linux on non-Linux OSes. r=qdot
--HG--
extra : rebase_source : 4be168e7450c4618dd846f4be624d9f4043d91bd
2018-07-03 17:54:32 -07:00
Kyle Machulis
c126f54cc6 Bug 1324147 - Remove MOZ_GAMEPAD_BACKEND; r=daoshengmu
MOZ_WIDGET_TOOLKIT can be used for platform choice for Gamepad. Need
to leave linux header check in configure for now.

MozReview-Commit-ID: VT7T2KmLts

--HG--
extra : rebase_source : 02e7a23311c65fccffb1375a3adf8980d3d6031c
2018-06-27 12:32:36 -07:00
Jeff Gilbert
5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Adrian Wielgosik
c501e3beb0 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle

--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
Boris Zbarsky
0ba35d199f Bug 1455052 part 8. Stop using nsIDOMEvent in docshell and dom. r=masayuki
MozReview-Commit-ID: ASkuyN3xSwB
2018-04-20 12:55:30 -04:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Kyle Machulis
edc9099ead Bug 1404112 - Add bounds checks to gamepad dpad unpacking; r=ted
We weren't checking the length of our buttons array before referencing
dpad offsets, meaning if the HID descriptor reports something
different than we have, we can overflow.

MozReview-Commit-ID: 5RKxwDmmq0Z

--HG--
extra : rebase_source : afbe0aff9c89b8ded57462384f0bf4158facdbd9
2018-04-09 16:28:15 -07:00
Boris Zbarsky
4292bca4ee Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Kyle Machulis
c86096d041 Bug 1403185 - Fix button value index lookup oob for Windows Gamepads; r=ted
We can get button indexes in HID usage reports that do not actually
correspond to a button we store, meaning we can overstep bounds of the
button array. Check validity before accessing array.

MozReview-Commit-ID: AAQJLEgy2Ua
2018-03-28 15:54:53 -07:00