From 1b81395020fce4dda2f158e5b24101e94040f6d1 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 23 May 2024 16:02:32 +0100 Subject: [PATCH] add arianotify draft --- index.html | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/index.html b/index.html index 20bf3ae..16692f5 100644 --- a/index.html +++ b/index.html @@ -9449,6 +9449,63 @@

Special Events for Menus

+
+

Algorithms

+

Some APIs, provide methods which require...

+

ARIANotifyMixin Algorithm Mapping Tables

+

ariaNotify

+

To aria notify given node, announcement, priority, interrupt, and id:

+ + + + + + + + + + + + + + + + + + + + + + + +
ARIA Specification + aria notify +
MSAA + IAccessible2
UIA
    +
  1. Let notificationProcessing be null.

  2. +
  3. If interrupt is "none" and priority is "none" set notificationProcessing to NotificationProcessing_All.

  4. +
  5. If interrupt is "none" and priority is "important" set notificationProcessing to NotificationProcessing_ImportantAll.

  6. +
  7. If interrupt is "all" and priority is "none" set notificationProcessing to NotificationProcessing_MostRecent.

  8. +
  9. If interrupt is "all" and priority is "important" set notificationProcessing to NotificationProcessing_ImportantMostRecent.

  10. +
  11. If interrupt is "pending" and priority is "none" set notificationProcessing to NotificationProcessing_CurrentThenMostRecent.

  12. +
  13. If interrupt is "pending" and priority is "important" set notificationProcessing to NotificationProcessing_ImportantMostRecent.

  14. +
  15. Assert: notificationProcessing is not null.

  16. +
  17. Call UiaRaiseNotificationEvent with given node, NotificationKind_ActionCompleted, notificationProcessing, announcement, and id.

  18. +
ATK/AT-SPI
    + +
AX API
    +
  1. Let document be node's associated document.

  2. +
  3. Let window be document's associated window.

  4. +
  5. Let notification be NSAccessibilityAnnouncementRequestedNotification.

  6. +
  7. Let mapped_priority be NSAccessibilityPriorityHigh if priority is "important", otherwise NSAccessibilityPriorityMedium.

  8. +
  9. Let userInfo be a NSDictionary with the following keys:

    +
      +
    1. NSAccessibilityAnnouncementKey as announcement
    2. +
    3. NSAccessibilityPriorityKey as mapped_priority
    4. +
    +
  10. +
  11. Call NSAccessibilityPostNotificationWithUserInfo with given window, notification, and userInfo.

  12. +
+