summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoanmarie Diggs <joanmarie.diggs@gmail.com>2011-07-02 15:20:39 -0400
committerJoanmarie Diggs <joanmarie.diggs@gmail.com>2011-07-24 17:03:17 -0400
commit16ea290997662ea55f210f24b5dd9295e7c6284f (patch)
tree6ae115e7aab6ec47faa5eb6c543984421a62182b
parented7b0144c275781ec9a19d3222b2f08f81784e82 (diff)
downloadat-spi2-atk-16ea290997662ea55f210f24b5dd9295e7c6284f.tar.gz
Fix for bug 653872 - New ATK Roles
-rw-r--r--atk-adaptor/object.c15
-rw-r--r--common/generated-types.h28
-rw-r--r--configure.ac2
3 files changed, 43 insertions, 2 deletions
diff --git a/atk-adaptor/object.c b/atk-adaptor/object.c
index 3511682..6795cf7 100644
--- a/atk-adaptor/object.c
+++ b/atk-adaptor/object.c
@@ -436,6 +436,21 @@ init_role_lookup_table (Accessibility_Role * role_table)
role_table[ATK_ROLE_LINK] = Accessibility_ROLE_LINK;
role_table[ATK_ROLE_INPUT_METHOD_WINDOW] =
Accessibility_ROLE_INPUT_METHOD_WINDOW;
+ role_table[ATK_ROLE_TABLE_ROW] = Accessibility_ROLE_TABLE_ROW;
+ role_table[ATK_ROLE_TREE_ITEM] = Accessibility_ROLE_TREE_ITEM;
+ role_table[ATK_ROLE_DOCUMENT_SPREADSHEET] =
+ Accessibility_ROLE_DOCUMENT_SPREADSHEET;
+ role_table[ATK_ROLE_DOCUMENT_PRESENTATION] =
+ Accessibility_ROLE_DOCUMENT_PRESENTATION;
+ role_table[ATK_ROLE_DOCUMENT_TEXT] = Accessibility_ROLE_DOCUMENT_TEXT;
+ role_table[ATK_ROLE_DOCUMENT_WEB] = Accessibility_ROLE_DOCUMENT_WEB;
+ role_table[ATK_ROLE_DOCUMENT_EMAIL] = Accessibility_ROLE_DOCUMENT_EMAIL;
+ role_table[ATK_ROLE_COMMENT] = Accessibility_ROLE_COMMENT;
+ role_table[ATK_ROLE_LIST_BOX] = Accessibility_ROLE_LIST_BOX;
+ role_table[ATK_ROLE_GROUPING] = Accessibility_ROLE_GROUPING;
+ role_table[ATK_ROLE_IMAGE_MAP] = Accessibility_ROLE_IMAGE_MAP;
+ role_table[ATK_ROLE_NOTIFICATION] = Accessibility_ROLE_NOTIFICATION;
+ role_table[ATK_ROLE_INFO_BAR] = Accessibility_ROLE_INFO_BAR;
return TRUE;
}
diff --git a/common/generated-types.h b/common/generated-types.h
index 228dffa..28738dc 100644
--- a/common/generated-types.h
+++ b/common/generated-types.h
@@ -654,6 +654,19 @@ Accessibility_Role:
* @Accessibility_ROLE_FORM: <![CDATA[ The object is a containing instance of document content which has within it components with which the user can interact in order to input information; i.e. the object is a container for pushbuttons, comboboxes, text input fields, and other 'GUI' components. ROLE_FORM should not, in general, be used for toplevel GUI containers or dialogs, but should be reserved for 'GUI' containers which occur within document content, for instance within Web documents, presentations, or text documents. Unlike other GUI containers and dialogs which occur inside application instances, ROLE_FORM containers' components are associated with the current document, rather than the current foreground application or viewer instance. ]]>
* @Accessibility_ROLE_LINK: <![CDATA[ The object is a hypertext anchor, i.e. a "link" in a hypertext document. Such objects are distinct from 'inline' content which may also use the Hypertext/Hyperlink interfaces to indicate the range/location within a text object where an inline or embedded object lies. ]]>
* @Accessibility_ROLE_INPUT_METHOD_WINDOW: <![CDATA[ The object is a window or similar viewport which is used to allow composition or input of a 'complex character', in other words it is an "input method window." ]]>
+ * @Accessibility_ROLE_TABLE_ROW: <![CDATA[A row in a table.]]>
+ * @Accessibility_ROLE_TREE_ITEM: <![CDATA[An object that represents an element of a tree.]]>
+ * @Accessibility_ROLE_DOCUMENT_SPREADSHEET: <![CDATA[A document frame which contains a spreadsheet.]]>
+ * @Accessibility_ROLE_DOCUMENT_PRESENTATION: <![CDATA[A document frame which contains a presentation or slide content.]]>
+ * @Accessibility_ROLE_DOCUMENT_TEXT: <![CDATA[A document frame which contains textual content, such as found in a word processing application.]]>
+ * @Accessibility_ROLE_DOCUMENT_WEB: <![CDATA[A document frame which contains HTML or other markup suitable for display in a web browser.]]>
+ * @Accessibility_ROLE_DOCUMENT_EMAIL: <![CDATA[A document frame which contains email content to be displayed or composed either in plain text or HTML.]]>
+ * @Accessibility_ROLE_COMMENT: <![CDATA[An object found within a document and designed to present a comment, note, or other annotation. In some cases, this object might not be visible until activated.]]>
+ * @Accessibility_ROLE_LIST_BOX: <![CDATA[A non-collapsible list of choices the user can select from.]]>
+ * @Accessibility_ROLE_GROUPING: <![CDATA[A group of related widgets. This group typically has a label.]]>
+ * @Accessibility_ROLE_IMAGE_MAP: <![CDATA[An image map object. Usually a graphic with multiple hotspots, where each hotspot can be activated resulting in the loading of another document or section of a document.]]>
+ * @Accessibility_ROLE_NOTIFICATION: <![CDATA[A transitory object designed to present a message to the user, typically at the desktop level rather than inside a particular application.]]>
+ * @Accessibility_ROLE_INFO_BAR: <![CDATA[An object designed to present a message to the user within an existing window.]]>
* @Accessibility_ROLE_LAST_DEFINED: <![CDATA[ Not a valid role, used for finding end of enumeration. ]]>
*
* Bitfield/set of flags generated from the AT-SPI specification.
@@ -749,6 +762,19 @@ typedef enum {
Accessibility_ROLE_FORM,
Accessibility_ROLE_LINK,
Accessibility_ROLE_INPUT_METHOD_WINDOW,
+ Accessibility_ROLE_TABLE_ROW,
+ Accessibility_ROLE_TREE_ITEM,
+ Accessibility_ROLE_DOCUMENT_SPREADSHEET,
+ Accessibility_ROLE_DOCUMENT_PRESENTATION,
+ Accessibility_ROLE_DOCUMENT_TEXT,
+ Accessibility_ROLE_DOCUMENT_WEB,
+ Accessibility_ROLE_DOCUMENT_EMAIL,
+ Accessibility_ROLE_COMMENT,
+ Accessibility_ROLE_LIST_BOX,
+ Accessibility_ROLE_GROUPING,
+ Accessibility_ROLE_IMAGE_MAP,
+ Accessibility_ROLE_NOTIFICATION,
+ Accessibility_ROLE_INFO_BAR,
Accessibility_ROLE_LAST_DEFINED,
} Accessibility_Role;
@@ -757,7 +783,7 @@ typedef enum {
*
* 1 higher than the highest valid value of #Accessibility_Role.
*/
-#define NUM_ACCESSIBILITY_ROLES (90+1)
+#define NUM_ACCESSIBILITY_ROLES (103+1)
#ifdef __cplusplus
diff --git a/configure.ac b/configure.ac
index 1167b7c..45492ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.0.0])
AC_SUBST(GMODULE_LIBS)
AC_SUBST(GMODULE_CFLAGS)
-PKG_CHECK_MODULES(ATK, [atk >= 1.29.3])
+PKG_CHECK_MODULES(ATK, [atk >= 2.1.0])
AC_SUBST(ATK_LIBS)
AC_SUBST(ATK_CFLAGS)