Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM SVGPathSeg.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_SVGPATHSEGBINDING_H_
#define DOM_SVGPATHSEGBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
#include "mozilla/dom/PrototypeList.h"
namespace mozilla {
namespace dom {
class DOMSVGPathSeg;
class DOMSVGPathSegArcAbs;
class DOMSVGPathSegArcRel;
class DOMSVGPathSegClosePath;
class DOMSVGPathSegCurvetoCubicAbs;
class DOMSVGPathSegCurvetoCubicRel;
class DOMSVGPathSegCurvetoCubicSmoothAbs;
class DOMSVGPathSegCurvetoCubicSmoothRel;
class DOMSVGPathSegCurvetoQuadraticAbs;
class DOMSVGPathSegCurvetoQuadraticRel;
class DOMSVGPathSegCurvetoQuadraticSmoothAbs;
class DOMSVGPathSegCurvetoQuadraticSmoothRel;
class DOMSVGPathSegLinetoAbs;
class DOMSVGPathSegLinetoHorizontalAbs;
class DOMSVGPathSegLinetoHorizontalRel;
class DOMSVGPathSegLinetoRel;
class DOMSVGPathSegLinetoVerticalAbs;
class DOMSVGPathSegLinetoVerticalRel;
class DOMSVGPathSegMovetoAbs;
class DOMSVGPathSegMovetoRel;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
namespace SVGPathSeg_Binding {
typedef mozilla::dom::DOMSVGPathSeg NativeType;
static const uint16_t PATHSEG_UNKNOWN = 0;
static const uint16_t PATHSEG_CLOSEPATH = 1;
static const uint16_t PATHSEG_MOVETO_ABS = 2;
static const uint16_t PATHSEG_MOVETO_REL = 3;
static const uint16_t PATHSEG_LINETO_ABS = 4;
static const uint16_t PATHSEG_LINETO_REL = 5;
static const uint16_t PATHSEG_CURVETO_CUBIC_ABS = 6;
static const uint16_t PATHSEG_CURVETO_CUBIC_REL = 7;
static const uint16_t PATHSEG_CURVETO_QUADRATIC_ABS = 8;
static const uint16_t PATHSEG_CURVETO_QUADRATIC_REL = 9;
static const uint16_t PATHSEG_ARC_ABS = 10;
static const uint16_t PATHSEG_ARC_REL = 11;
static const uint16_t PATHSEG_LINETO_HORIZONTAL_ABS = 12;
static const uint16_t PATHSEG_LINETO_HORIZONTAL_REL = 13;
static const uint16_t PATHSEG_LINETO_VERTICAL_ABS = 14;
static const uint16_t PATHSEG_LINETO_VERTICAL_REL = 15;
static const uint16_t PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
static const uint16_t PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
static const uint16_t PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
static const uint16_t PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSeg,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
JSObject*
GetProtoObject(JSContext* aCx);
} // namespace SVGPathSeg_Binding
namespace SVGPathSegArcAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegArcAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegArcAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegArcAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegArcAbs_Binding
namespace SVGPathSegArcRel_Binding {
typedef mozilla::dom::DOMSVGPathSegArcRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegArcRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegArcRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegArcRel_Binding
namespace SVGPathSegClosePath_Binding {
typedef mozilla::dom::DOMSVGPathSegClosePath NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegClosePath* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegClosePath,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegClosePath_Binding
namespace SVGPathSegCurvetoCubicAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoCubicAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoCubicAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoCubicAbs_Binding
namespace SVGPathSegCurvetoCubicRel_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoCubicRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoCubicRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoCubicRel_Binding
namespace SVGPathSegCurvetoCubicSmoothAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoCubicSmoothAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoCubicSmoothAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicSmoothAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoCubicSmoothAbs_Binding
namespace SVGPathSegCurvetoCubicSmoothRel_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoCubicSmoothRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoCubicSmoothRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicSmoothRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoCubicSmoothRel_Binding
namespace SVGPathSegCurvetoQuadraticAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoQuadraticAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoQuadraticAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoQuadraticAbs_Binding
namespace SVGPathSegCurvetoQuadraticRel_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoQuadraticRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoQuadraticRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoQuadraticRel_Binding
namespace SVGPathSegCurvetoQuadraticSmoothAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoQuadraticSmoothAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoQuadraticSmoothAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticSmoothAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoQuadraticSmoothAbs_Binding
namespace SVGPathSegCurvetoQuadraticSmoothRel_Binding {
typedef mozilla::dom::DOMSVGPathSegCurvetoQuadraticSmoothRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegCurvetoQuadraticSmoothRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticSmoothRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegCurvetoQuadraticSmoothRel_Binding
namespace SVGPathSegLinetoAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegLinetoAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegLinetoAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegLinetoAbs_Binding
namespace SVGPathSegLinetoHorizontalAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegLinetoHorizontalAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegLinetoHorizontalAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoHorizontalAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegLinetoHorizontalAbs_Binding
namespace SVGPathSegLinetoHorizontalRel_Binding {
typedef mozilla::dom::DOMSVGPathSegLinetoHorizontalRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegLinetoHorizontalRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoHorizontalRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegLinetoHorizontalRel_Binding
namespace SVGPathSegLinetoRel_Binding {
typedef mozilla::dom::DOMSVGPathSegLinetoRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegLinetoRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegLinetoRel_Binding
namespace SVGPathSegLinetoVerticalAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegLinetoVerticalAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegLinetoVerticalAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoVerticalAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegLinetoVerticalAbs_Binding
namespace SVGPathSegLinetoVerticalRel_Binding {
typedef mozilla::dom::DOMSVGPathSegLinetoVerticalRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegLinetoVerticalRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoVerticalRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegLinetoVerticalRel_Binding
namespace SVGPathSegMovetoAbs_Binding {
typedef mozilla::dom::DOMSVGPathSegMovetoAbs NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegMovetoAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegMovetoAbs,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegMovetoAbs_Binding
namespace SVGPathSegMovetoRel_Binding {
typedef mozilla::dom::DOMSVGPathSegMovetoRel NativeType;
bool
Wrap(JSContext* aCx, mozilla::dom::DOMSVGPathSegMovetoRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
{
/* Get the interface prototype object for this class. This will create the
object as needed. */
return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegMovetoRel,
&CreateInterfaceObjects,
/* aDefineOnGlobal = */ true);
}
} // namespace SVGPathSegMovetoRel_Binding
} // namespace mozilla::dom
#endif // DOM_SVGPATHSEGBINDING_H_