Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM PermissionSetParameters.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_PERMISSIONSETPARAMETERSBINDING_H_
#define DOM_PERMISSIONSETPARAMETERSBINDING_H_
#include "PermissionStatusBinding.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;
struct PermissionSetParametersAtoms;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct PermissionSetParameters : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR JSObject* mDescriptor;
MOZ_INIT_OUTSIDE_CTOR PermissionState mState;
PermissionSetParameters();
explicit inline PermissionSetParameters(const FastDictionaryInitializer& )
: mDescriptor(nullptr)
{
// Do nothing here; this is used by our "Fast" subclass
}
PermissionSetParameters(PermissionSetParameters&& aOther) = default;
private:
PermissionSetParameters(const PermissionSetParameters&) = delete;
PermissionSetParameters& operator=(const PermissionSetParameters&) = delete;
static bool
InitIds(JSContext* cx, PermissionSetParametersAtoms* atomsCache);
public:
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);
};
namespace binding_detail {
struct FastPermissionSetParameters : public PermissionSetParameters
{
inline FastPermissionSetParameters()
: PermissionSetParameters(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_PERMISSIONSETPARAMETERSBINDING_H_