Daosheng Mu
2b669b7fa8
Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol
...
Differential Revision: https://phabricator.services.mozilla.com/D71678
2020-04-21 11:17:34 +00:00
Daosheng Mu
595afe46cc
Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67431
--HG--
extra : moz-landing-system : lando
2020-04-08 03:23:34 +00:00
Stefan Hindli
585cd46052
Backed out 3 changesets (bug 1617023) for causing mass bustages CLOSED TREE
...
Backed out changeset 2ff0eabe84e9 (bug 1617023)
Backed out changeset 8cadc6705690 (bug 1617023)
Backed out changeset 3a6247b39244 (bug 1617023)
2020-04-08 04:26:40 +03:00
Daosheng Mu
91ad9bdf58
Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67431
--HG--
extra : moz-landing-system : lando
2020-04-07 22:55:41 +00:00
Daosheng Mu
7f945fd97b
Bug 1611310 - Implement XRInputSource module. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67430
--HG--
extra : moz-landing-system : lando
2020-04-07 23:49:47 +00:00
Stefan Hindli
3b135390cf
Backed out changeset 717f97c0d871 (bug 1611310) for causing mass build bustages CLOSED TREE
2020-04-08 01:46:32 +03:00
Stefan Hindli
21c4b1ce50
Backed out 5 changesets (bug 1617023, bug 1627141, bug 1626812) for causing being related to Bug 1611310 CLOSED TREE
...
Backed out changeset b975de50682b (bug 1627141)
Backed out changeset 481325c44e80 (bug 1626812)
Backed out changeset 546b90fd1689 (bug 1617023)
Backed out changeset f54ac49bbc0a (bug 1617023)
Backed out changeset 1ebf382e7133 (bug 1617023)
2020-04-08 01:45:47 +03:00
Daosheng Mu
184166d359
Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67431
--HG--
extra : moz-landing-system : lando
2020-04-07 22:24:43 +00:00
Daosheng Mu
e2b211270f
Bug 1611310 - Implement XRInputSource module. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67430
--HG--
extra : moz-landing-system : lando
2020-04-07 21:26:01 +00:00
Daosheng Mu
c56864f05a
Bug 1627753
- Using signed long for index attribute in Gamepad. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D69854
--HG--
extra : moz-landing-system : lando
2020-04-07 09:13:50 +00:00
Eric Rahm
53f27d440b
Bug 1626450 - Remove stray references to "nsAutoPtr.h" in dom/. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D69121
--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:26 +00:00
Simon Giesecke
aaf6cb4e75
Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63899
--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Simon Giesecke
ed593cfea0
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/gamepad. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D63168
--HG--
extra : moz-landing-system : lando
2020-02-20 16:03:33 +00:00
Daosheng Mu
568789dad6
Bug 1606562 - Fixes XInput thumb value ranges. r=jmathies
...
sThumbXXX in XInput is a short and its value range is between -32768 and 32767.
Differential Revision: https://phabricator.services.mozilla.com/D60876
--HG--
extra : moz-landing-system : lando
2020-02-12 02:16:13 +00:00
Edgar Chen
9e846bd48a
bug 1610296
- Rename TypedArray_base::ComputeLengthAndData to TypedArray_base::ComputeState; r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D60514
--HG--
extra : moz-landing-system : lando
2020-01-23 03:22:06 +00:00
Daosheng Mu
33fd265be2
Bug 1604405 - Replace gamepad button array index with axis array index in Mac OS. r=baku
...
- Fixes wrong usage of button array index for axis id
- Added more warning and conditions for avoiding crashes happen
- Corrected aIndex vs aButton when checking button count.
Differential Revision: https://phabricator.services.mozilla.com/D57423
--HG--
extra : moz-landing-system : lando
2019-12-18 15:50:23 +00:00
Daosheng Mu
29a45f1bde
Bug 1579492 - Unregister input report callback when removing Cocoa gamepads. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D56256
--HG--
extra : moz-landing-system : lando
2019-12-16 08:26:37 +00:00
Daosheng Mu
509204cd2d
Bug 1593841 - Using Gamepad axis array index as its index in default remapper on Mac OS. r=baku
...
We notice for some unknown gamepads, their axes don't follow the kAxisUsageMin rule, so we should choose to
use array index as the axis id.
Differential Revision: https://phabricator.services.mozilla.com/D56058
--HG--
extra : moz-landing-system : lando
2019-12-06 19:19:50 +00:00
Gabriele Svelto
ace6d1063f
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55442
--HG--
extra : moz-landing-system : lando
2019-12-06 09:24:56 +00:00
Dorel Luca
a381d5c96d
Backed out changeset f6e53d1c6518 (bug 1600545) for Android build bustage. CLOSED TREE
2019-12-04 17:32:27 +02:00
Gabriele Svelto
bc9290f767
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55442
--HG--
extra : moz-landing-system : lando
2019-12-04 15:01:19 +00:00
Kearwood "Kip" Gilbert
a88d971183
Bug 1598483 - Expand XR and Gamepad related structs and enums to support WebXR r=daoshengmu,baku
...
The structs in moz_external_api.h need to be expanded to support WebXR.
We should land these changes separately to enable working on WebXR features and FxR Android-side code in parallel.
The changes have been carefully made, additive-ly, to avoid breaking existing code before the rest of the WebXR implementation has landed.
Differential Revision: https://phabricator.services.mozilla.com/D54216
--HG--
extra : moz-landing-system : lando
2019-11-29 11:30:36 +00:00
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