Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM ImageText.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_IMAGETEXTBINDING_H_
#define DOM_IMAGETEXTBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/DOMQuad.h"
#include "mozilla/dom/Nullable.h"
namespace mozilla {
namespace dom {
class DOMQuad;
struct ImageTextAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct ImageText : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR float mConfidence;
MOZ_INIT_OUTSIDE_CTOR OwningNonNull<mozilla::dom::DOMQuad> mQuad;
MOZ_INIT_OUTSIDE_CTOR nsString mString;
ImageText();
explicit inline ImageText(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
ImageText(ImageText&& aOther) = default;
explicit inline ImageText(const ImageText& aOther)
{
*this = aOther;
}
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
void
TraceDictionary(JSTracer* trc);
inline void
TraverseForCC(nsCycleCollectionTraversalCallback& aCallback, uint32_t aFlags)
{
ImplCycleCollectionTraverse(aCallback, mQuad, "mQuad", aFlags);
}
inline void
UnlinkForCC()
{
ImplCycleCollectionUnlink(mQuad);
}
ImageText&
operator=(const ImageText& aOther);
private:
static bool
InitIds(JSContext* cx, ImageTextAtoms* atomsCache);
};
namespace binding_detail {
struct FastImageText : public ImageText
{
inline FastImageText()
: ImageText(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_IMAGETEXTBINDING_H_