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 :
5 : #include "mozilla/dom/PGamepadTestChannelChild.h"
6 : #include "mozilla/dom/Promise.h"
7 :
8 : #ifndef mozilla_dom_GamepadTestChannelChild_h_
9 : #define mozilla_dom_GamepadTestChannelChild_h_
10 :
11 : namespace mozilla {
12 : namespace dom {
13 :
14 : class GamepadTestChannelChild final : public PGamepadTestChannelChild
15 : {
16 : public:
17 0 : GamepadTestChannelChild() {}
18 0 : ~GamepadTestChannelChild() {}
19 : void AddPromise(const uint32_t& aID, Promise* aPromise);
20 : private:
21 : virtual mozilla::ipc::IPCResult RecvReplyGamepadIndex(const uint32_t& aID,
22 : const uint32_t& aIndex) override;
23 :
24 : nsRefPtrHashtable<nsUint32HashKey, dom::Promise> mPromiseList;
25 : };
26 :
27 : }// namespace dom
28 : }// namespace mozilla
29 :
30 : #endif
|