Source code

Copy as Markdown

Other Tools

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