Copy as Markdown
Other Tools
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
/* THIS FILE IS AUTOGENERATED FROM MediaRecorderErrorEvent.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_MEDIARECORDERERROREVENT_H_
#define DOM_MEDIARECORDERERROREVENT_H_
#include "mozilla/Attributes.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/MediaRecorderErrorEventBinding.h"
struct JSContext;
namespace mozilla::dom {
class MediaRecorderErrorEvent : public Event
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaRecorderErrorEvent, Event)
protected:
virtual ~MediaRecorderErrorEvent();
explicit MediaRecorderErrorEvent(mozilla::dom::EventTarget* aOwner);
RefPtr<DOMException> mError;
public:
MediaRecorderErrorEvent* AsMediaRecorderErrorEvent() override;
JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<MediaRecorderErrorEvent> Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const MediaRecorderErrorEventInit& aEventInitDict);
static already_AddRefed<MediaRecorderErrorEvent> Constructor(const GlobalObject& aGlobal, const nsAString& aType, const MediaRecorderErrorEventInit& aEventInitDict);
DOMException* Error() const;
};
} // namespace mozilla::dom
#endif // DOM_MEDIARECORDERERROREVENT_H_