Bug 1877642 - Disable browser_fullscreen-tab-close-race.js on apple_silicon !debug...
[gecko.git] / accessible / interfaces / nsIAccessibleRelation.idl
blob00575804cd06d2f2f4bde691b8177eb51945f396
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
7 #include "nsIArray.idl"
9 interface nsIAccessible;
11 /**
12 * This interface gives access to an accessible's set of relations.
14 [scriptable, builtinclass, uuid(55b308c4-2ae4-46bc-b4cd-4d4370e0a660)]
15 interface nsIAccessibleRelation : nsISupports
17 /**
18 * This object is labelled by a target object.
20 const unsigned long RELATION_LABELLED_BY = 0x00;
22 /**
23 * This object is label for a target object.
25 const unsigned long RELATION_LABEL_FOR = 0x01;
27 /**
28 * This object is described by the target object.
30 const unsigned long RELATION_DESCRIBED_BY = 0x02;
32 /**
33 * This object is describes the target object.
35 const unsigned long RELATION_DESCRIPTION_FOR = 0x3;
37 /**
38 * This object is a child of a target object.
40 const unsigned long RELATION_NODE_CHILD_OF = 0x4;
42 /**
43 * This object is a parent of a target object. A dual relation to
44 * RELATION_NODE_CHILD_OF
46 const unsigned long RELATION_NODE_PARENT_OF = 0x5;
48 /**
49 * Some attribute of this object is affected by a target object.
51 const unsigned long RELATION_CONTROLLED_BY = 0x06;
53 /**
54 * This object is interactive and controls some attribute of a target object.
56 const unsigned long RELATION_CONTROLLER_FOR = 0x07;
58 /**
59 * Content flows from this object to a target object, i.e. has content that
60 * flows logically to another object in a sequential way, e.g. text flow.
62 const unsigned long RELATION_FLOWS_TO = 0x08;
64 /**
65 * Content flows to this object from a target object, i.e. has content that
66 * flows logically from another object in a sequential way, e.g. text flow.
68 const unsigned long RELATION_FLOWS_FROM = 0x09;
70 /**
71 * This object is a member of a group of one or more objects. When there is
72 * more than one object in the group each member may have one and the same
73 * target, e.g. a grouping object. It is also possible that each member has
74 * multiple additional targets, e.g. one for every other member in the group.
76 const unsigned long RELATION_MEMBER_OF = 0x0a;
78 /**
79 * This object is a sub window of a target object.
81 const unsigned long RELATION_SUBWINDOW_OF = 0x0b;
83 /**
84 * This object embeds a target object. This relation can be used on the
85 * OBJID_CLIENT accessible for a top level window to show where the content
86 * areas are.
88 const unsigned long RELATION_EMBEDS = 0x0c;
90 /**
91 * This object is embedded by a target object.
93 const unsigned long RELATION_EMBEDDED_BY = 0x0d;
95 /**
96 * This object is a transient component related to the target object. When
97 * this object is activated the target object doesn't lose focus.
99 const unsigned long RELATION_POPUP_FOR = 0x0e;
102 * This object is a parent window of the target object.
104 const unsigned long RELATION_PARENT_WINDOW_OF = 0x0f;
107 * Part of a form/dialog with a related default button. It is used for
108 * MSAA/XPCOM, it isn't for IA2 or ATK.
110 const unsigned long RELATION_DEFAULT_BUTTON = 0x10;
113 * The target object is the containing document object.
115 const unsigned long RELATION_CONTAINING_DOCUMENT = 0x11;
118 * The target object is the topmost containing document object in the tab pane.
120 const unsigned long RELATION_CONTAINING_TAB_PANE = 0x12;
123 * The target object is the containing window object.
125 const unsigned long RELATION_CONTAINING_WINDOW = 0x13;
128 * The target object is the containing application object.
130 const unsigned long RELATION_CONTAINING_APPLICATION = 0x14;
133 * The target object provides the detailed, extended description for this
134 * object. It provides more detailed information than would normally be
135 * provided using the DESCRIBED_BY relation. A common use for this relation is
136 * in digital publishing where an extended description needs to be conveyed in
137 * a book that requires structural markup or the embedding of other technology
138 * to provide illustrative content.
140 const unsigned long RELATION_DETAILS = 0x15;
143 * This object provides the detailed, extended description for the target
144 * object. See DETAILS relation.
146 const unsigned long RELATION_DETAILS_FOR = 0x16;
149 * The target object is the error message for this object.
151 const unsigned long RELATION_ERRORMSG = 0x17;
154 * This object is the error message for the target object.
156 const unsigned long RELATION_ERRORMSG_FOR = 0x18;
159 * The target object is the anchor referenced by this link.
161 const unsigned long RELATION_LINKS_TO = 0x19;
164 * Returns the type of the relation.
166 readonly attribute unsigned long relationType;
169 * Returns the number of targets for this relation.
171 readonly attribute unsigned long targetsCount;
174 * Returns one accessible relation target.
175 * @param index - 0 based index of relation target.
177 nsIAccessible getTarget(in unsigned long index);
180 * Returns multiple accessible relation targets.
182 nsIArray getTargets();