/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/accessible/interfaces/nsIAccessibleAnnouncementEvent.idl */ #ifndef __gen_nsIAccessibleAnnouncementEvent_h__ #define __gen_nsIAccessibleAnnouncementEvent_h__ #include "nsIAccessibleEvent.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsIAccessibleAnnouncementEvent */ #define NS_IACCESSIBLEANNOUNCEMENTEVENT_IID_STR "8818e49c-1286-4fe6-ae82-4d1b795ec88d" #define NS_IACCESSIBLEANNOUNCEMENTEVENT_IID \ {0x8818e49c, 0x1286, 0x4fe6, \ { 0xae, 0x82, 0x4d, 0x1b, 0x79, 0x5e, 0xc8, 0x8d }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIAccessibleAnnouncementEvent) nsIAccessibleAnnouncementEvent : public nsIAccessibleEvent { public: NS_INLINE_DECL_STATIC_IID(NS_IACCESSIBLEANNOUNCEMENTEVENT_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIAccessibleAnnouncementEvent; enum { POLITE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIAccessibleAnnouncementEvent_POLITE) = 0U, ASSERTIVE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIAccessibleAnnouncementEvent_ASSERTIVE) = 1U }; /* readonly attribute AString announcement; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAccessibleAnnouncementEvent_announcement) NS_IMETHOD GetAnnouncement(nsAString& aAnnouncement) = 0; /* readonly attribute unsigned short priority; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAccessibleAnnouncementEvent_priority) NS_IMETHOD GetPriority(uint16_t *aPriority) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIACCESSIBLEANNOUNCEMENTEVENT \ NS_IMETHOD GetAnnouncement(nsAString& aAnnouncement) override; \ NS_IMETHOD GetPriority(uint16_t *aPriority) override; /* Use this macro when declaring the members of this interface when the class doesn't implement the interface. This is useful for forwarding. */ #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLEANNOUNCEMENTEVENT \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAccessibleAnnouncementEvent_announcement)\ nsresult GetAnnouncement(nsAString& aAnnouncement); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAccessibleAnnouncementEvent_priority)\ nsresult GetPriority(uint16_t *aPriority); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIACCESSIBLEANNOUNCEMENTEVENT(_to) \ NS_IMETHOD GetAnnouncement(nsAString& aAnnouncement) override { return _to GetAnnouncement(aAnnouncement); } \ NS_IMETHOD GetPriority(uint16_t *aPriority) override { return _to GetPriority(aPriority); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIACCESSIBLEANNOUNCEMENTEVENT(_to) \ NS_IMETHOD GetAnnouncement(nsAString& aAnnouncement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnnouncement(aAnnouncement); } \ NS_IMETHOD GetPriority(uint16_t *aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } #endif /* __gen_nsIAccessibleAnnouncementEvent_h__ */