/* THIS FILE IS AUTOGENERATED FROM Nimbus.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_NIMBUSBINDING_H_
#define DOM_NIMBUSBINDING_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 CachedNimbusExperimentBranch;
struct CachedNimbusExperimentBranchAtoms;
struct CachedNimbusExperimentMetadataAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct MOZ_EMPTY_BASES CachedNimbusExperimentBranch : public MaybeEmptyDictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR nsCString mSlug;
CachedNimbusExperimentBranch();
explicit inline CachedNimbusExperimentBranch(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
CachedNimbusExperimentBranch(CachedNimbusExperimentBranch&& aOther) = default;
explicit inline CachedNimbusExperimentBranch(const CachedNimbusExperimentBranch& 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
Init(const nsAString& aJSON);
bool
Init(const nsACString& aJSON);
void
TraceDictionary(JSTracer* trc);
CachedNimbusExperimentBranch&
operator=(const CachedNimbusExperimentBranch& aOther);
private:
static bool
InitIds(JSContext* cx, CachedNimbusExperimentBranchAtoms* atomsCache);
};
namespace binding_detail {
struct MOZ_EMPTY_BASES FastCachedNimbusExperimentBranch : public CachedNimbusExperimentBranch
{
inline FastCachedNimbusExperimentBranch()
: CachedNimbusExperimentBranch(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct MOZ_EMPTY_BASES CachedNimbusExperimentMetadata : public MaybeEmptyDictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR CachedNimbusExperimentBranch mBranch;
MOZ_INIT_OUTSIDE_CTOR nsCString mSlug;
CachedNimbusExperimentMetadata();
explicit inline CachedNimbusExperimentMetadata(const FastDictionaryInitializer& )
: mBranch(FastDictionaryInitializer())
{
// Do nothing here; this is used by our "Fast" subclass
}
CachedNimbusExperimentMetadata(CachedNimbusExperimentMetadata&& aOther) = default;
explicit inline CachedNimbusExperimentMetadata(const CachedNimbusExperimentMetadata& aOther)
: mBranch(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);
bool
Init(const nsAString& aJSON);
bool
Init(const nsACString& aJSON);
void
TraceDictionary(JSTracer* trc);
CachedNimbusExperimentMetadata&
operator=(const CachedNimbusExperimentMetadata& aOther);
private:
static bool
InitIds(JSContext* cx, CachedNimbusExperimentMetadataAtoms* atomsCache);
};
namespace binding_detail {
struct MOZ_EMPTY_BASES FastCachedNimbusExperimentMetadata : public CachedNimbusExperimentMetadata
{
inline FastCachedNimbusExperimentMetadata()
: CachedNimbusExperimentMetadata(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_NIMBUSBINDING_H_