Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM MozFrameLoaderOwner.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_MOZFRAMELOADEROWNERBINDING_H_
#define DOM_MOZFRAMELOADEROWNERBINDING_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 NativePropertyHooks;
class ProtoAndIfaceCache;
struct RemotenessOptionsAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct RemotenessOptions : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<uint64_t> mPendingSwitchID;
MOZ_INIT_OUTSIDE_CTOR nsCString mRemoteType;
MOZ_INIT_OUTSIDE_CTOR bool mSwitchingInProgressLoad;
RemotenessOptions();
explicit inline RemotenessOptions(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
RemotenessOptions(RemotenessOptions&& aOther) = default;
explicit inline RemotenessOptions(const RemotenessOptions& 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);
RemotenessOptions&
operator=(const RemotenessOptions& aOther);
private:
static bool
InitIds(JSContext* cx, RemotenessOptionsAtoms* atomsCache);
};
namespace binding_detail {
struct FastRemotenessOptions : public RemotenessOptions
{
inline FastRemotenessOptions()
: RemotenessOptions(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_MOZFRAMELOADEROWNERBINDING_H_