Commit 8dc2ffb5 authored by Daosheng Mu's avatar Daosheng Mu
Browse files

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
parent 2d2b6785
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -79,5 +79,10 @@ void StopGamepadMonitoring() {
      java::GeckoAppShell::GetApplicationContext());
}

void SetGamepadLightIndicatorColor(uint32_t aControllerIdx, uint32_t aLightColorIndex,
    uint8_t aRed, uint8_t aGreen, uint8_t aBlue) {
  NS_WARNING("Android doesn't support gamepad light indicator.");
}

}  // namespace dom
}  // namespace mozilla
+6 −0
Original line number Diff line number Diff line
@@ -599,5 +599,11 @@ void StopGamepadMonitoring() {
  gService->Shutdown();
}

void SetGamepadLightIndicatorColor(uint32_t aControllerIdx, uint32_t aLightColorIndex,
    uint8_t aRed, uint8_t aGreen, uint8_t aBlue) {
  // TODO: Bug 1523353.
  NS_WARNING("Mac OS doesn't support gamepad light indicator.");
}

}  // namespace dom
}  // namespace mozilla
+6 −0
Original line number Diff line number Diff line
@@ -343,5 +343,11 @@ void StopGamepadMonitoring() {
  gService = nullptr;
}

void SetGamepadLightIndicatorColor(uint32_t aControllerIdx, uint32_t aLightColorIndex,
    uint8_t aRed, uint8_t aGreen, uint8_t aBlue) {
  // TODO: Bug 1523355.
  NS_WARNING("Linux doesn't support gamepad light indicator.");
}

}  // namespace dom
}  // namespace mozilla