Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM TestInterfaceJSDictionaries.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_TESTINTERFACEJSDICTIONARIESBINDING_H_
#define DOM_TESTINTERFACEJSDICTIONARIESBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
#include "mozilla/dom/Record.h"
#include "mozilla/dom/RootedDictionary.h"
#include "mozilla/dom/UnionTypes.h"
namespace mozilla {
namespace dom {
struct NativePropertyHooks;
class ObjectOrString;
class OwningObjectOrString;
class ProtoAndIfaceCache;
struct TestInterfaceJSDictionary2;
struct TestInterfaceJSDictionary2Atoms;
struct TestInterfaceJSDictionaryAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct TestInterfaceJSDictionary2 : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<JSObject*> mInnerObject;
TestInterfaceJSDictionary2();
explicit inline TestInterfaceJSDictionary2(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
TestInterfaceJSDictionary2(TestInterfaceJSDictionary2&& aOther) = default;
private:
TestInterfaceJSDictionary2(const TestInterfaceJSDictionary2&) = delete;
TestInterfaceJSDictionary2& operator=(const TestInterfaceJSDictionary2&) = delete;
static bool
InitIds(JSContext* cx, TestInterfaceJSDictionary2Atoms* atomsCache);
public:
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
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
};
namespace binding_detail {
struct FastTestInterfaceJSDictionary2 : public TestInterfaceJSDictionary2
{
inline FastTestInterfaceJSDictionary2()
: TestInterfaceJSDictionary2(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct TestInterfaceJSDictionary : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR JS::Value mAnyMember;
MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<JS::Value>> mAnySequenceMember;
MOZ_INIT_OUTSIDE_CTOR Optional<TestInterfaceJSDictionary2> mInnerDictionary;
MOZ_INIT_OUTSIDE_CTOR Optional<JSObject*> mObjectMember;
MOZ_INIT_OUTSIDE_CTOR Optional<OwningObjectOrString> mObjectOrStringMember;
MOZ_INIT_OUTSIDE_CTOR Optional<Record<nsString, JSObject*>> mObjectRecordMember;
TestInterfaceJSDictionary();
explicit inline TestInterfaceJSDictionary(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
TestInterfaceJSDictionary(TestInterfaceJSDictionary&& aOther) = default;
private:
TestInterfaceJSDictionary(const TestInterfaceJSDictionary&) = delete;
TestInterfaceJSDictionary& operator=(const TestInterfaceJSDictionary&) = delete;
static bool
InitIds(JSContext* cx, TestInterfaceJSDictionaryAtoms* atomsCache);
public:
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
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
};
namespace binding_detail {
struct FastTestInterfaceJSDictionary : public TestInterfaceJSDictionary
{
inline FastTestInterfaceJSDictionary()
: TestInterfaceJSDictionary(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_TESTINTERFACEJSDICTIONARIESBINDING_H_