2017-10-27 01:08:41 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2016-06-28 01:26:00 +03:00
|
|
|
/* 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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "mozilla/dom/PGamepadTestChannelChild.h"
|
|
|
|
#include "mozilla/dom/Promise.h"
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_GamepadTestChannelChild_h_
|
|
|
|
# define mozilla_dom_GamepadTestChannelChild_h_
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
class GamepadTestChannelChild final : public PGamepadTestChannelChild {
|
2019-02-06 18:57:37 +03:00
|
|
|
friend class PGamepadTestChannelChild;
|
|
|
|
|
2016-06-28 01:26:00 +03:00
|
|
|
public:
|
2020-02-20 19:03:33 +03:00
|
|
|
GamepadTestChannelChild() = default;
|
|
|
|
~GamepadTestChannelChild() = default;
|
2016-06-28 01:26:00 +03:00
|
|
|
void AddPromise(const uint32_t& aID, Promise* aPromise);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2016-06-28 01:26:00 +03:00
|
|
|
private:
|
2019-02-06 18:58:43 +03:00
|
|
|
mozilla::ipc::IPCResult RecvReplyGamepadIndex(const uint32_t& aID,
|
|
|
|
const uint32_t& aIndex);
|
2017-02-02 10:00:51 +03:00
|
|
|
|
|
|
|
nsRefPtrHashtable<nsUint32HashKey, dom::Promise> mPromiseList;
|
2016-06-28 01:26:00 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|