Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM DebuggerUtils.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_DEBUGGERUTILSBINDING_H_
#define DOM_DEBUGGERUTILSBINDING_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 HTMLContentAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct HTMLContent : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<bool> mComplete;
MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mContents;
MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mParserID;
MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mUri;
HTMLContent();
explicit inline HTMLContent(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
HTMLContent(HTMLContent&& aOther) = default;
explicit inline HTMLContent(const HTMLContent& aOther)
{
*this = aOther;
}
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
bool
ToJSON(nsAString& aJSON) const;
void
TraceDictionary(JSTracer* trc);
HTMLContent&
operator=(const HTMLContent& aOther);
bool
operator==(const HTMLContent& aOther) const;
private:
static bool
InitIds(JSContext* cx, HTMLContentAtoms* atomsCache);
};
namespace binding_detail {
struct FastHTMLContent : public HTMLContent
{
inline FastHTMLContent()
: HTMLContent(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_DEBUGGERUTILSBINDING_H_