/src/mozilla-central/dom/gamepad/ipc/GamepadEventChannelChild.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | #include "mozilla/dom/PGamepadEventChannelChild.h" |
7 | | |
8 | | #ifndef mozilla_dom_GamepadEventChannelChild_h_ |
9 | | #define mozilla_dom_GamepadEventChannelChild_h_ |
10 | | |
11 | | namespace mozilla{ |
12 | | namespace dom{ |
13 | | |
14 | | class GamepadEventChannelChild final : public PGamepadEventChannelChild |
15 | | { |
16 | | public: |
17 | 0 | GamepadEventChannelChild() {} |
18 | 0 | ~GamepadEventChannelChild() {} |
19 | | virtual mozilla::ipc::IPCResult |
20 | | RecvGamepadUpdate(const GamepadChangeEvent& aGamepadEvent) override; |
21 | | virtual mozilla::ipc::IPCResult |
22 | | RecvReplyGamepadVibrateHaptic(const uint32_t& aPromiseID) override; |
23 | | void AddPromise(const uint32_t& aID, dom::Promise* aPromise); |
24 | | |
25 | | private: |
26 | | nsRefPtrHashtable<nsUint32HashKey, dom::Promise> mPromiseList; |
27 | | }; |
28 | | |
29 | | }// namespace dom |
30 | | }// namespace mozilla |
31 | | |
32 | | #endif |