Copy as Markdown
Other Tools
/* THIS FILE IS AUTOGENERATED FROM BrowserElementDictionaries.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_BROWSERELEMENTDICTIONARIESBINDING_H_
#define DOM_BROWSERELEMENTDICTIONARIESBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
#include "nsIContent.h"
class nsINode;
namespace mozilla {
namespace dom {
struct DOMWindowResizeEventDetailAtoms;
struct NativePropertyHooks;
struct OpenWindowEventDetailAtoms;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct DOMWindowResizeEventDetail : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR int32_t mHeight;
MOZ_INIT_OUTSIDE_CTOR int32_t mWidth;
DOMWindowResizeEventDetail();
explicit inline DOMWindowResizeEventDetail(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
DOMWindowResizeEventDetail(DOMWindowResizeEventDetail&& aOther) = default;
explicit inline DOMWindowResizeEventDetail(const DOMWindowResizeEventDetail& 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);
DOMWindowResizeEventDetail&
operator=(const DOMWindowResizeEventDetail& aOther);
private:
static bool
InitIds(JSContext* cx, DOMWindowResizeEventDetailAtoms* atomsCache);
};
namespace binding_detail {
struct FastDOMWindowResizeEventDetail : public DOMWindowResizeEventDetail
{
inline FastDOMWindowResizeEventDetail()
: DOMWindowResizeEventDetail(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct OpenWindowEventDetail : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR nsString mFeatures;
MOZ_INIT_OUTSIDE_CTOR bool mForceNoReferrer;
MOZ_INIT_OUTSIDE_CTOR RefPtr<nsINode> mFrameElement;
MOZ_INIT_OUTSIDE_CTOR nsString mName;
MOZ_INIT_OUTSIDE_CTOR nsString mUrl;
OpenWindowEventDetail();
explicit inline OpenWindowEventDetail(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
OpenWindowEventDetail(OpenWindowEventDetail&& aOther) = default;
explicit inline OpenWindowEventDetail(const OpenWindowEventDetail& 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, mFrameElement, "mFrameElement", aFlags);
}
inline void
UnlinkForCC()
{
ImplCycleCollectionUnlink(mFrameElement);
}
OpenWindowEventDetail&
operator=(const OpenWindowEventDetail& aOther);
private:
static bool
InitIds(JSContext* cx, OpenWindowEventDetailAtoms* atomsCache);
};
namespace binding_detail {
struct FastOpenWindowEventDetail : public OpenWindowEventDetail
{
inline FastOpenWindowEventDetail()
: OpenWindowEventDetail(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_BROWSERELEMENTDICTIONARIESBINDING_H_