[orca/gnome-3-14] Check for the new(ish) accessible roles for documents in structural navigation



commit ae191ac64a5e0238c088d93714d36fca11a90815
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Mar 15 18:05:35 2015 -0400

    Check for the new(ish) accessible roles for documents in structural navigation

 src/orca/structural_navigation.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index c6542e4..bbf0d92 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -572,7 +572,11 @@ class StructuralNavigation:
                     pyatspi.ROLE_TABLE_CELL,
                     pyatspi.ROLE_TEXT,
                     pyatspi.ROLE_SECTION,
+                    pyatspi.ROLE_DOCUMENT_EMAIL,
                     pyatspi.ROLE_DOCUMENT_FRAME,
+                    pyatspi.ROLE_DOCUMENT_PRESENTATION,
+                    pyatspi.ROLE_DOCUMENT_SPREADSHEET,
+                    pyatspi.ROLE_DOCUMENT_TEXT,
                     pyatspi.ROLE_DOCUMENT_WEB]
 
     IMAGE_ROLES = [pyatspi.ROLE_IMAGE,
@@ -1204,7 +1208,12 @@ class StructuralNavigation:
         interest is contained.
         """
 
-        docRoles = [pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_DOCUMENT_WEB]
+        docRoles = [pyatspi.ROLE_DOCUMENT_EMAIL,
+                    pyatspi.ROLE_DOCUMENT_FRAME,
+                    pyatspi.ROLE_DOCUMENT_PRESENTATION,
+                    pyatspi.ROLE_DOCUMENT_SPREADSHEET,
+                    pyatspi.ROLE_DOCUMENT_TEXT,
+                    pyatspi.ROLE_DOCUMENT_WEB]
         stopRoles = [pyatspi.ROLE_FRAME, pyatspi.ROLE_SCROLL_PANE]
         document = self._script.utilities.ancestorWithRole(
             orca_state.locusOfFocus, docRoles, stopRoles)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]