Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dom/bindings/PerformanceEntryEvent.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 PerformanceEntryEvent.webidl BY Codegen.py - DO NOT EDIT */
8
9
#include "EventBinding.h"
10
#include "PerformanceEntryEvent.h"
11
#include "PerformanceEntryEventBinding.h"
12
#include "js/GCAPI.h"
13
#include "mozilla/FloatingPoint.h"
14
#include "mozilla/dom/Nullable.h"
15
#include "mozilla/dom/PerformanceEntryEvent.h"
16
#include "mozilla/dom/PrimitiveConversions.h"
17
18
namespace mozilla {
19
namespace dom {
20
21
22
PerformanceEntryEvent::PerformanceEntryEvent(mozilla::dom::EventTarget* aOwner)
23
  : Event(aOwner, nullptr, nullptr)
24
0
{
25
0
}
26
27
PerformanceEntryEvent::~PerformanceEntryEvent()
28
0
{
29
0
}
30
31
PerformanceEntryEvent*
32
PerformanceEntryEvent::AsPerformanceEntryEvent()
33
0
{
34
0
  return this;
35
0
}
36
37
JSObject*
38
PerformanceEntryEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
39
0
{
40
0
  return PerformanceEntryEvent_Binding::Wrap(aCx, this, aGivenProto);
41
0
}
42
43
already_AddRefed<PerformanceEntryEvent>
44
PerformanceEntryEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const PerformanceEntryEventInit& aEventInitDict)
45
0
{
46
0
  RefPtr<PerformanceEntryEvent> e = new PerformanceEntryEvent(aOwner);
47
0
  bool trusted = e->Init(aOwner);
48
0
  e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
49
0
  e->mName = aEventInitDict.mName;
50
0
  e->mEntryType = aEventInitDict.mEntryType;
51
0
  e->mStartTime = aEventInitDict.mStartTime;
52
0
  e->mDuration = aEventInitDict.mDuration;
53
0
  e->mEpoch = aEventInitDict.mEpoch;
54
0
  e->mOrigin = aEventInitDict.mOrigin;
55
0
  e->SetTrusted(trusted);
56
0
  e->SetComposed(aEventInitDict.mComposed);
57
0
  return e.forget();
58
0
}
59
60
already_AddRefed<PerformanceEntryEvent>
61
PerformanceEntryEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const PerformanceEntryEventInit& aEventInitDict, ErrorResult& aRv)
62
0
{
63
0
  nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
64
0
  return Constructor(owner, aType, aEventInitDict);
65
0
}
66
67
void
68
PerformanceEntryEvent::GetName(nsString& aRetVal) const
69
0
{
70
0
  aRetVal = mName;
71
0
}
72
73
void
74
PerformanceEntryEvent::GetEntryType(nsString& aRetVal) const
75
0
{
76
0
  aRetVal = mEntryType;
77
0
}
78
79
double
80
PerformanceEntryEvent::StartTime() const
81
0
{
82
0
  return mStartTime;
83
0
}
84
85
double
86
PerformanceEntryEvent::Duration() const
87
0
{
88
0
  return mDuration;
89
0
}
90
91
double
92
PerformanceEntryEvent::Epoch() const
93
0
{
94
0
  return mEpoch;
95
0
}
96
97
void
98
PerformanceEntryEvent::GetOrigin(nsString& aRetVal) const
99
0
{
100
0
  aRetVal = mOrigin;
101
0
}
102
103
104
} // namespace dom
105
} // namespace mozilla