Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM AudioParamDescriptor.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_AUDIOPARAMDESCRIPTORBINDING_H_
#define DOM_AUDIOPARAMDESCRIPTORBINDING_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 AudioParamDescriptorAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct AudioParamDescriptor : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR float mDefaultValue;
MOZ_INIT_OUTSIDE_CTOR float mMaxValue;
MOZ_INIT_OUTSIDE_CTOR float mMinValue;
MOZ_INIT_OUTSIDE_CTOR nsString mName;
AudioParamDescriptor();
explicit inline AudioParamDescriptor(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
AudioParamDescriptor(AudioParamDescriptor&& aOther) = default;
explicit inline AudioParamDescriptor(const AudioParamDescriptor& 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);
AudioParamDescriptor&
operator=(const AudioParamDescriptor& aOther);
bool
operator==(const AudioParamDescriptor& aOther) const;
private:
static bool
InitIds(JSContext* cx, AudioParamDescriptorAtoms* atomsCache);
};
namespace binding_detail {
struct FastAudioParamDescriptor : public AudioParamDescriptor
{
inline FastAudioParamDescriptor()
: AudioParamDescriptor(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_AUDIOPARAMDESCRIPTORBINDING_H_