set_selection_ranges.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. diff --git a/third_party/iaccessible2/ia2_api_all.idl b/third_party/iaccessible2/ia2_api_all.idl
  2. index 97bf11594646..07121230dc73 100644
  3. --- a/third_party/iaccessible2/ia2_api_all.idl
  4. +++ b/third_party/iaccessible2/ia2_api_all.idl
  5. @@ -1296,6 +1296,7 @@ IA2_STATE_PINNED = 0x80000
  6. IAccessible2\n
  7. IAccessible2_2\n
  8. IAccessible2_3\n
  9. + IAccessible2_4\n
  10. IAccessibleAction\n
  11. IAccessibleApplication\n
  12. IAccessibleComponent\n
  13. @@ -2104,6 +2105,36 @@ interface IAccessible2_3 : IAccessible2_2
  14. [out, retval] long *nRanges
  15. );
  16. }
  17. +
  18. +/**
  19. + * @brief This interface is an extension of IAccessible2_3 which exposes a
  20. + * single method for setting the current selection given a number of selection
  21. + * ranges.
  22. + *
  23. + * This interface is preliminary as it has not been adopted by any standard yet.
  24. + */
  25. +[object, uuid(610a7bec-91bb-444d-a336-a0daf13c4c29)]
  26. +interface IAccessible2_4 : IAccessible2_3
  27. +{
  28. + /**
  29. + * @brief Sets the current selection to the provided ranges. The provided
  30. + * ranges don't need to be contained within this accessible.
  31. + * @param [in] nRanges
  32. + * The length of the array containing the selection ranges.
  33. + * @param [in] ranges
  34. + * The array of selection ranges, allocated by the client with
  35. + * CoTaskMemAlloc and freed by the client with CoTaskMemFree.
  36. + * @retval S_OK Returned if the selection was made successfully.
  37. + * @retval S_FALSE Returned if the selection could not be made.
  38. + * @retval E_INVALIDARG Returned if any of the input arguments are invalid.
  39. + */
  40. + HRESULT setSelectionRanges
  41. + (
  42. + [in] long nRanges,
  43. + [in, size_is(nRanges)] IA2Range* ranges
  44. + );
  45. +}
  46. +
  47. /*************************************************************************
  48. *
  49. * File Name (AccessibleComponent.idl)