Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dom/bindings/GamepadAxisMoveEvent.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim:set ts=2 sw=2 sts=2 et cindent: */
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
/* THIS FILE IS AUTOGENERATED FROM GamepadAxisMoveEvent.webidl BY Codegen.py - DO NOT EDIT */
8
9
#include "GamepadAxisMoveEvent.h"
10
#include "GamepadAxisMoveEventBinding.h"
11
#include "GamepadEventBinding.h"
12
#include "js/GCAPI.h"
13
#include "mozilla/FloatingPoint.h"
14
#include "mozilla/dom/GamepadAxisMoveEvent.h"
15
#include "mozilla/dom/Nullable.h"
16
#include "mozilla/dom/PrimitiveConversions.h"
17
18
namespace mozilla {
19
namespace dom {
20
21
22
GamepadAxisMoveEvent::GamepadAxisMoveEvent(mozilla::dom::EventTarget* aOwner)
23
  : GamepadEvent(aOwner)
24
0
{
25
0
}
26
27
GamepadAxisMoveEvent::~GamepadAxisMoveEvent()
28
0
{
29
0
}
30
31
GamepadAxisMoveEvent*
32
GamepadAxisMoveEvent::AsGamepadAxisMoveEvent()
33
0
{
34
0
  return this;
35
0
}
36
37
JSObject*
38
GamepadAxisMoveEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
39
0
{
40
0
  return GamepadAxisMoveEvent_Binding::Wrap(aCx, this, aGivenProto);
41
0
}
42
43
already_AddRefed<GamepadAxisMoveEvent>
44
GamepadAxisMoveEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const GamepadAxisMoveEventInit& aEventInitDict)
45
0
{
46
0
  RefPtr<GamepadAxisMoveEvent> e = new GamepadAxisMoveEvent(aOwner);
47
0
  bool trusted = e->Init(aOwner);
48
0
  e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
49
0
  e->mAxis = aEventInitDict.mAxis;
50
0
  e->mValue = aEventInitDict.mValue;
51
0
  e->mGamepad = aEventInitDict.mGamepad;
52
0
  e->SetTrusted(trusted);
53
0
  e->SetComposed(aEventInitDict.mComposed);
54
0
  return e.forget();
55
0
}
56
57
already_AddRefed<GamepadAxisMoveEvent>
58
GamepadAxisMoveEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const GamepadAxisMoveEventInit& aEventInitDict, ErrorResult& aRv)
59
0
{
60
0
  nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
61
0
  return Constructor(owner, aType, aEventInitDict);
62
0
}
63
64
uint32_t
65
GamepadAxisMoveEvent::Axis() const
66
0
{
67
0
  return mAxis;
68
0
}
69
70
double
71
GamepadAxisMoveEvent::Value() const
72
0
{
73
0
  return mValue;
74
0
}
75
76
77
} // namespace dom
78
} // namespace mozilla