Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM IterableIterator.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_ITERABLEITERATORBINDING_H_
#define DOM_ITERABLEITERATORBINDING_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 IterableKeyAndValueResultAtoms;
struct IterableKeyOrValueResultAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct IterableKeyAndValueResult : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR bool mDone;
MOZ_INIT_OUTSIDE_CTOR Sequence<JS::Value> mValue;
IterableKeyAndValueResult();
explicit inline IterableKeyAndValueResult(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
IterableKeyAndValueResult(IterableKeyAndValueResult&& aOther) = default;
private:
IterableKeyAndValueResult(const IterableKeyAndValueResult&) = delete;
IterableKeyAndValueResult& operator=(const IterableKeyAndValueResult&) = delete;
static bool
InitIds(JSContext* cx, IterableKeyAndValueResultAtoms* atomsCache);
public:
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
};
namespace binding_detail {
struct FastIterableKeyAndValueResult : public IterableKeyAndValueResult
{
inline FastIterableKeyAndValueResult()
: IterableKeyAndValueResult(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct IterableKeyOrValueResult : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR bool mDone;
MOZ_INIT_OUTSIDE_CTOR JS::Value mValue;
IterableKeyOrValueResult();
explicit inline IterableKeyOrValueResult(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
IterableKeyOrValueResult(IterableKeyOrValueResult&& aOther) = default;
private:
IterableKeyOrValueResult(const IterableKeyOrValueResult&) = delete;
IterableKeyOrValueResult& operator=(const IterableKeyOrValueResult&) = delete;
static bool
InitIds(JSContext* cx, IterableKeyOrValueResultAtoms* atomsCache);
public:
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
};
namespace binding_detail {
struct FastIterableKeyOrValueResult : public IterableKeyOrValueResult
{
inline FastIterableKeyOrValueResult()
: IterableKeyOrValueResult(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_ITERABLEITERATORBINDING_H_