[pyatspi2] roles: create new AT-SPI2 roles for ARIA roles (and one for rating)



commit 1568cd7c8cf7444e6a68cc9c944c7ea134964e5e
Author: Alejandro PiƱeiro <apinheiro igalia com>
Date:   Mon Nov 18 19:27:59 2013 +0100

    roles: create new AT-SPI2 roles for ARIA roles (and one for rating)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712608

 pyatspi/role.py |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/role.py b/pyatspi/role.py
index e291311..5e7d26f 100644
--- a/pyatspi/role.py
+++ b/pyatspi/role.py
@@ -126,7 +126,15 @@ class Role(_Enum):
                 105:'ROLE_BLOCK_QUOTE',
                 106:'ROLE_AUDIO',
                 107:'ROLE_VIDEO',
-                108:'ROLE_LAST_DEFINED',
+                108:'ROLE_DEFINITION',
+                109:'ROLE_ARTICLE',
+                110:'ROLE_LANDMARK',
+                111:'ROLE_LOG',
+                112:'ROLE_MARQUEE',
+                113:'ROLE_MATH',
+                114:'ROLE_RATING',
+                115:'ROLE_TIMER',
+                116:'ROLE_LAST_DEFINED',
         }
 
 ROLE_ACCELERATOR_LABEL = Role(1)
@@ -134,6 +142,7 @@ ROLE_ALERT = Role(2)
 ROLE_ANIMATION = Role(3)
 ROLE_APPLICATION = Role(75)
 ROLE_ARROW = Role(4)
+ROLE_ARTICLE = Role(109)
 ROLE_AUDIO = Role(106)
 ROLE_AUTOCOMPLETE = Role(76)
 ROLE_BLOCK_QUOTE = Role(105)
@@ -148,6 +157,7 @@ ROLE_COLUMN_HEADER = Role(10)
 ROLE_COMBO_BOX = Role(11)
 ROLE_COMMENT = Role(97)
 ROLE_DATE_EDITOR = Role(12)
+ROLE_DEFINITION = Role(108)
 ROLE_DESKTOP_FRAME = Role(14)
 ROLE_DESKTOP_ICON = Role(13)
 ROLE_DIAL = Role(15)
@@ -184,13 +194,17 @@ ROLE_INPUT_METHOD_WINDOW = Role(89)
 ROLE_INTERNAL_FRAME = Role(28)
 ROLE_INVALID = Role(0)
 ROLE_LABEL = Role(29)
-ROLE_LAST_DEFINED = Role(108)
+ROLE_LANDMARK = Role(110)
+ROLE_LAST_DEFINED = Role(116)
 ROLE_LAYERED_PANE = Role(30)
 ROLE_LEVEL_BAR = Role(103)
 ROLE_LINK = Role(88)
 ROLE_LIST = Role(31)
 ROLE_LIST_BOX = Role(98)
 ROLE_LIST_ITEM = Role(32)
+ROLE_LOG = Role(111)
+ROLE_MARQUEE = Role(112)
+ROLE_MATH = Role(113)
 ROLE_MENU = Role(33)
 ROLE_MENU_BAR = Role(34)
 ROLE_MENU_ITEM = Role(35)
@@ -207,6 +221,7 @@ ROLE_PROGRESS_BAR = Role(42)
 ROLE_PUSH_BUTTON = Role(43)
 ROLE_RADIO_BUTTON = Role(44)
 ROLE_RADIO_MENU_ITEM = Role(45)
+ROLE_RATING = Role(114)
 ROLE_REDUNDANT_OBJECT = Role(86)
 ROLE_ROOT_PANE = Role(46)
 ROLE_ROW_HEADER = Role(47)
@@ -227,6 +242,7 @@ ROLE_TABLE_ROW_HEADER = Role(58)
 ROLE_TEAROFF_MENU_ITEM = Role(59)
 ROLE_TERMINAL = Role(60)
 ROLE_TEXT = Role(61)
+ROLE_TIMER = Role(115)
 ROLE_TITLE_BAR = Role(104)
 ROLE_TOGGLE_BUTTON = Role(62)
 ROLE_TOOL_BAR = Role(63)
@@ -346,6 +362,14 @@ ROLE_NAMES = {
         ROLE_BLOCK_QUOTE:'block quote',
         ROLE_AUDIO:'audio',
         ROLE_VIDEO:'video',
+        ROLE_DEFINITION:'definition',
+        ROLE_ARTICLE:'article',
+        ROLE_LANDMARK:'landmark',
+        ROLE_LOG:'log',
+        ROLE_MARQUEE:'marquee',
+        ROLE_MATH:'math',
+        ROLE_RATING:'rating',
+        ROLE_TIMER:'timer',
 }
 
 #END----------------------------------------------------------------------------


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