Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM FakePluginTagInit.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_FAKEPLUGINTAGINITBINDING_H_
#define DOM_FAKEPLUGINTAGINITBINDING_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 FakePluginMimeEntry;
struct FakePluginMimeEntryAtoms;
struct FakePluginTagInitAtoms;
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct FakePluginMimeEntry : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR nsString mDescription;
MOZ_INIT_OUTSIDE_CTOR nsString mExtension;
MOZ_INIT_OUTSIDE_CTOR nsString mType;
FakePluginMimeEntry();
explicit inline FakePluginMimeEntry(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
FakePluginMimeEntry(FakePluginMimeEntry&& aOther) = default;
explicit inline FakePluginMimeEntry(const FakePluginMimeEntry& 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);
FakePluginMimeEntry&
operator=(const FakePluginMimeEntry& aOther);
bool
operator==(const FakePluginMimeEntry& aOther) const;
private:
static bool
InitIds(JSContext* cx, FakePluginMimeEntryAtoms* atomsCache);
};
namespace binding_detail {
struct FastFakePluginMimeEntry : public FakePluginMimeEntry
{
inline FastFakePluginMimeEntry()
: FakePluginMimeEntry(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
struct FakePluginTagInit : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR nsString mDescription;
MOZ_INIT_OUTSIDE_CTOR nsString mFileName;
MOZ_INIT_OUTSIDE_CTOR nsString mFullPath;
MOZ_INIT_OUTSIDE_CTOR nsString mHandlerURI;
MOZ_INIT_OUTSIDE_CTOR Sequence<FakePluginMimeEntry> mMimeEntries;
MOZ_INIT_OUTSIDE_CTOR nsString mName;
MOZ_INIT_OUTSIDE_CTOR nsString mNiceName;
MOZ_INIT_OUTSIDE_CTOR nsString mSandboxScript;
MOZ_INIT_OUTSIDE_CTOR nsString mVersion;
FakePluginTagInit();
explicit inline FakePluginTagInit(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
FakePluginTagInit(FakePluginTagInit&& aOther) = default;
explicit inline FakePluginTagInit(const FakePluginTagInit& 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);
FakePluginTagInit&
operator=(const FakePluginTagInit& aOther);
private:
static bool
InitIds(JSContext* cx, FakePluginTagInitAtoms* atomsCache);
};
namespace binding_detail {
struct FastFakePluginTagInit : public FakePluginTagInit
{
inline FastFakePluginTagInit()
: FakePluginTagInit(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_FAKEPLUGINTAGINITBINDING_H_