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/PGamepadTestChannelParent.h"
6 :
7 : #ifndef mozilla_dom_GamepadTestChannelParent_h_
8 : #define mozilla_dom_GamepadTestChannelParent_h_
9 :
10 : namespace mozilla {
11 : namespace dom {
12 :
13 : class GamepadTestChannelParent final : public PGamepadTestChannelParent
14 : {
15 : public:
16 0 : NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GamepadTestChannelParent)
17 0 : GamepadTestChannelParent()
18 0 : : mShuttingdown(false) {}
19 0 : virtual void ActorDestroy(ActorDestroyReason aWhy) override {}
20 : virtual mozilla::ipc::IPCResult
21 : RecvGamepadTestEvent(const uint32_t& aID,
22 : const GamepadChangeEvent& aGamepadEvent) override;
23 : virtual mozilla::ipc::IPCResult
24 : RecvShutdownChannel() override;
25 : private:
26 0 : ~GamepadTestChannelParent() {}
27 : bool mShuttingdown;
28 : };
29 :
30 : }// namespace dom
31 : }// namespace mozilla
32 :
33 : #endif
|