Bug 1680955 - Update FallbackGamepad to use new GamepadHandle type r=handyman

Starting with one of my earlier patches in Bug 1657404, FreeBSD started seeing
an error,

```
ld.lld: error: undefined hidden symbol:
  mozilla::dom::SetGamepadLightIndicatorColor
```

We don't build this codepath as part of our regular Firefox testing, and so I
didn't see the issue.

Luckily, Jan Beich <jbeich@FreeBSD.org> noticed the issue and offered up this
patch. They unfortunately can't be given credit because they are protesting
our requirement for 2FA in Phabricator.

Differential Revision: https://phabricator.services.mozilla.com/D98973
This commit is contained in:
Chris Martin 2020-12-08 17:27:04 +00:00
Родитель 2c33431148
Коммит 46c9b248e1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -5,6 +5,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <stdint.h>
#include "mozilla/dom/GamepadHandle.h"
namespace mozilla {
namespace dom {
@ -13,7 +14,7 @@ void StartGamepadMonitoring() {}
void StopGamepadMonitoring() {}
void SetGamepadLightIndicatorColor(const Tainted<uint32_t>&,
void SetGamepadLightIndicatorColor(const Tainted<GamepadHandle>&,
const Tainted<uint32_t>&,
const Tainted<uint8_t>&,
const Tainted<uint8_t>&,