Copy as Markdown
Other Tools
/* THIS FILE IS AUTOGENERATED FROM ExtensionScripting.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_EXTENSIONSCRIPTINGBINDING_H_
#define DOM_EXTENSIONSCRIPTINGBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
#include "mozilla/dom/PrototypeList.h"
namespace mozilla {
namespace dom {
struct NativePropertyHooks;
class ProtoAndIfaceCache;
} // namespace dom
namespace extensions {
class ExtensionScripting;
} // namespace extensions
} // namespace mozilla
namespace mozilla::dom {
namespace ExtensionScripting_Binding {
typedef mozilla::extensions::ExtensionScripting NativeType;
bool
Wrap(JSContext* aCx, mozilla::extensions::ExtensionScripting* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, DefineInterfaceProperty aDefineOnGlobal);
} // namespace ExtensionScripting_Binding
} // namespace mozilla::dom
#endif // DOM_EXTENSIONSCRIPTINGBINDING_H_