Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM Animatable.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_ANIMATABLEBINDING_H_
#define DOM_ANIMATABLEBINDING_H_
#include "KeyframeEffectBinding.h"
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
namespace mozilla {
namespace dom {
struct GetAnimationsOptionsAtoms;
struct KeyframeAnimationOptionsAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct GetAnimationsOptions : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR bool mSubtree;
GetAnimationsOptions();
explicit inline GetAnimationsOptions(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
GetAnimationsOptions(GetAnimationsOptions&& aOther) = default;
explicit inline GetAnimationsOptions(const GetAnimationsOptions& 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);
void
TraceDictionary(JSTracer* trc);
GetAnimationsOptions&
operator=(const GetAnimationsOptions& aOther);
bool
operator==(const GetAnimationsOptions& aOther) const;
private:
static bool
InitIds(JSContext* cx, GetAnimationsOptionsAtoms* atomsCache);
};
namespace binding_detail {
struct FastGetAnimationsOptions : public GetAnimationsOptions
{
inline FastGetAnimationsOptions()
: GetAnimationsOptions(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct KeyframeAnimationOptions : public KeyframeEffectOptions
{
MOZ_INIT_OUTSIDE_CTOR nsString mId;
KeyframeAnimationOptions();
explicit inline KeyframeAnimationOptions(const FastDictionaryInitializer& )
: KeyframeEffectOptions(FastDictionaryInitializer())
{
// Do nothing here; this is used by our "Fast" subclass
}
KeyframeAnimationOptions(KeyframeAnimationOptions&& aOther) = default;
explicit inline KeyframeAnimationOptions(const KeyframeAnimationOptions& aOther)
: KeyframeEffectOptions(FastDictionaryInitializer())
{
*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);
void
TraceDictionary(JSTracer* trc);
KeyframeAnimationOptions&
operator=(const KeyframeAnimationOptions& aOther);
bool
operator==(const KeyframeAnimationOptions& aOther) const;
private:
static bool
InitIds(JSContext* cx, KeyframeAnimationOptionsAtoms* atomsCache);
};
namespace binding_detail {
struct FastKeyframeAnimationOptions : public KeyframeAnimationOptions
{
inline FastKeyframeAnimationOptions()
: KeyframeAnimationOptions(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_ANIMATABLEBINDING_H_