1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_a11y_relationtype_h_
8 #define mozilla_a11y_relationtype_h_
13 enum class RelationType
{
16 * This object is labelled by a target object.
21 * This object is label for a target object.
26 * This object is described by the target object.
31 * This object is describes the target object.
33 DESCRIPTION_FOR
= 0x3,
36 * This object is a child of a target object.
41 * This object is a parent of a target object. A dual relation to
47 * Some attribute of this object is affected by a target object.
52 * This object is interactive and controls some attribute of a target object.
54 CONTROLLER_FOR
= 0x07,
57 * Content flows from this object to a target object, i.e. has content that
58 * flows logically to another object in a sequential way, e.g. text flow.
63 * Content flows to this object from a target object, i.e. has content that
64 * flows logically from another object in a sequential way, e.g. text flow.
69 * This object is a member of a group of one or more objects. When there is
70 * more than one object in the group each member may have one and the same
71 * target, e.g. a grouping object. It is also possible that each member has
72 * multiple additional targets, e.g. one for every other member in the group.
77 * This object is a sub window of a target object.
82 * This object embeds a target object. This relation can be used on the
83 * OBJID_CLIENT accessible for a top level window to show where the content
89 * This object is embedded by a target object.
94 * This object is a transient component related to the target object. When
95 * this object is activated the target object doesn't lose focus.
100 * This object is a parent window of the target object.
102 PARENT_WINDOW_OF
= 0x0f,
105 * Part of a form/dialog with a related default button. It is used for
106 * MSAA/XPCOM, it isn't for IA2 or ATK.
108 DEFAULT_BUTTON
= 0x10,
111 * The target object is the containing document object.
113 CONTAINING_DOCUMENT
= 0x11,
116 * The target object is the topmost containing document object in the tab
119 CONTAINING_TAB_PANE
= 0x12,
122 * The target object is the containing window object.
124 CONTAINING_WINDOW
= 0x13,
127 * The target object is the containing application object.
129 CONTAINING_APPLICATION
= 0x14,
132 * The target object provides the detailed, extended description for this
133 * object. It provides more detailed information than would normally be
134 * provided using the DESCRIBED_BY relation. A common use for this relation is
135 * in digital publishing where an extended description needs to be conveyed in
136 * a book that requires structural markup or the embedding of other technology
137 * to provide illustrative content.
142 * This object provides the detailed, extended description for the target
143 * object. See DETAILS relation.
148 * The target object is the error message for this object.
153 * This object is the error message for the target object.
158 * The target object is the anchor referenced by this link.
166 } // namespace mozilla