author Daosheng Mu <>
Tue, 07 Mar 2017 10:17:57 +0800
changeset 349320 5d8e162ef5f73106037a6ad5c34770f26ab86447
parent 349319 3c1984bdf4047df79fde8e84264f17de80351f20
child 476130 982cd43dc8d94c0874d10f91e269bec393035cb7
permissions -rw-r--r--
Bug 1299937 - Part 6: Handle Stop vibrating when the window defoucses; r=qdot MozReview-Commit-ID: Kvd40jnSPvK

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at */
include protocol PBackground;
include GamepadEventTypes;

namespace mozilla {
namespace dom {

async protocol PGamepadEventChannel {
  manager PBackground;
    async GamepadListenerAdded();
    async GamepadListenerRemoved();
    async VibrateHaptic(uint32_t aControllerIdx, uint32_t aHapticIndex,
                        double aIntensity, double aDuration, uint32_t aPromiseID);
    async StopVibrateHaptic(uint32_t aGamepadIndex);

    async __delete__();
    async GamepadUpdate(GamepadChangeEvent aGamepadEvent);
    async ReplyGamepadVibrateHaptic(uint32_t aPromiseID);