|
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/. */ |
|
6 |
|
7 #ifndef mozilla_a11y_relationtype_h_ |
|
8 #define mozilla_a11y_relationtype_h_ |
|
9 |
|
10 #include "mozilla/TypedEnum.h" |
|
11 |
|
12 namespace mozilla { |
|
13 namespace a11y { |
|
14 |
|
15 MOZ_BEGIN_ENUM_CLASS(RelationType) |
|
16 |
|
17 /** |
|
18 * This object is labelled by a target object. |
|
19 */ |
|
20 LABELLED_BY = 0x00, |
|
21 |
|
22 /** |
|
23 * This object is label for a target object. |
|
24 */ |
|
25 LABEL_FOR = 0x01, |
|
26 |
|
27 /** |
|
28 * This object is described by the target object. |
|
29 */ |
|
30 DESCRIBED_BY = 0x02, |
|
31 |
|
32 /** |
|
33 * This object is describes the target object. |
|
34 */ |
|
35 DESCRIPTION_FOR = 0x3, |
|
36 |
|
37 /** |
|
38 * This object is a child of a target object. |
|
39 */ |
|
40 NODE_CHILD_OF = 0x4, |
|
41 |
|
42 /** |
|
43 * This object is a parent of a target object. A dual relation to |
|
44 * NODE_CHILD_OF. |
|
45 */ |
|
46 NODE_PARENT_OF = 0x5, |
|
47 |
|
48 /** |
|
49 * Some attribute of this object is affected by a target object. |
|
50 */ |
|
51 CONTROLLED_BY = 0x06, |
|
52 |
|
53 /** |
|
54 * This object is interactive and controls some attribute of a target object. |
|
55 */ |
|
56 CONTROLLER_FOR = 0x07, |
|
57 |
|
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. |
|
61 */ |
|
62 FLOWS_TO = 0x08, |
|
63 |
|
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. |
|
67 */ |
|
68 FLOWS_FROM = 0x09, |
|
69 |
|
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. |
|
75 */ |
|
76 MEMBER_OF = 0x0a, |
|
77 |
|
78 /** |
|
79 * This object is a sub window of a target object. |
|
80 */ |
|
81 SUBWINDOW_OF = 0x0b, |
|
82 |
|
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. |
|
87 */ |
|
88 EMBEDS = 0x0c, |
|
89 |
|
90 /** |
|
91 * This object is embedded by a target object. |
|
92 */ |
|
93 EMBEDDED_BY = 0x0d, |
|
94 |
|
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. |
|
98 */ |
|
99 POPUP_FOR = 0x0e, |
|
100 |
|
101 /** |
|
102 * This object is a parent window of the target object. |
|
103 */ |
|
104 PARENT_WINDOW_OF = 0x0f, |
|
105 |
|
106 /** |
|
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. |
|
109 */ |
|
110 DEFAULT_BUTTON = 0x10, |
|
111 |
|
112 /** |
|
113 * The target object is the containing document object. |
|
114 */ |
|
115 CONTAINING_DOCUMENT = 0x11, |
|
116 |
|
117 /** |
|
118 * The target object is the topmost containing document object in the tab pane. |
|
119 */ |
|
120 CONTAINING_TAB_PANE = 0x12, |
|
121 |
|
122 /** |
|
123 * The target object is the containing window object. |
|
124 */ |
|
125 CONTAINING_WINDOW = 0x13, |
|
126 |
|
127 /** |
|
128 * The target object is the containing application object. |
|
129 */ |
|
130 CONTAINING_APPLICATION = 0x14, |
|
131 |
|
132 LAST = CONTAINING_APPLICATION |
|
133 |
|
134 MOZ_END_ENUM_CLASS(RelationType) |
|
135 |
|
136 } // namespace a11y |
|
137 } // namespace mozilla |
|
138 |
|
139 #endif |