summaryrefslogtreecommitdiffstats
path: root/accessible/generic/LocalAccessible.h
diff options
context:
space:
mode:
Diffstat (limited to 'accessible/generic/LocalAccessible.h')
-rw-r--r--accessible/generic/LocalAccessible.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/accessible/generic/LocalAccessible.h b/accessible/generic/LocalAccessible.h
index a3620f4cbd..51c4cc9424 100644
--- a/accessible/generic/LocalAccessible.h
+++ b/accessible/generic/LocalAccessible.h
@@ -587,7 +587,12 @@ class LocalAccessible : public nsISupports, public Accessible {
*/
virtual LocalAccessible* ContainerWidget() const;
- bool IsActiveDescendant(LocalAccessible** aWidget = nullptr) const;
+ /**
+ * Accessible's element ID is referenced as a aria-activedescendant in the
+ * document. This method is only used for ID changes and therefore does not
+ * need to work for direct element references via ariaActiveDescendantElement.
+ */
+ bool IsActiveDescendantId(LocalAccessible** aWidget = nullptr) const;
/**
* Return true if the accessible is defunct.
@@ -1010,6 +1015,17 @@ class LocalAccessible : public nsISupports, public Accessible {
*/
nsIFrame* FindNearestAccessibleAncestorFrame();
+ /*
+ * This function assumes that the current role is not valid. It searches for a
+ * fallback role in the role attribute string, and returns it. If there is no
+ * valid fallback role in the role attribute string, the function returns the
+ * native role. The aRolesToSkip parameter will cause the function to skip any
+ * roles found in the role attribute string when searching for the next valid
+ * role.
+ */
+ role FindNextValidARIARole(
+ std::initializer_list<nsStaticAtom*> aRolesToSkip) const;
+
LocalAccessible* GetPopoverTargetDetailsRelation() const;
};