Line data Source code
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
3 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 : #include "mozilla/dom/PGamepadEventChannelChild.h"
5 :
6 : #ifndef mozilla_dom_GamepadEventChannelChild_h_
7 : #define mozilla_dom_GamepadEventChannelChild_h_
8 :
9 : namespace mozilla{
10 : namespace dom{
11 :
12 : class GamepadEventChannelChild final : public PGamepadEventChannelChild
13 : {
14 : public:
15 0 : GamepadEventChannelChild() {}
16 0 : ~GamepadEventChannelChild() {}
17 : virtual mozilla::ipc::IPCResult
18 : RecvGamepadUpdate(const GamepadChangeEvent& aGamepadEvent) override;
19 : virtual mozilla::ipc::IPCResult
20 : RecvReplyGamepadVibrateHaptic(const uint32_t& aPromiseID) override;
21 : void AddPromise(const uint32_t& aID, dom::Promise* aPromise);
22 :
23 : private:
24 : nsRefPtrHashtable<nsUint32HashKey, dom::Promise> mPromiseList;
25 : };
26 :
27 : }// namespace dom
28 : }// namespace mozilla
29 :
30 : #endif
|