[orca] Create a criteria so that we can search for live regions via the collection interface
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Create a criteria so that we can search for live regions via the collection interface
- Date: Fri, 21 Dec 2012 13:44:43 +0000 (UTC)
commit c56a7e44914457f65f3ba997dfe126a42b6b86a9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Dec 21 14:43:50 2012 +0100
Create a criteria so that we can search for live regions via the collection interface
src/orca/structural_navigation.py | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index b1f1dc5..bcc9827 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -3117,6 +3117,22 @@ class StructuralNavigation:
bindings["last"] = ["y", settings.NO_MODIFIER_MASK, desc]
return bindings
+ def _liveRegionCriteria(self, collection, arg=None):
+ """Returns the MatchCriteria to be used for locating live regions
+ by collection.
+
+ Arguments:
+ - collection: the collection interface for the document
+ - arg: an optional argument which may need to be included in
+ the criteria (e.g. the level of a heading).
+ """
+
+ # Matches based on object attributes assume unique name-value pairs
+ # because pyatspi creates a dictionary from the list. In addition,
+ # wildcard matching is not possible. As a result, we cannot search
+ # for any object which has an attribute named container-live.
+ return MatchCriteria(collection, applyPredicate=True)
+
def _liveRegionPredicate(self, obj, arg=None):
"""The predicate to be used for verifying that the object
obj is a live region.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]