/* THIS FILE IS AUTOGENERATED FROM TimelineRangeOffset.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_TIMELINERANGEOFFSETBINDING_H_
#define DOM_TIMELINERANGEOFFSETBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/CSSNumericValue.h"
#include "mozilla/dom/Nullable.h"
#include "nsCycleCollectionParticipant.h"
namespace mozilla {
namespace dom {
class CSSNumericValue;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
struct TimelineRangeOffsetAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct MOZ_EMPTY_BASES TimelineRangeOffset : public MaybeEmptyDictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<OwningNonNull<mozilla::dom::CSSNumericValue>> mOffset;
MOZ_INIT_OUTSIDE_CTOR Optional<nsCString> mRangeName;
TimelineRangeOffset();
explicit inline TimelineRangeOffset(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
TimelineRangeOffset(TimelineRangeOffset&& aOther) = default;
explicit inline TimelineRangeOffset(const TimelineRangeOffset& aOther)
{
*this = aOther;
}
bool
Init(BindingCallContext& cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
Init(JSContext* cx_, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
inline void
TraverseForCC(nsCycleCollectionTraversalCallback& aCallback, uint32_t aFlags)
{
ImplCycleCollectionTraverse(aCallback, mOffset, "mOffset", aFlags);
}
inline void
UnlinkForCC()
{
ImplCycleCollectionUnlink(mOffset);
}
TimelineRangeOffset&
operator=(const TimelineRangeOffset& aOther);
private:
static bool
InitIds(JSContext* cx, TimelineRangeOffsetAtoms* atomsCache);
};
namespace binding_detail {
struct MOZ_EMPTY_BASES FastTimelineRangeOffset : public TimelineRangeOffset
{
inline FastTimelineRangeOffset()
: TimelineRangeOffset(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_TIMELINERANGEOFFSETBINDING_H_