Copy as Markdown
Other Tools
/* THIS FILE IS AUTOGENERATED FROM WebCompat.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_WEBCOMPATBINDING_H_
#define DOM_WEBCOMPATBINDING_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 CkEditorPropertyAtoms;
struct CkEditorVersion;
struct CkEditorVersionAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct CkEditorVersion : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR nsString mVersion;
CkEditorVersion();
explicit inline CkEditorVersion(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
CkEditorVersion(CkEditorVersion&& aOther) = default;
explicit inline CkEditorVersion(const CkEditorVersion& 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);
void
TraceDictionary(JSTracer* trc);
CkEditorVersion&
operator=(const CkEditorVersion& aOther);
private:
static bool
InitIds(JSContext* cx, CkEditorVersionAtoms* atomsCache);
};
namespace binding_detail {
struct FastCkEditorVersion : public CkEditorVersion
{
inline FastCkEditorVersion()
: CkEditorVersion(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct CkEditorProperty : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<CkEditorVersion> mCKEDITOR;
MOZ_INIT_OUTSIDE_CTOR Optional<CkEditorVersion> mJEDITOR;
CkEditorProperty();
explicit inline CkEditorProperty(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
CkEditorProperty(CkEditorProperty&& aOther) = default;
explicit inline CkEditorProperty(const CkEditorProperty& 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);
void
TraceDictionary(JSTracer* trc);
CkEditorProperty&
operator=(const CkEditorProperty& aOther);
private:
static bool
InitIds(JSContext* cx, CkEditorPropertyAtoms* atomsCache);
};
namespace binding_detail {
struct FastCkEditorProperty : public CkEditorProperty
{
inline FastCkEditorProperty()
: CkEditorProperty(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_WEBCOMPATBINDING_H_