tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PGamepadEventChannel.ipdl (1276B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 include protocol PBackground;
      5 include "mozilla/dom/GamepadMessageUtils.h";
      6 include GamepadEventTypes;
      7 
      8 using mozilla::dom::GamepadHandle from "mozilla/dom/GamepadHandle.h";
      9 
     10 namespace mozilla {
     11 namespace dom {
     12 
     13 protocol PGamepadEventChannel {
     14   manager PBackground;
     15   parent:
     16     async __delete__();
     17 
     18     [Tainted] async VibrateHaptic(GamepadHandle aHandle, uint32_t aHapticIndex,
     19                                   double aIntensity, double aDuration, [NoTaint=passback] uint32_t aPromiseID);
     20     [Tainted] async StopVibrateHaptic(GamepadHandle aHandle);
     21     [Tainted] async LightIndicatorColor(GamepadHandle aHandle, uint32_t aLightColorIndex,
     22                                         [NoTaint=allvalid] uint8_t aRed, [NoTaint=allvalid] uint8_t aGreen,
     23                                         [NoTaint=allvalid] uint8_t aBlue, [NoTaint=passback] uint32_t aPromiseID);
     24     async RequestAllGamepads()
     25         returns (GamepadAdded[] gamepads);
     26 
     27   child:
     28     async GamepadUpdate(GamepadChangeEvent aGamepadEvent);
     29     async ReplyGamepadPromise(uint32_t aPromiseID);
     30 };
     31 
     32 }
     33 }