Skip to content

Commit

Permalink
Add new roles/events for annotations, highlighted content, comments a…
Browse files Browse the repository at this point in the history
…nd suggestions (LinuxA11y#14)
  • Loading branch information
aleventhal authored and jcsteh committed Dec 12, 2019
1 parent 59ef180 commit cbc1f29
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
7 changes: 6 additions & 1 deletion api/AccessibleEventID.idl
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ enum IA2EventID {
of an accessible object. This includes for example most of the
attributes available via the IAccessibleComponent interface.
*/
IA2_EVENT_VISIBLE_DATA_CHANGED
IA2_EVENT_VISIBLE_DATA_CHANGED,

/** The role changed. This should only be used if the interfaces supported by the object
did not also change. If the interfaces need to change, the object should be destroyed
and a new object created.
*/
IA2_EVENT_ROLE_CHANGED
};
31 changes: 30 additions & 1 deletion api/AccessibleRole.idl
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,34 @@ enum IA2Role {
IA2_ROLE_CONTENT_INSERTION,

/// A section of content that is quoted from another source.
IA2_ROLE_BLOCK_QUOTE
IA2_ROLE_BLOCK_QUOTE,

/** A run of content that is marked or highlighted, such as for reference
purposes, or to call it out as having a special purpose that is clear from
context. If the mark is used in conjuction with a related content section
in the document, then IA2_RELATION_DETAILS should be used to link the
related content (and the reverse relation IA2_RELATION_DETAILS_FOR should
link back to the IA2_ROLE_MARK object). If the mark has related information
in a tooltip, or as hidden text, then accDescription should be used to
provide this information.
*/
IA2_ROLE_MARK,

/** A grouping for content that is called out as a proposed change from the
current version of the document, such as by a reviewer of the content.
Should include as children one or both of:
IA2_ROLE_CONTENT_DELETION and IA2_ROLE_CONTENT_INSERTION, in any order,
to indicate what the actual change is.
If the suggestion is accepted, the implementation should change the role to
a generic one such as IA2_ROLE_SECTION or IA2_ROLE_TEXT_FRAME.
*/
IA2_ROLE_SUGGESTION,

/** A single comment, typically user-generated content. Supports reply
hierarchies via descendant structure, e.g. a child comment is a reply
to the parent comment. Supports groupPosition() method to determine
reply level (top comment is 1), as well as set size and position in set
within that level.
*/
IA2_ROLE_COMMENT
};

0 comments on commit cbc1f29

Please sign in to comment.