Coverage Report

Created: 2018-09-25 14:53

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