From 77b27f7a0721921b104f770fdc1cc8853885f23f Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Wed, 30 Mar 2022 23:21:10 -0400 Subject: [PATCH] IDL corrections for IAccessibleTextSelectionContainer interface. (#20) - ia2TextSelection struct's startIsActive member used 'bool' as its data type. this does not exist in idl. This has been changed to 'boolean'. - IAccessibleTextSelectionContainer has been declared in the type library section, ensuring that this interface is included in the type library. Closes #18, closes #19. Signed-off-by: Alexander Surkov --- api/Accessible2.idl | 6 ++++-- api/AccessibleTextSelectionContainer.idl | 2 +- api/IA2TypeLibrary.idl | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api/Accessible2.idl b/api/Accessible2.idl index 71f01f6..ac846dd 100644 --- a/api/Accessible2.idl +++ b/api/Accessible2.idl @@ -56,7 +56,7 @@ @section _interfaces Interfaces IAccessible2\n IAccessible2_2\n - IAccessible2_3\n + IAccessible2_3 [Deprecated]\n IAccessibleAction\n IAccessibleApplication\n IAccessibleComponent\n @@ -72,13 +72,15 @@ IAccessibleTableCell\n IAccessibleText\n IAccessibleText2\n + IAccessibleTextSelectionContainer\n IAccessibleValue @section _structs Structs IA2Locale\n IA2Range\n IA2TableModelChange\n - IA2TextSegment + IA2TextSegment\n + IA2TextSelection @section _enums Enums ::IA2Actions values are predefined actions for use when implementing support for HTML5 media.\n diff --git a/api/AccessibleTextSelectionContainer.idl b/api/AccessibleTextSelectionContainer.idl index a914e75..2f27c34 100644 --- a/api/AccessibleTextSelectionContainer.idl +++ b/api/AccessibleTextSelectionContainer.idl @@ -82,7 +82,7 @@ typedef struct IA2TextSelection { long startOffset; IAccessibleText* endObj; long endOffset; - bool startIsActive; + boolean startIsActive; } IA2TextSelection; /** diff --git a/api/IA2TypeLibrary.idl b/api/IA2TypeLibrary.idl index 2519aca..3973ebf 100644 --- a/api/IA2TypeLibrary.idl +++ b/api/IA2TypeLibrary.idl @@ -87,6 +87,7 @@ library IAccessible2Lib interface IAccessibleTableCell; interface IAccessibleText; interface IAccessibleText2; + interface IAccessibleTextSelectionContainer; interface IAccessibleValue; enum IA2CoordinateType; enum IA2EventID;