Copy as Markdown
Other Tools
/* THIS FILE IS AUTOGENERATED FROM MediaTrackCapabilities.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_MEDIATRACKCAPABILITIESBINDING_H_
#define DOM_MEDIATRACKCAPABILITIESBINDING_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 DoubleRange;
struct DoubleRangeAtoms;
struct MediaTrackCapabilitiesAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
struct ULongRange;
struct ULongRangeAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct DoubleRange : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<double> mMax;
MOZ_INIT_OUTSIDE_CTOR Optional<double> mMin;
DoubleRange();
explicit inline DoubleRange(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
DoubleRange(DoubleRange&& aOther) = default;
explicit inline DoubleRange(const DoubleRange& aOther)
{
*this = aOther;
}
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
DoubleRange&
operator=(const DoubleRange& aOther);
private:
static bool
InitIds(JSContext* cx, DoubleRangeAtoms* atomsCache);
};
namespace binding_detail {
struct FastDoubleRange : public DoubleRange
{
inline FastDoubleRange()
: DoubleRange(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct ULongRange : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<uint32_t> mMax;
MOZ_INIT_OUTSIDE_CTOR Optional<uint32_t> mMin;
ULongRange();
explicit inline ULongRange(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
ULongRange(ULongRange&& aOther) = default;
explicit inline ULongRange(const ULongRange& aOther)
{
*this = aOther;
}
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
ULongRange&
operator=(const ULongRange& aOther);
private:
static bool
InitIds(JSContext* cx, ULongRangeAtoms* atomsCache);
};
namespace binding_detail {
struct FastULongRange : public ULongRange
{
inline FastULongRange()
: ULongRange(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct MediaTrackCapabilities : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<bool>> mAutoGainControl;
MOZ_INIT_OUTSIDE_CTOR Optional<ULongRange> mChannelCount;
MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mDeviceId;
MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<bool>> mEchoCancellation;
MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<nsString>> mFacingMode;
MOZ_INIT_OUTSIDE_CTOR Optional<DoubleRange> mFrameRate;
MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mGroupId;
MOZ_INIT_OUTSIDE_CTOR Optional<ULongRange> mHeight;
MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<bool>> mNoiseSuppression;
MOZ_INIT_OUTSIDE_CTOR Optional<ULongRange> mWidth;
MediaTrackCapabilities();
explicit inline MediaTrackCapabilities(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
MediaTrackCapabilities(MediaTrackCapabilities&& aOther) = default;
explicit inline MediaTrackCapabilities(const MediaTrackCapabilities& aOther)
{
*this = aOther;
}
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
MediaTrackCapabilities&
operator=(const MediaTrackCapabilities& aOther);
private:
static bool
InitIds(JSContext* cx, MediaTrackCapabilitiesAtoms* atomsCache);
};
namespace binding_detail {
struct FastMediaTrackCapabilities : public MediaTrackCapabilities
{
inline FastMediaTrackCapabilities()
: MediaTrackCapabilities(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_MEDIATRACKCAPABILITIESBINDING_H_