Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dom/bindings/SpeechSynthesisErrorEvent.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 SpeechSynthesisErrorEvent.webidl BY Codegen.py - DO NOT EDIT */
8
9
#include "SpeechSynthesisErrorEvent.h"
10
#include "SpeechSynthesisErrorEventBinding.h"
11
#include "SpeechSynthesisEventBinding.h"
12
#include "js/GCAPI.h"
13
#include "mozilla/dom/Nullable.h"
14
#include "mozilla/dom/PrimitiveConversions.h"
15
#include "mozilla/dom/SpeechSynthesisErrorEvent.h"
16
17
namespace mozilla {
18
namespace dom {
19
20
21
SpeechSynthesisErrorEvent::SpeechSynthesisErrorEvent(mozilla::dom::EventTarget* aOwner)
22
  : SpeechSynthesisEvent(aOwner)
23
0
{
24
0
}
25
26
SpeechSynthesisErrorEvent::~SpeechSynthesisErrorEvent()
27
0
{
28
0
}
29
30
SpeechSynthesisErrorEvent*
31
SpeechSynthesisErrorEvent::AsSpeechSynthesisErrorEvent()
32
0
{
33
0
  return this;
34
0
}
35
36
JSObject*
37
SpeechSynthesisErrorEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
38
0
{
39
0
  return SpeechSynthesisErrorEvent_Binding::Wrap(aCx, this, aGivenProto);
40
0
}
41
42
already_AddRefed<SpeechSynthesisErrorEvent>
43
SpeechSynthesisErrorEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const SpeechSynthesisErrorEventInit& aEventInitDict)
44
0
{
45
0
  RefPtr<SpeechSynthesisErrorEvent> e = new SpeechSynthesisErrorEvent(aOwner);
46
0
  bool trusted = e->Init(aOwner);
47
0
  e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
48
0
  e->mError = aEventInitDict.mError;
49
0
  e->mUtterance = aEventInitDict.mUtterance;
50
0
  e->mCharIndex = aEventInitDict.mCharIndex;
51
0
  e->mCharLength = aEventInitDict.mCharLength;
52
0
  e->mElapsedTime = aEventInitDict.mElapsedTime;
53
0
  e->mName = aEventInitDict.mName;
54
0
  e->SetTrusted(trusted);
55
0
  e->SetComposed(aEventInitDict.mComposed);
56
0
  return e.forget();
57
0
}
58
59
already_AddRefed<SpeechSynthesisErrorEvent>
60
SpeechSynthesisErrorEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const SpeechSynthesisErrorEventInit& aEventInitDict, ErrorResult& aRv)
61
0
{
62
0
  nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
63
0
  return Constructor(owner, aType, aEventInitDict);
64
0
}
65
66
SpeechSynthesisErrorCode
67
SpeechSynthesisErrorEvent::Error() const
68
0
{
69
0
  return mError;
70
0
}
71
72
73
} // namespace dom
74
} // namespace mozilla