Commit Graph

252 Commits

Author SHA1 Message Date
Gabriele Svelto
10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
Daosheng Mu
a7ca387905 Bug 1579492 - Check if nullptr in DarwinGamepadService::ReportChangedCallback(). r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45135

--HG--
extra : moz-landing-system : lando
2019-09-09 11:58:01 +00:00
Imanol Fernandez
dea3eb36d1 Bug 1574996 - Fix broken VRPose arrays. r=kip
Fix broken array and simplify Pose::SetFloat32Array (remove bCreate parameter)

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

--HG--
extra : moz-landing-system : lando
2019-08-20 18:34:24 +00:00
Imanol Fernandez
5c78386c22 Bug 1569605 - Reuse WebVR FrameData Float32Arrays. r=kip,rbarker
Summary Do not recreate WebVR FrameData Float32Arrays every frame.:

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

--HG--
extra : moz-landing-system : lando
2019-07-30 00:23:38 +00:00
Nicholas Nethercote
18fae65f38 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
Daosheng Mu
43693c08b6 Bug 1523353 - Part 2: DS4 gamepad multitouch and lightindicator support on Mac OS. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D37463

--HG--
extra : moz-landing-system : lando
2019-07-15 07:37:19 +00:00
Daosheng Mu
3087968487 Bug 1523353 - Part 1: Remapping MacOS gamepads to standard gamepads. r=baku
Follow the same rule that how we did remapping on Windows at Bug 1545180. Besides, dpad on MacOS needs to be accessed as axis values, we also did this way on Windows.

https://bugzilla.mozilla.org/show_bug.cgi?id=1523353#c2

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

--HG--
extra : moz-landing-system : lando
2019-07-15 07:36:36 +00:00
Sylvestre Ledru
131d0c6a02 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-07-06 08:18:28 +00:00
Daosheng Mu
3d724ce105 Bug 1555484 - Clean DS4 GamepadTouchState when stopping touching. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33209

--HG--
extra : moz-landing-system : lando
2019-06-19 17:30:33 +00:00
Peter Van der Beken
8b00dd9ff2 Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33507

--HG--
extra : moz-landing-system : lando
2019-06-13 09:00:59 +00:00
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