Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/accessible/interfaces/nsIAccessibleTextRange.idl
*/
#ifndef __gen_nsIAccessibleTextRange_h__
#define __gen_nsIAccessibleTextRange_h__
#include "nsISupports.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 */
class nsIAccessibleText; /* forward declaration */
class nsIArray; /* forward declaration */
class nsIVariant; /* forward declaration */
/* starting interface: nsIAccessibleTextRange */
#define NS_IACCESSIBLETEXTRANGE_IID_STR "c4515623-55f9-4543-a3d5-c1e9afa588f4"
#define NS_IACCESSIBLETEXTRANGE_IID \
{0xc4515623, 0x55f9, 0x4543, \
{ 0xa3, 0xd5, 0xc1, 0xe9, 0xaf, 0xa5, 0x88, 0xf4 }}
class NS_NO_VTABLE nsIAccessibleTextRange : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETEXTRANGE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessibleTextRange;
/* readonly attribute nsIAccessibleText startContainer; */
NS_IMETHOD GetStartContainer(nsIAccessibleText **aStartContainer) = 0;
/* readonly attribute long startOffset; */
NS_IMETHOD GetStartOffset(int32_t *aStartOffset) = 0;
/* readonly attribute nsIAccessibleText endContainer; */
NS_IMETHOD GetEndContainer(nsIAccessibleText **aEndContainer) = 0;
/* readonly attribute long endOffset; */
NS_IMETHOD GetEndOffset(int32_t *aEndOffset) = 0;
/* readonly attribute nsIAccessible container; */
NS_IMETHOD GetContainer(nsIAccessible **aContainer) = 0;
/* boolean compare (in nsIAccessibleTextRange aOtherRange); */
NS_IMETHOD Compare(nsIAccessibleTextRange *aOtherRange, bool *_retval) = 0;
enum {
EndPoint_Start = 1U,
EndPoint_End = 2U
};
/* long compareEndPoints (in unsigned long aEndPoint, in nsIAccessibleTextRange aOtherRange, in unsigned long aOtherRangeEndPoint); */
NS_IMETHOD CompareEndPoints(uint32_t aEndPoint, nsIAccessibleTextRange *aOtherRange, uint32_t aOtherRangeEndPoint, int32_t *_retval) = 0;
/* boolean crop (in nsIAccessible aContainer); */
NS_IMETHOD Crop(nsIAccessible *aContainer, bool *_retval) = 0;
enum {
AlignToTop = 0U,
AlignToBottom = 1U
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleTextRange, NS_IACCESSIBLETEXTRANGE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLETEXTRANGE \
NS_IMETHOD GetStartContainer(nsIAccessibleText **aStartContainer) override; \
NS_IMETHOD GetStartOffset(int32_t *aStartOffset) override; \
NS_IMETHOD GetEndContainer(nsIAccessibleText **aEndContainer) override; \
NS_IMETHOD GetEndOffset(int32_t *aEndOffset) override; \
NS_IMETHOD GetContainer(nsIAccessible **aContainer) override; \
NS_IMETHOD Compare(nsIAccessibleTextRange *aOtherRange, bool *_retval) override; \
NS_IMETHOD CompareEndPoints(uint32_t aEndPoint, nsIAccessibleTextRange *aOtherRange, uint32_t aOtherRangeEndPoint, int32_t *_retval) override; \
NS_IMETHOD Crop(nsIAccessible *aContainer, bool *_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_NSIACCESSIBLETEXTRANGE \
nsresult GetStartContainer(nsIAccessibleText **aStartContainer); \
nsresult GetStartOffset(int32_t *aStartOffset); \
nsresult GetEndContainer(nsIAccessibleText **aEndContainer); \
nsresult GetEndOffset(int32_t *aEndOffset); \
nsresult GetContainer(nsIAccessible **aContainer); \
nsresult Compare(nsIAccessibleTextRange *aOtherRange, bool *_retval); \
nsresult CompareEndPoints(uint32_t aEndPoint, nsIAccessibleTextRange *aOtherRange, uint32_t aOtherRangeEndPoint, int32_t *_retval); \
nsresult Crop(nsIAccessible *aContainer, bool *_retval); \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLETEXTRANGE(_to) \
NS_IMETHOD GetStartContainer(nsIAccessibleText **aStartContainer) override { return _to GetStartContainer(aStartContainer); } \
NS_IMETHOD GetStartOffset(int32_t *aStartOffset) override { return _to GetStartOffset(aStartOffset); } \
NS_IMETHOD GetEndContainer(nsIAccessibleText **aEndContainer) override { return _to GetEndContainer(aEndContainer); } \
NS_IMETHOD GetEndOffset(int32_t *aEndOffset) override { return _to GetEndOffset(aEndOffset); } \
NS_IMETHOD GetContainer(nsIAccessible **aContainer) override { return _to GetContainer(aContainer); } \
NS_IMETHOD Compare(nsIAccessibleTextRange *aOtherRange, bool *_retval) override { return _to Compare(aOtherRange, _retval); } \
NS_IMETHOD CompareEndPoints(uint32_t aEndPoint, nsIAccessibleTextRange *aOtherRange, uint32_t aOtherRangeEndPoint, int32_t *_retval) override { return _to CompareEndPoints(aEndPoint, aOtherRange, aOtherRangeEndPoint, _retval); } \
NS_IMETHOD Crop(nsIAccessible *aContainer, bool *_retval) override { return _to Crop(aContainer, _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_NSIACCESSIBLETEXTRANGE(_to) \
NS_IMETHOD GetStartContainer(nsIAccessibleText **aStartContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartContainer(aStartContainer); } \
NS_IMETHOD GetStartOffset(int32_t *aStartOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartOffset(aStartOffset); } \
NS_IMETHOD GetEndContainer(nsIAccessibleText **aEndContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndContainer(aEndContainer); } \
NS_IMETHOD GetEndOffset(int32_t *aEndOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndOffset(aEndOffset); } \
NS_IMETHOD GetContainer(nsIAccessible **aContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainer(aContainer); } \
NS_IMETHOD Compare(nsIAccessibleTextRange *aOtherRange, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Compare(aOtherRange, _retval); } \
NS_IMETHOD CompareEndPoints(uint32_t aEndPoint, nsIAccessibleTextRange *aOtherRange, uint32_t aOtherRangeEndPoint, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareEndPoints(aEndPoint, aOtherRange, aOtherRangeEndPoint, _retval); } \
NS_IMETHOD Crop(nsIAccessible *aContainer, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Crop(aContainer, _retval); } \
#endif /* __gen_nsIAccessibleTextRange_h__ */