Bug 1375116 - RelationType::CONTAINING_WINDOW is not in the RelationTypeMap. r=surkov

Add RelationType::CONTAINING_WINDOW to the RelationTypeMap. Note that
there is no implementation for this RelationType in place yet, but this
addition will fix off-by-one bugs when mapping newly-added relation types
to platform accessibility APIs.
This commit is contained in:
Joanmarie Diggs 2017-06-21 09:28:00 -04:00
parent 2ba8ad9f9e
commit 66ad9aca23
3 changed files with 12 additions and 0 deletions

View File

@ -123,6 +123,12 @@ RELATIONTYPE(CONTAINING_TAB_PANE,
NAVRELATION_CONTAINING_TAB_PANE,
IA2_RELATION_CONTAINING_TAB_PANE)
RELATIONTYPE(CONTAINING_WINDOW,
"containing window",
ATK_RELATION_NULL,
NAVRELATION_CONTAINING_WINDOW,
IA2_RELATION_CONTAINING_WINDOW)
RELATIONTYPE(CONTAINING_APPLICATION,
"containing application",
ATK_RELATION_NULL,

View File

@ -119,6 +119,11 @@ interface nsIAccessibleRelation : nsISupports
*/
const unsigned long RELATION_CONTAINING_TAB_PANE = 0x12;
/**
* The target object is the containing window object.
*/
const unsigned long RELATION_CONTAINING_WINDOW = 0x13;
/**
* The target object is the containing application object.
*/

View File

@ -253,6 +253,7 @@ protected:
NAVRELATION_NODE_PARENT_OF = 0x1010,
NAVRELATION_CONTAINING_DOCUMENT = 0x1011,
NAVRELATION_CONTAINING_TAB_PANE = 0x1012,
NAVRELATION_CONTAINING_WINDOW = 0x1013,
NAVRELATION_CONTAINING_APPLICATION = 0x1014,
NAVRELATION_DETAILS = 0x1015,
NAVRELATION_DETAILS_FOR = 0x1016,