Copy as Markdown

Other Tools

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