Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/accessible/interfaces/nsIAccessibleTextLeafRange.idl
*/
#ifndef __gen_nsIAccessibleTextLeafRange_h__
#define __gen_nsIAccessibleTextLeafRange_h__
#include "nsISupports.h"
#include "nsIArray.h"
#include "nsIAccessibleText.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIAccessible; /* forward declaration */
/* starting interface: nsIAccessibleTextLeafPoint */
#define NS_IACCESSIBLETEXTLEAFPOINT_IID_STR "9181e777-8954-4f8f-8cee-32f9771e40d7"
#define NS_IACCESSIBLETEXTLEAFPOINT_IID \
{0x9181e777, 0x8954, 0x4f8f, \
{ 0x8c, 0xee, 0x32, 0xf9, 0x77, 0x1e, 0x40, 0xd7 }}
class NS_NO_VTABLE nsIAccessibleTextLeafPoint : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETEXTLEAFPOINT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessibleTextLeafPoint;
/* attribute nsIAccessible accessible; */
NS_IMETHOD GetAccessible(nsIAccessible **aAccessible) = 0;
NS_IMETHOD SetAccessible(nsIAccessible *aAccessible) = 0;
/* attribute long offset; */
NS_IMETHOD GetOffset(int32_t *aOffset) = 0;
NS_IMETHOD SetOffset(int32_t aOffset) = 0;
/* nsIAccessibleTextLeafPoint findBoundary (in AccessibleTextBoundary aBoundaryType, in unsigned long aDirection, in unsigned long aFlags); */
NS_IMETHOD FindBoundary(AccessibleTextBoundary aBoundaryType, uint32_t aDirection, uint32_t aFlags, nsIAccessibleTextLeafPoint **_retval) = 0;
enum {
DIRECTION_NEXT = 0,
DIRECTION_PREVIOUS = 1,
BOUNDARY_FLAG_DEFAULT = 0U,
BOUNDARY_FLAG_INCLUDE_ORIGIN = 1U,
BOUNDARY_FLAG_STOP_IN_EDITABLE = 2U,
BOUNDARY_FLAG_SKIP_LIST_ITEM_MARKER = 4U
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleTextLeafPoint, NS_IACCESSIBLETEXTLEAFPOINT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLETEXTLEAFPOINT \
NS_IMETHOD GetAccessible(nsIAccessible **aAccessible) override; \
NS_IMETHOD SetAccessible(nsIAccessible *aAccessible) override; \
NS_IMETHOD GetOffset(int32_t *aOffset) override; \
NS_IMETHOD SetOffset(int32_t aOffset) override; \
NS_IMETHOD FindBoundary(AccessibleTextBoundary aBoundaryType, uint32_t aDirection, uint32_t aFlags, nsIAccessibleTextLeafPoint **_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_NSIACCESSIBLETEXTLEAFPOINT \
nsresult GetAccessible(nsIAccessible **aAccessible); \
nsresult SetAccessible(nsIAccessible *aAccessible); \
nsresult GetOffset(int32_t *aOffset); \
nsresult SetOffset(int32_t aOffset); \
nsresult FindBoundary(AccessibleTextBoundary aBoundaryType, uint32_t aDirection, uint32_t aFlags, nsIAccessibleTextLeafPoint **_retval); \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLETEXTLEAFPOINT(_to) \
NS_IMETHOD GetAccessible(nsIAccessible **aAccessible) override { return _to GetAccessible(aAccessible); } \
NS_IMETHOD SetAccessible(nsIAccessible *aAccessible) override { return _to SetAccessible(aAccessible); } \
NS_IMETHOD GetOffset(int32_t *aOffset) override { return _to GetOffset(aOffset); } \
NS_IMETHOD SetOffset(int32_t aOffset) override { return _to SetOffset(aOffset); } \
NS_IMETHOD FindBoundary(AccessibleTextBoundary aBoundaryType, uint32_t aDirection, uint32_t aFlags, nsIAccessibleTextLeafPoint **_retval) override { return _to FindBoundary(aBoundaryType, aDirection, aFlags, _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_NSIACCESSIBLETEXTLEAFPOINT(_to) \
NS_IMETHOD GetAccessible(nsIAccessible **aAccessible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessible(aAccessible); } \
NS_IMETHOD SetAccessible(nsIAccessible *aAccessible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessible(aAccessible); } \
NS_IMETHOD GetOffset(int32_t *aOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffset(aOffset); } \
NS_IMETHOD SetOffset(int32_t aOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOffset(aOffset); } \
NS_IMETHOD FindBoundary(AccessibleTextBoundary aBoundaryType, uint32_t aDirection, uint32_t aFlags, nsIAccessibleTextLeafPoint **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindBoundary(aBoundaryType, aDirection, aFlags, _retval); } \
#endif /* __gen_nsIAccessibleTextLeafRange_h__ */