GamepadTestChannelChild.h 876 B

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