Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM AppNotificationServiceOptions.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_APPNOTIFICATIONSERVICEOPTIONSBINDING_H_
#define DOM_APPNOTIFICATIONSERVICEOPTIONSBINDING_H_
#include "NotificationBinding.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 AppNotificationServiceOptionsAtoms;
struct NativePropertyHooks;
struct NotificationBehavior;
class ProtoAndIfaceCache;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct AppNotificationServiceOptions : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR nsString mData;
MOZ_INIT_OUTSIDE_CTOR nsString mDbId;
MOZ_INIT_OUTSIDE_CTOR nsString mDir;
MOZ_INIT_OUTSIDE_CTOR nsString mId;
MOZ_INIT_OUTSIDE_CTOR nsString mLang;
MOZ_INIT_OUTSIDE_CTOR nsString mManifestURL;
MOZ_INIT_OUTSIDE_CTOR NotificationBehavior mMozbehavior;
MOZ_INIT_OUTSIDE_CTOR nsString mTag;
MOZ_INIT_OUTSIDE_CTOR bool mTextClickable;
AppNotificationServiceOptions();
explicit inline AppNotificationServiceOptions(const FastDictionaryInitializer& )
: mMozbehavior(FastDictionaryInitializer())
{
// Do nothing here; this is used by our "Fast" subclass
}
AppNotificationServiceOptions(AppNotificationServiceOptions&& aOther) = default;
explicit inline AppNotificationServiceOptions(const AppNotificationServiceOptions& aOther)
: mMozbehavior(FastDictionaryInitializer())
{
*this = aOther;
}
bool
Init(const char* sourceDescription = "Value", bool passedToJSImpl = false);
void
TraceDictionary(JSTracer* trc);
AppNotificationServiceOptions&
operator=(const AppNotificationServiceOptions& aOther);
private:
static bool
InitIds(JSContext* cx, AppNotificationServiceOptionsAtoms* atomsCache);
};
namespace binding_detail {
struct FastAppNotificationServiceOptions : public AppNotificationServiceOptions
{
inline FastAppNotificationServiceOptions()
: AppNotificationServiceOptions(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_APPNOTIFICATIONSERVICEOPTIONSBINDING_H_