Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Daosheng Mu 94effe3091 Bug 1315896 - Part 2: Remove MOZ_GAMEPAD in Gamepad module; r=ted.mielczarek
MozReview-Commit-ID: Hbv6THaI5Rk

--HG--
extra : rebase_source : aa6b247881c45b2d615d5e37576801e91ed77312
2016-12-08 13:00:44 -10:00
Daosheng Mu 168eb8d109 Bug 1313581 - Part 1: Support hand attribute in GamepadAPI; r=kip,lenzak800,qdot
MozReview-Commit-ID: 9n48LGaqOP2

--HG--
extra : rebase_source : b4e7a0dd831a15b1b1ea36ef1dd8d1c83e7b3fce
2016-11-14 17:28:48 +08:00
Kan-Ru Chen f8100451db Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Daosheng Mu b3d0fb146a Bug 1299932 - Part 2: Support gamepadPose in GamepadManager; r=kip,lenzak800
MozReview-Commit-ID: 9wKxQIxaPbI

--HG--
extra : rebase_source : 33775aa408a6688f5d1ec8c277082a6675b0f720
2016-10-24 18:06:52 +08:00
Daosheng Mu 7168326772 Bug 1299932 - Part 1: Implement gamepadPose attribute in Gamepad API; r=kip,qdot
MozReview-Commit-ID: DiJadVc2TyE

--HG--
extra : rebase_source : f4571090518a084b6d4b1e6fccf951510b227fbd
2016-10-24 18:04:41 +08:00
Daosheng Mu 3df4c636a4 Bug 1310904 - Part 1: Solving non MOZ_GAMEPAD case in GamepadManager; r=lenzak800,qdot
MozReview-Commit-ID: IGkLwnSJtr1

--HG--
extra : rebase_source : 80c88ddc892711b3cd0b4f2e22f507de4333d458
2016-11-04 15:43:55 +08:00
Daosheng Mu 3670ffdaad Bug 1299929 - Part 1: Send GamepadServiceType in the the button and axis events; r=kip
MozReview-Commit-ID: AmrTpNFgkVj

--HG--
extra : rebase_source : c187592f9071fef94e8059ffdeab891c8432a397
2016-10-14 17:39:51 +08:00
Daosheng Mu a5c0fea409 Bug 1299928 - Part 1: Make GamepadManager knows the gamepad is from VRController when adding gamepads; r=kip,lenzak800
MozReview-Commit-ID: IBFqj2JTHxh

--HG--
extra : rebase_source : 7716900c17bedfef5b1dff10229f377e17ccb173
2016-10-04 10:57:04 +08:00
Nicholas Nethercote 34dcc7b852 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");

--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Kan-Ru Chen b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Chih-Yi Leu 810f0727b1 Bug 1221730 - Postpone singleton release in GamepadPlatformService::MaybeShutdown. r=baku
--HG--
extra : rebase_source : 4031bb8e791fa1c915261f3b2eaece28ebadb283
2016-06-28 00:27:00 +02:00
Chih-Yi Leu 8733310923 Bug 1221730 - Change GamepadServiceTest into webidl. r=qdot, r=baku
--HG--
extra : rebase_source : 8e04725e80467a17d1a1a775f791782abe842c1b
2016-06-28 00:26:00 +02:00
Chih-Yi Leu 42a49e9e8c Bug 1221730 - Move gamepad API to PBackground. r=qdot, r=baku
--HG--
extra : rebase_source : 5ad6d31a770d0d7b1b10d6aebf693ed24fc956ca
2016-06-28 00:25:00 +02:00