blob: 63a47b90647cb5077e748390baed59cee19758e6 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/speech/speech_synthesis_error_event.h"
namespace blink {
// static
SpeechSynthesisErrorEvent* SpeechSynthesisErrorEvent::Create(
const AtomicString& type,
const SpeechSynthesisErrorEventInit* init) {
return MakeGarbageCollected<SpeechSynthesisErrorEvent>(type, init);
}
SpeechSynthesisErrorEvent::SpeechSynthesisErrorEvent(
const AtomicString& type,
const SpeechSynthesisErrorEventInit* init)
: SpeechSynthesisEvent(type,
init->utterance(),
init->charIndex(),
init->charLength(),
init->elapsedTime(),
init->name()),
error_(init->error()) {}
} // namespace blink