Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/accessible/interfaces/nsIAccessiblePivot.idl
*/
#ifndef __gen_nsIAccessiblePivot_h__
#define __gen_nsIAccessiblePivot_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
typedef int16_t PivotMoveReason;
class nsIAccessible; /* forward declaration */
class nsIAccessibleTraversalRule; /* forward declaration */
/* starting interface: nsIAccessiblePivot */
#define NS_IACCESSIBLEPIVOT_IID_STR "81fe5144-059b-42db-bd3a-f6ce3158d5e9"
#define NS_IACCESSIBLEPIVOT_IID \
{0x81fe5144, 0x059b, 0x42db, \
{ 0xbd, 0x3a, 0xf6, 0xce, 0x31, 0x58, 0xd5, 0xe9 }}
class NS_NO_VTABLE nsIAccessiblePivot : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEPIVOT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessiblePivot;
/* [optional_argc] nsIAccessible next (in nsIAccessible aAnchor, in nsIAccessibleTraversalRule aRule, [optional] in boolean aIncludeStart); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Next(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) = 0;
/* [optional_argc] nsIAccessible prev (in nsIAccessible aAnchor, in nsIAccessibleTraversalRule aRule, [optional] in boolean aIncludeStart); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Prev(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) = 0;
/* nsIAccessible first (in nsIAccessibleTraversalRule aRule); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD First(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) = 0;
/* nsIAccessible last (in nsIAccessibleTraversalRule aRule); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Last(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) = 0;
/* nsIAccessible atPoint (in long aX, in long aY, in nsIAccessibleTraversalRule aRule); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AtPoint(int32_t aX, int32_t aY, nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessiblePivot, NS_IACCESSIBLEPIVOT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLEPIVOT \
NS_IMETHOD Next(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) override; \
NS_IMETHOD Prev(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) override; \
NS_IMETHOD First(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override; \
NS_IMETHOD Last(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override; \
NS_IMETHOD AtPoint(int32_t aX, int32_t aY, nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) 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_NSIACCESSIBLEPIVOT \
nsresult Next(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval); \
nsresult Prev(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval); \
nsresult First(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval); \
nsresult Last(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval); \
nsresult AtPoint(int32_t aX, int32_t aY, nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLEPIVOT(_to) \
NS_IMETHOD Next(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) override { return _to Next(aAnchor, aRule, aIncludeStart, _argc, _retval); } \
NS_IMETHOD Prev(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) override { return _to Prev(aAnchor, aRule, aIncludeStart, _argc, _retval); } \
NS_IMETHOD First(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override { return _to First(aRule, _retval); } \
NS_IMETHOD Last(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override { return _to Last(aRule, _retval); } \
NS_IMETHOD AtPoint(int32_t aX, int32_t aY, nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override { return _to AtPoint(aX, aY, aRule, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACCESSIBLEPIVOT(_to) \
NS_IMETHOD Next(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Next(aAnchor, aRule, aIncludeStart, _argc, _retval); } \
NS_IMETHOD Prev(nsIAccessible *aAnchor, nsIAccessibleTraversalRule *aRule, bool aIncludeStart, uint8_t _argc, nsIAccessible **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Prev(aAnchor, aRule, aIncludeStart, _argc, _retval); } \
NS_IMETHOD First(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->First(aRule, _retval); } \
NS_IMETHOD Last(nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Last(aRule, _retval); } \
NS_IMETHOD AtPoint(int32_t aX, int32_t aY, nsIAccessibleTraversalRule *aRule, nsIAccessible **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AtPoint(aX, aY, aRule, _retval); }
/* starting interface: nsIAccessibleTraversalRule */
#define NS_IACCESSIBLETRAVERSALRULE_IID_STR "e197460d-1eff-4247-b4bb-a43be1840dae"
#define NS_IACCESSIBLETRAVERSALRULE_IID \
{0xe197460d, 0x1eff, 0x4247, \
{ 0xb4, 0xbb, 0xa4, 0x3b, 0xe1, 0x84, 0x0d, 0xae }}
class NS_NO_VTABLE nsIAccessibleTraversalRule : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETRAVERSALRULE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessibleTraversalRule;
enum {
FILTER_IGNORE = 0U,
FILTER_MATCH = 1U,
FILTER_IGNORE_SUBTREE = 2U
};
/* unsigned short match (in nsIAccessible aAccessible); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Match(nsIAccessible *aAccessible, uint16_t *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleTraversalRule, NS_IACCESSIBLETRAVERSALRULE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLETRAVERSALRULE \
NS_IMETHOD Match(nsIAccessible *aAccessible, uint16_t *_retval) 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_NSIACCESSIBLETRAVERSALRULE \
nsresult Match(nsIAccessible *aAccessible, uint16_t *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLETRAVERSALRULE(_to) \
NS_IMETHOD Match(nsIAccessible *aAccessible, uint16_t *_retval) override { return _to Match(aAccessible, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACCESSIBLETRAVERSALRULE(_to) \
NS_IMETHOD Match(nsIAccessible *aAccessible, uint16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Match(aAccessible, _retval); }
#endif /* __gen_nsIAccessiblePivot_h__ */